国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發(fā)設計 > 正文

vim插件安裝

2019-11-06 09:36:40
字體:
來源:轉載
供稿:網(wǎng)友

來自http://www.cnblogs.com/wangweiwen/p/6103744.html

1,先安裝vim,用VIM --Version查看版本,注意vim必須7.4以上版本,因為下面的插件要求7.4以后的版本

2,安裝git

3,mkdir -p ~/.vim && touch ~/.vimrc

4,git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

5,vi ~/.vimrc寫入如下的內(nèi)容

    filetype off  " required!    set rtp+=~/.vim/bundle/vundle/    call vundle#rc()    " let Vundle manage Vundle    " required!    Bundle 'gmarik/vundle'    " My Bundles here:    "    " original repos on github    Bundle 'tpope/vim-fugitive'    Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}    Bundle 'tpope/vim-rails.git'    Bundle 'scrooloose/nerdtree'    Bundle 'kien/ctrlp.vim'    Bundle 'c.vim'    Bundle 'msanders/snPRove) removal of unused bundles    "    " see :h vundle for more details or wiki for FAQ    " NOTE: comments after Bundle command are not allowed..    " NERDTree config    map <F2> :NERDTreeToggle<CR>    let NERDTreeDirArrows=0    autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") &&  b:NERDTreeType == "primary") | q | endif    "neocomplache config    let g:neocomplcache_enable_at_startup = 1    let g:neocomplcache_force_overwrite_completefunc = 1    "other config    set nu    set mouse=a    set tabstop=2    let mapleader = ","    let g:mapleader = ","    map Y "+y    map P "+p  ""    "easymotion    let g:EasyMotion_leader_key = '<Leader>'    "powerline config    set mouse=a    set laststatus=2                   set t_Co=256    set encoding=utf-8    set fillchars+=stl:/ ,stlnc:/    set nohlsearch    noremap <Up>    <Nop>    noremap <Down>  <Nop>    noremap <Left>  <Nop>    noremap <Right> <Nop>    "    "" taglist    "    let Tlist_Show_One_File=1    "只顯示當前文件的tags    let Tlist_WinWidth=40        "設置taglist寬度    let Tlist_Exit_OnlyWindow=1  "tagList窗口是最后一個窗口,則退出Vim    let Tlist_Use_Right_Window=1 "在Vim窗口右側顯示taglist窗口    " highlight CursorLine guibg=lightblue guifg=black ctermbg=lightgray ctermfg=black    " highlight CursorColumn guibg=lightblue ctermbg=lightgray guifg=black ctermfg=black    set cursorline    hi CursorLine   cterm=NONE ctermbg=lightgray ctermfg=black guibg=black guifg=lightblue    set cursorcolumn    hi CursorColumn cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white    "  fix the bug mac delete button do not work    set backspace=2    " 光標停留在上次離開的位置    au BufReadPost * if line("'/"") > 0|if line("'/"") <= line("$")|exe("norm '/"")|else|exe "norm $"|endif|endif

6,vim 然后在normal模式下面,輸入 “:PluginInstall”,然后回車


發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 措美县| 梁山县| 米易县| 米易县| 岐山县| 屏山县| 沧源| 宁陕县| 临邑县| 和平县| 孟州市| 嘉善县| 常熟市| 翁源县| 邯郸县| 普安县| 西青区| 绵竹市| 色达县| 汪清县| 新晃| 南京市| 阳东县| 曲松县| 大庆市| 武汉市| 南皮县| 钟祥市| 清新县| 定西市| 临江市| 贵州省| 九龙坡区| 公安县| 湛江市| 蓝山县| 溧阳市| 梁平县| 乐都县| 富蕴县| 桂阳县|