The following is a record of VIM configurations that I am used ~ _~
"File encoding set fileencoding = utf-8set encoding = utf-8set termencoding = UTF-8" enable syntax highlighting syntax enable "prevents adding a Line Break Set noendoflineset binary" tabulation width set softtabstop = 4 set tabstop = 4 set shiftwidth = 4 set expandtab "auto indent alignment set autoindent" display row number "set nu" Set background, the "set BG = Dark" code folding "set foldmethod = indent" backspace function set backspace = indent, EOL, start "is always displayed on the tab bar, vim7 "set showtabline = 2" highlight search term set hlsearch "show the row where the cursor is located set r133" is required to disable F1's help function, prevent misoperation: "NMAP <F1> <ESC>" imap <F1> <ESC> "sets nerdtreemap <F3>: nerdtreemirror <CR> Map <F3>: nerdtreetoggle <CR>
Vim configuration example