vim外掛程式安裝

2021-07-27 14:58:02 字數 2943 閱讀 1214

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',

bundle 'tpope/vim-rails.git'

bundle 'scrooloose/nerdtree'

bundle 'kien/ctrlp.vim'

bundle 'c.vim'

bundle 'msanders/snipmate.vim'

bundle 'mileszs/ack.vim'

bundle 'shougo/neocomplcache.vim'

bundle 'townk/vim-autoclose'

"bundle 'valloric/youcompleteme' 和neocomplache 功能一樣,都是提示的

bundle 'lokaltog/vim-powerline'

" vim-scripts repos

bundle 'l9'

bundle 'fuzzyfinder'

" non github repos

bundle 'git:'

" git repos on your local machine (ie. when working on your own plugin)

" ...

filetype plugin indent on " required!

"" brief help

" :bundlelist - list configured bundles

" :bundleinstall(!) - install(update) bundles

" :bundlesearch(!) foo - search(or refresh cache first) for foo

"" see :h vundle for more details or wiki for faq

" note: comments after bundle command are not allowed..

" nerdtree config

map :nerdtreetogglelet 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 = ''

"powerline config

set mouse=a

set laststatus=2

set t_co=256

set encoding=utf-8

set fillchars+=stl:\ ,stlnc:\

set nohlsearch

noremap noremap noremap noremap "

"" 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

vim外掛程式安裝 如何安裝Vim外掛程式

vim外掛程式安裝 儘管vim快速高效,但預設情況下,它只是乙個文字編輯器。至少,這就是沒有外掛程式的情況,外掛程式基於vim並新增了額外的功能,使其不僅具有鍵入文字的視窗,還具有更多的功能。正確搭配各種外掛程式,您可以掌控自己的生活,並打造自己獨特的vim體驗。您可以自定義主題 還可以新增語法突出...

安裝vim外掛程式

0.vundle 在按照官方的 教程 安裝好vundle之後,要安裝乙個外掛程式時,你只需要 選好外掛程式 在vim的配置檔案中加一句 bundle your script path 在vim中執行 bundleinstall 解除安裝時只需 去除配置檔案中的 bundle your script ...

vim外掛程式安裝

set t co 256 necessary for airlinetheme set laststatus 2 set foldmethod syntax set statusline f m r h set tabstop 4 set number set fencs utf 8,gbk set...