/
settings.vim
116 lines (86 loc) · 3.19 KB
/
settings.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
"{-------------------------------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
" =>c-u 来控制在insert model下面,使得整个单词大写。
imap <c-u> <esc>viwUel
" http://learnvimscriptthehardway.onefloweroneworld.com/chapters/05.html
" 高阶的控制方法。
"}
"{-------------------------------plugins----------------------------------------
" 文件目录和文件查找
" =>页面与布局(Group)
Plugin 'itchyny/lightline.vim'
source ~/.vim/cfgs/lightline_cfg.vim
" Plugin 'vim-scripts/winmanager'
" Plugin 'Lokaltog/vim-powerline'
Plugin 'scrooloose/nerdtree'
source ~/.vim/cfgs/nerdtree_cfg.vim
Plugin 'majutsushi/tagbar'
source ~/.vim/cfgs/tagbar_cfg.vim
" =>fugitive
Plugin 'tpope/vim-fugitive'
source ~/.vim/cfgs/fugitive_cfg.vim
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'kien/ctrlp.vim'
source ~/.vim/cfgs/ctrlp_cfg.vim
" =>YouCompleteMe
" ./install.py --clang-completer
" ./third_party/ycmd/clang_archives/libclang-8.0.0-x86_64-unknown-linux-gnu.tar.bz2
" Plugin 'Valloric/YouCompleteMe'
" source ~/.vim/cfgs/ycm_cfg.vim
" =>Track the engine.
" Plugin 'SirVer/ultisnips'
" source ~/.vim/cfgs/snips_cfg.vim
" =>Snippets are separated from the engine. Add this if you want them:
Plugin 'honza/vim-snippets'
" =>gtags 自动跳转工具
" https://zhuanlan.zhihu.com/p/36279445/
" Plugin 'ludovicchabant/vim-gutentags'
" Plugin 'skywind3000/gutentags_plus'
" source ~/.vim/cfgs/gutentags_plus_cfg.vim
" =>缩进指示线(Group)
Plugin 'Yggdroot/indentLine'
source ~/.vim/cfgs/indentline_cfg.vim
Plugin 'tell-k/vim-autopep8'
source ~/.vim/cfgs/autopep8_cfg.vim
Plugin 'jiangmiao/auto-pairs' "有时候会影响copy
" =>multiple selections for Vim
Plugin 'terryma/vim-multiple-cursors'
source ~/.vim/cfgs/vim-multiple-cursors_cfg.vim
" Plugin 'Yggdroot/vim-mark'
" =>自动运行插件
" http://liuchengxu.org/posts/use-vim-as-a-python-ide/
Plugin 'skywind3000/asyncrun.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={,}