加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
settings.vim 2.96 KB
一键复制 编辑 原始数据 按行查看 历史
talengu 提交于 2019-08-17 08:05 . feat: add todo in all.snippets
"{-------------------------------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={,}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化