vim配件

作者: 婉妃 | 来源:发表于2019-07-21 17:05 被阅读0次
    " Install vim-plug
    set nocompatible
    filetype plugin indent on
    
    " Setting
    let mapleader=" "                      " leader key
    syntax on                              " Color syntax
    set backspace=start,eol,indent         " Backspcae
    set clipboard=unnamed                  " Clipboard
    set cursorline                         " height corrent line
    set encoding=utf-8                     " Necessary to show Unicode glyphs
    set fileencodings=utf8,big5,gbk,latin1 " set fileopentype
    set hls                                " search heightlight
    set ignorecase                         " ignore case in search
    set incsearch                          " search back
    set laststatus=2                       " Always show the statusline
    set mouse=a                            " Use mouse
    set number                             " Line number
    set ruler                              " show line info
    set scrolloff=5                        " scroll while close under
    set showcmd                            " show command
    set smartindent                        " Autoindent
    set t_Co=256                           " Explicitly tell Vim that the terminal supports 256 colors
    set timeoutlen=300                     " escape delay
    set wildmenu                           " Autocomplete menu
    
    " Tab
    set expandtab
    set shiftwidth=4
    set softtabstop=4
    set tabstop=4
    
    " Folding
    set foldenable
    set foldmethod=indent
    set foldcolumn=1
    set foldlevel=4
    
    " Filetype Related
    autocmd FileType python setlocal et sta  sw=4 sts=4 cc=80 completeopt-=preview
    autocmd FileType html   setlocal et sw=2 sts=2
    

    相关文章

      网友评论

          本文标题:vim配件

          本文链接:https://www.haomeiwen.com/subject/gphvlctx.html