In order to use the pathogen plugin, I removed the. Vim folder and the. VIMRC add configuration and re-organized the next! 1, pathogen plug-in management Https://github.com/tpope/vim-pathogen run the following command mkdir-p ~/.vim/autoload ~/.vim/bundlecurl-lsso ~/.vim/ Autoload/pathogen.vim https://tpo.pe/pathogen.vim Add "pathogen Execute Pathogen#infect () 2, nerdtree in. vimrc File Browser Https://github.com/scrooloose/nerdtree run the following command CD ~/.vim/bundlegit clone https://github.com/scrooloose/ Nerdtree.git Add "Nerdtreemap <silent> <F3>:nerdtreetoggle<cr>" mappings in. VIMRC F3 turn off NERDTree3, Xptemplate Code Snippet Auto-complete https://github.com/drmingdrmer/xptemplate run the following command CD ~/.vim/bundlegit clone https://github.com/ Drmingdrmer/xptemplate.git Add "xptemplatelet g:xptemplate_vars =" sparg=&brfun= "" code in. VIMRC close parentheses, function list line let G: Xptemplate_brace_complete = "([{\" "" "Brackets quote auto-complete 4, Emmet-vim quickly write HTML and CSS code https://github.com/mattn/emmet-vim/run the following command CD ~/.vim/bundlegit clone Https://github.com/mattn/emmet-vim.git5, Nerdcommenter add comments to the code snippet https://github.com/ Scrooloose/nerdcommenter Run the following command CD ~/.vim/bundlegit clone Https://github.com/scrooLoose/nerdcommenter.git Add "nerdcommenterlet nerdspacedelims = 1" comment in. VIMRC leave the left and right ends blank let nerdremoveextraspaces = 16, Supertab mapping ctrl+x ctrl+o Run the following command with Https://github.com/ervandew/supertab CD ~/.vim/bundlegit clone https://github.com/ Ervandew/supertab.git adding "supertablet g:supertabdefaultcompletiontype =" <C-X><C-O> "Inoremap in. vimrc <expr> <CR> pumvisible ()? "\<c-y>": "\<cr>" "Enter to select the current item 7, taglist display code structure http://www.vim.org/scripts/script.php?script_id= 273 Download TagList to the above website, create a folder for the plugin under the. Vim/bundle folder, and then unzip it into the new folder you created. Add "Taglistmap <silent> <F4>:tlisttoggle<cr>" mappings in. VIMRC F4 turn off Taglist8, update help document plug-ins to open vim run after installation: The helptags command updates each plugin's Help document 9, back up my current. VIMRC Configuration "An example for a VIMRC file." Maintainer:bram Moolenaar <[email protected]> "Last change:2014 Feb" "To use it, copy it to" for Unix an D OS/2: ~/.VIMRC ' for AMIGA:S:.VIMRC ' for MS-dos and Win32: $VIM \_vimrc ' for OPENVMS:SYS$LOGIN:.VIMRC ' when Started as "Evim", Evim.vimWould already has done these settings.if v:progname =~? "Evim" finishendif "use Vim settings, rather than Vi settings (much better!)." This must is first, because it changes other options as a side Effect.set nocompatible "Allow backspacing over everything In insert Modeset backspace=indent,eol,startif have ("VMS") set Nobackup "Do not keep a backup file, use versions Insteadelse Set backup "Keep a backup file (restore to previous version) set Undofile" Keep an undo file (undo changes after closing) en Difset history=50 "Keep lines of command line Historyset ruler" show the cursor position all the Timeset showcmd "Displ Ay incomplete commandsset incsearch "do incremental searching" for Win32 gui:remove ' t ' flag from ' guioptions ': no tearof F Menu Entries "let &guioptions = Substitute (&guioptions," T "," "", "G") "Don ' t use Ex mode, use Q for Formattingma P Q GQ "ctrl-u in insert mode deletes a lot. Use Ctrl-g U-to-first break undo, "So-you can undo ctrl-u after inserting a line BREak.inoremap <C-U> <C-G>u<C-U> "In many terminal emulators the mouse works just fine, thus enable It.if Have (' mouse ') set mouse=aendif "switch syntax highlighting on, when the terminal have colors" Also switch on highlighting the Last used search Pattern.if &t_co > 2 | | Have ("gui_running") syntax onset HLSEARCHENDIF "only do the" when compiled with the support for Autocommands.if have ("autocm D ")" Enable file type detection. " Use of the default filetype settings, so-mail gets ' tw ' set to, "' cindent ' are on in C files, etc." Also load indent files, to automatically does language-dependent Indenting.filetype plugin indent on "Put these in an AUTOCM D group, so, we can delete them Easily.augroup vimrcexau! " For all text files set ' TextWidth ' to characters.autocmd FileType text setlocal textwidth=78 "When editing a file, Alwa Ys jump to the last known cursor position. " Don ' t does it when the position was invalid or when inside a event handler "(happens when dropping A file on Gvim). " Also don ' t does it when the mark was in the first line, which is the default "position when opening a file.autocmd bufreadpost *\ If line ("' \" ") > 1 && line (" ' \ "") <= Line ("$") |\ EXE "normal! G ' \ "" |\ endifaugroup endelseset autoindent "always set autoindenting onendif" have ("Autocmd") "Convenient command to see The difference between the current buffer and the "file it is loaded from, thus the changes you made." Only define it when not defined Already.if!exists (":D ifforig") command Difforig vert New | Set Bt=nofile | R ++edit # | 0d_ | diffthis\ | Wincmd p | Diffthisendif "Some miscellaneous set Numberset tabstop=4set shiftwidth=4set autoindentset cindentset hlsearchset backspace=2set Fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936set Termencoding=utf-8set encoding=utf-8set Timeout Timeoutlen =3000 ttimeoutlen=100 "can increase the speed of input o Insert Line" set Cursorline "cursor underline" default tag folding mode set Fdm=marker "Ctags setfiletype plugin indent on set Completeopt=longest,menu "Pathogen Execute pathogeN#infect () "Nerdtreemap <silent> <F3>:nerdtreetoggle<cr>" map F3 Open Close Nerdtree "Taglistmap <silent > <F4>:tlisttoggle<cr> "map F4 Open Close TagList" xptemplatelet g:xptemplate_vars = "sparg=&brfun=" "code clings to parentheses , the function list line let G:xptemplate_brace_complete = "([{\" "" "" Bracket quote auto-complete "nerdcommenterlet nerdspacedelims = 1" comment Left and right ends blank let Nerdremove extraspaces = 1 "Backupset nobackupset undodir=~/.vim/undodir" html indent "let G:HTML_INDENT_SCRIPT1 =" Inc. "Let g:html _indent_style1 = "Inc" Let G:html_indent_inctags = "body,head,tbody" "Indent body head S" Supertablet G:supertabdefaultcomplet Iontype = "<C-X><C-O>" Inoremap <expr> <CR> pumvisible ()? "\<c-y>": "\<cr>" "Enter the current item" Support HTML CSS and Javascrip auto completeautocmd FileType HTML set omnifunc= Htmlcomplete#completetagsautocmd FileType CSS Set omnifunc=csscomplete#completecssautocmd FileType JavaScript set Omnifunc=javascriptcomplete#completejs
0011 VIM plug-in installation