代码拉取完成,页面将自动刷新
"{-------------------------------key map----------------------------------------
" key map
let mapleader=";" " kep map <Leader>
map <leader>t :Tagbar<CR>
map <leader>n :NERDTreeToggle<CR>
map <leader>w <c-w><c-w><CR>
map <leader>q :q<CR>
map <leader>s :e ~/.vim/settings.vim<CR>
map <leader>f *<CR>
nnoremap <leader>b :YcmCompleter GoToDeclaration<CR>
nnoremap tr :let a=expand("<cword>")<Bar>exec '!translate ' .a<CR>
map <leader>p :set paste<CR> " fix the paste bug
"set listchars=eol:⏎,tab:␉·,trail:␠,nbsp:⎵
"set list
"set listchars=tab:␉·,nbsp:⎵,space:‧
" Smart way to move between windows
" map <C-j> <C-W>j
" map <C-k> <C-W>k
map <C-j> <C-W>h
map <C-k> <C-W>l
imap <c-u> <esc>viwUel
"c-u 来控制在insert model下面,使得整个单词大写。
" http://learnvimscriptthehardway.onefloweroneworld.com/chapters/05.html
" 高阶的控制方法。
"
"
"}
"{-------------------------------plugins----------------------------------------
" 文件目录和文件查找
Plugin 'itchyny/lightline.vim'
" Plugin 'Lokaltog/vim-powerline'
Plugin 'scrooloose/nerdtree'
Plugin 'majutsushi/tagbar'
Plugin 'tpope/vim-fugitive'
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'kien/ctrlp.vim'
" Plugin 'vim-scripts/winmanager'
" YouCompleteMe
Plugin 'Valloric/YouCompleteMe'
" ./install.py --clang-completer
" ./third_party/ycmd/clang_archives/libclang-8.0.0-x86_64-unknown-linux-gnu.tar.bz2
" Track the engine.
Plugin 'SirVer/ultisnips'
" Snippets are separated from the engine. Add this if you want them:
Plugin 'honza/vim-snippets'
" 缩进指示线
Plugin 'Yggdroot/indentLine'
Plugin 'tell-k/vim-autopep8'
Plugin 'jiangmiao/auto-pairs' "有时候会影响copy
" multiple selections for Vim
Plugin 'terryma/vim-multiple-cursors'
" Plugin 'Yggdroot/vim-mark'
" 自动运行插件
" http://liuchengxu.org/posts/use-vim-as-a-python-ide/
Plugin 'skywind3000/asyncrun.vim'
" source plugin configs
source ~/.vim/cfgs/lightline_cfg.vim
source ~/.vim/cfgs/tagbar_cfg.vim
source ~/.vim/cfgs/ycm_cfg.vim
source ~/.vim/cfgs/snips_cfg.vim
source ~/.vim/cfgs/fugitive_cfg.vim
source ~/.vim/cfgs/ctrlp_cfg.vim
source ~/.vim/cfgs/nerdtree_cfg.vim
source ~/.vim/cfgs/vim-multiple-cursors_cfg.vim
source ~/.vim/cfgs/indentline_cfg.vim
source ~/.vim/cfgs/autopep8_cfg.vim
source ~/.vim/cfgs/asyncrun_cfg.vim
"}
"{-------------------------------others-----------------------------------
" vim-help-doc and markdown editor
Plugin 'yianwillis/vimcdoc' " vim-chinese-doc
Plugin 'vim-utils/vim-man' " man pages
"if OSX()
"endif
if 0 " for faster
Plugin 'iamcco/mathjax-support-for-mkdp'
Plugin 'iamcco/markdown-preview.vim' " markdown插件
Plugin 'dhruvasagar/vim-table-mode' " mardown table 的格式化
source ~/.vim/cfgs/markdown_cfg.vim
endif
"}
" vim: fdm=marker foldmarker={,}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。