从此使用vim代替si看代码

前端之家收集整理的这篇文章主要介绍了从此使用vim代替si看代码前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
以前是在windows下的开发环境,最好用的看代码代码工具当然是非source insight莫属了,所以一直以来都是用si写代码,分析代码
后面转入linux开发环境后一直也是用si(通过wine安装)但是很不稳定,经常会出各种问题死掉。所以决定切换用vim来代替si,vim号称程序员最好用的代码编辑器,再说了,作为一个混迹多年江湖的程序猿,不去好好感受下这么优秀工具,岂不是暴殄天物?

网上找了很多资料,终于搭建了自己的 vim “IDE”,用了一段时间了,感觉还不错 ~

整合的主要功能有:

1、各自目录树、符号列表、搜索窗口切换定义;

2、ctags + cscope支持,而且 各个打开的vim工程独立不干扰,存放到~/.ctags/ 目录下;

3、保存当前vim配置,下次打开vim还是原来的配置,方便使用,而且最关键的是各个vim工程独立,同样保存在~/.ctags/目录下;

4、模糊、全局搜索使用外部ag搜索引擎,速度很快;

5、各种常用必备插件已配置;

6、其它详细部分见vimrc配置吧;


下面贴出来分享下。


整合好的地址:

git clone https://github.com/guomingyi/vim-warper.git


相关快捷键配置:

  1. # Install@H_301_34@
  2. ########################################@H_301_34@
  3. cp -a .vim ~/.vim
  4. cp -a .vimrc ~/.vimrc
  5. # Ctags:@H_301_34@
  6. cd ~/.vim/depends/
  7. unzip ctags-5.8.zip
  8. cd ctags-5.8
  9. ./configure
  10. make
  11. sudo make install
  12. # Cscope:@H_301_34@
  13. 参考Ctags步骤.
  14. ##################[快捷键定义]#################@H_301_34@
  15. # 窗口类:@H_301_34@
  16. f2 鼠标使能切换
  17. \f2 行号显示切换
  18. f3 tagbarlist
  19. \f3 NERDTree
  20. f4 Ctrlp,文件模糊搜索,也可按ctrl+p打开,按esc退出
  21. \f4 MRU,文件打开历史记录,可保存
  22. f5 make tags,用于查看代码进入函数跳转,支持多目录加载
  23. \f5 make cscope,ctags升级,功能更强大,暂不支持多目录加载
  24. f6 Buf exploler,当前文件打开记录缓存
  25. \f6 miniBufExploler,跟上一个类同
  26. \f7 themes switch
  27. # 文件跳转:@H_301_34@
  28. 1 跳转到上一个文件
  29. 2 跳转到下一个文件
  30. \1 关闭当前文件
  31. 3 quickfix列表搜索文件条状到下一个
  32. 4 quickfix跳转到上一个
  33. # 更新插件:@H_301_34@
  34. \3 更新插件
  35. # 退出:@H_301_34@
  36. \q 退出当前窗口
  37. \qa 不保存seesion.vim退出全部
  38. \qs 保存session.vim退出全部
  39. F2 \qs
  40. \w :w
  41. # ACK搜索相关:@H_301_34@
  42. \s Ack 搜索,先按下\s,再输入需要搜索的字符,回车
  43. \f AckFile搜索,同上
  44. # ag 搜索@H_301_34@
  45. sudo apt-get install silversearcher-ag
  46. # Cscope相关:@H_301_34@
  47. cc 搜索函数调用函数
  48. cd 搜索调用函数函数
  49. cs 搜索函数
  50. cf 搜索文件
  51. ct 搜索字符串
  52. # 特殊命令:@H_301_34@
  53. # 有时候vim的历史记录会有混乱,这个时候有两种方式还原:@H_301_34@
  54. 1> rm -rf ~./ctags/
  55. 2> vim clean


打开后默认界面:



按 F3 切换显示tagbar ,\F3 切换显示nerdtree, F4 弹出ctrlp模糊搜索



按\F4 切换ctrlp-funky,模糊搜索当前文件函数,ctrlp搜索使用外部ag搜索引擎





buffer 浏览器,按F6切换



F5 执行make tags,tags的目录做了重定向,每个新打开的vim工程互不干扰。



make cscope,和ctags类同



ag搜索符号




vimrc 全配置:

  1. 1 @H_301_34@
  2. 2 @H_301_34@"##################################################################[Plugin manager]@H_301_34@
  3. 3 @H_301_34@" http://www.cnblogs.com/songfy/p/5635757.html @H_301_34@
  4. 4 @H_301_34@set@H_301_34@ rtp@H_301_34@+=~/.vim/bundle/Vundle.vim
  5. 5 @H_301_34@
  6. 6 @H_301_34@call@H_301_34@ vundle#begin@H_301_34@()@H_301_34@
  7. 7 @H_301_34@
  8. 8 @H_301_34@Plugin 'VundleVim/Vundle.vim'@H_301_34@
  9. 9 @H_301_34@Plugin 'tpope/vim-fugitive'@H_301_34@
  10. 10 @H_301_34@Plugin 'vim-scripts/winmanager'@H_301_34@
  11. 11 @H_301_34@Plugin 'rstacruz/sparkup'@H_301_34@,{@H_301_34@'rtp'@H_301_34@: 'vim/'@H_301_34@}@H_301_34@
  12. 12 @H_301_34@Plugin 'kien/ctrlp.vim'@H_301_34@
  13. 13 @H_301_34@Plugin 'wincent/command-t'@H_301_34@
  14. 14 @H_301_34@Plugin 'scrooloose/nerdtree'@H_301_34@
  15. 15 @H_301_34@Plugin 'majutsushi/tagbar'@H_301_34@
  16. 16 @H_301_34@Plugin 'jiangmiao/auto-pairs'@H_301_34@
  17. 17 @H_301_34@Plugin 'minibufexpl.vim'@H_301_34@
  18. 18 @H_301_34@Plugin 'jlanzarotta/bufexplorer'@H_301_34@
  19. 19 @H_301_34@Plugin 'taglist.vim'@H_301_34@
  20. 20 @H_301_34@Plugin 'scrooloose/nerdcommenter'@H_301_34@
  21. 21 @H_301_34@Plugin 'godlygeek/tabular'@H_301_34@
  22. 22 @H_301_34@Plugin 'plasticboy/vim-markdown'@H_301_34@
  23. 23 @H_301_34@Plugin 'portante/cscope'@H_301_34@
  24. 24 @H_301_34@Plugin 'tomasr/molokai'@H_301_34@
  25. 25 @H_301_34@Plugin 'yegappan/mru'@H_301_34@
  26. @H_404_241@ 26 @H_301_34@Plugin 'rking/ag.vim'@H_301_34@
  27. 27 @H_301_34@Plugin 'altercation/vim-colors-solarized'@H_301_34@
  28. 28 @H_301_34@Plugin 'tacahiroy/ctrlp-funky'@H_301_34@
  29. 29 @H_301_34@Plugin 'Lokaltog/vim-distinguished'@H_301_34@
  30. 30 @H_301_34@
  31. 31 @H_301_34@"Plugin 'Valloric/YouCompleteMe' "NEED VIM8.0+ & PYTHON3.5+ support.@H_301_34@
  32. 32 @H_301_34@"Plugin 'vim/vim' "vim8.0+@H_301_34@
  33. 33 @H_301_34@
  34. 34 @H_301_34@call@H_301_34@ vundle#end@H_301_34@()@H_301_34@
  35. 35 @H_301_34@
  36. 36 @H_301_34@filetype@H_301_34@ plugin@H_301_34@ indent@H_301_34@ on@H_301_34@
  37. 37 @H_301_34@"##################################################################[default value set]@H_301_34@
  38. 38 @H_301_34@modelines@H_301_34@=0
  39. 39 @H_301_34@backspace@H_301_34@=2 "设置更好的删除@H_301_34@
  40. 40 @H_301_34@Syntax@H_301_34@ on@H_301_34@ "语法高亮@H_301_34@
  41. 41 @H_301_34@"set noswapfile@H_301_34@
  42. 42 @H_301_34@"autocmd InsertLeave * se nocul "用浅色高亮当前行@H_301_34@
  43. 43 @H_301_34@"autocmd InsertEnter * se cul@H_301_34@
  44. 44 @H_301_34@cul@H_301_34@
  45. 45 @H_301_34@paste@H_301_34@
  46. 46 @H_301_34@smartindent@H_301_34@ "智能对齐@H_301_34@
  47. 47 @H_301_34@autoindent@H_301_34@ "自动对齐@H_301_34@
  48. 48 @H_301_34@confirm@H_301_34@ "在处理未保存或只读文件的时候,弹出确认框@H_301_34@
  49. 49 @H_301_34@tabstop@H_301_34@=4 "tab键的宽度@H_301_34@
  50. 50 @H_301_34@softtabstop@H_301_34@=4
  51. 51 @H_301_34@shiftwidth@H_301_34@=4 "统一缩进为4@H_301_34@
  52. 52 @H_301_34@expandtab@H_301_34@ "不要用空格替代制表符@H_301_34@
  53. 53 @H_301_34@
  54. 54 @H_301_34@history@H_301_34@=50 "历史纪录数@H_301_34@
  55. 55 @H_301_34@"set nohlsearch@H_301_34@
  56. 56 @H_301_34@hlsearch@H_301_34@
  57. 57 @H_301_34@incsearch@H_301_34@ "搜素高亮,搜索逐渐高亮@H_301_34@
  58. 58 @H_301_34@
  59. 59 @H_301_34@gdefault@H_301_34@ "行内替换@H_301_34@
  60. 60 @H_301_34@encoding@H_301_34@=utf-8
  61. 61 @H_301_34@fileencodings@H_301_34@=utf-8,@H_301_34@ucs-bom301_34@shift-jis301_34@gb18030301_34@gbk301_34@gb2312301_34@cp936301_34@utf-16301_34@big5301_34@euc-jp301_34@latin1 "编码设置@H_301_34@
  62. 62 @H_301_34@
  63. 63 @H_301_34@guifont@H_301_34@=Menlo:@H_301_34@h16:@H_301_34@cANSI "设置字体@H_301_34@
  64. 64 @H_301_34@langmenu@H_301_34@=zn_CN.UTF-8
  65. 65 @H_301_34@helplang@H_301_34@=cn "语言设置@H_301_34@
  66. 66 @H_301_34@
  67. 67 @H_301_34@ruler@H_301_34@ "在编辑过程中,在右下角显示光标位置的状态行@H_301_34@
  68. 68 @H_301_34@laststatus@H_301_34@=1 "总是显示状态行@H_301_34@
  69. 69 @H_301_34@showcmd@H_301_34@ "在状态行显示目前所执行的命令,未完成的指令片段也会显示出来@H_301_34@
  70. 70 @H_301_34@scrolloff@H_301_34@=3 "光标移动到buffer的顶部和底部时保持3行的距离@H_301_34@
  71. 71 @H_301_34@"set showmatch "高亮显示对应的括号@H_301_34@
  72. 72 @H_301_34@matchtime@H_301_34@=5 "对应括号高亮时间(单位是十分之一秒)@H_301_34@
  73. 73 @H_301_34@autowrite@H_301_34@ "在切换buffer自动保存当前文件@H_301_34@
  74. 74 @H_301_34@wildmenu@H_301_34@ "增强模式中的命令行自动完成操作@H_301_34@
  75. 75 @H_301_34@linespace@H_301_34@=2 "字符间插入的像素行数目@H_301_34@
  76. 76 @H_301_34@whichwrap@H_301_34@=b301_34@s301_34@<@H_301_34@,98)">>@H_301_34@301_34@[301_34@] "开启normal visual模式下的backspace键空格键,@H_301_34@
  77. 77 @H_301_34@ "左右方向键,insert或replace模式下的左方向键,右方向键的跳行功能@H_301_34@
  78. 78 @H_301_34@
  79. 79 @H_301_34@"分为三部分命令:file on,file plugin on,file indent on @H_301_34@
  80. 80 @H_301_34@ "分别是自动识别文件类型,用用文件类型脚本,使用缩进定义文件@H_301_34@
  81. 81 @H_301_34@
  82. 82 @H_301_34@foldenable@H_301_34@ "允许折叠@H_301_34@
  83. 83 @H_301_34@cursorline@H_301_34@ "突出显示当前行@H_301_34@
  84. 84 @H_301_34@magic@H_301_34@ "设置魔术?神马东东@H_301_34@
  85. 85 @H_301_34@ignorecase@H_301_34@ "搜索忽略大小写@H_301_34@
  86. 86 @H_301_34@"filetype on "打开文件类型检测功能@H_301_34@
  87. 87 @H_301_34@
  88. 88 @H_301_34@foldmethod@H_301_34@=Syntax "使用语法高亮定义代码折叠: zc 折叠,zo 展开@H_301_34@
  89. 89 @H_301_34@foldlevelstart@H_301_34@=99 "打开文件是默认不折叠代码@H_301_34@
  90. 90 @H_301_34@
  91. 91 @H_301_34@"set mouse= "鼠标默认值@H_301_34@
  92. 92 @H_301_34@"set number "显示行号@H_301_34@
  93. 93 @H_301_34@
  94. 94 @H_301_34@" 自动切换vim工作目录@H_301_34@
  95. 95 @H_301_34@" set autochdir@H_301_34@
  96. 96 @H_301_34@" :cd 改变vim的当前工作路径@H_301_34@
  97. 97 @H_301_34@" :lcd 改变当前窗口的工作路径@H_301_34@
  98. 98 @H_301_34@" :pwd 查看当前的工作路径@H_301_34@
  99. 99 @H_301_34@
  100. 100 @H_301_34@behave@H_301_34@ mswin@H_301_34@
  101. 101 @H_301_34@
  102. 102 @H_301_34@if@H_301_34@ has@H_301_34@(@H_301_34@"autocmd"@H_301_34@)@H_301_34@
  103. 103 @H_301_34@ au@H_301_34@ BufReadPost@H_301_34@ * line@H_301_34@"'\""@H_301_34@)@H_301_34@ >@H_301_34@ 1@H_301_34@ &&@H_301_34@ <=@H_301_34@ "$"@H_301_34@)@H_301_34@ | exe@H_301_34@ "normal! g'\""@H_301_34@ |@H_301_34@ endif@H_301_34@
  104. 104 @H_301_34@ InsertEnter@H_301_34@ * silent@H_301_34@ execute@H_301_34@ "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape ibeam"@H_301_34@
  105. 105 @H_301_34@ InsertLeave@H_301_34@ * "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape block"@H_301_34@
  106. 106 @H_301_34@ VimLeave@H_301_34@ * "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape block"@H_301_34@
  107. 107 @H_301_34@endif@H_301_34@
  108. 108 @H_301_34@"##################################################################[auto exec cmds]@H_301_34@
  109. 109 @H_301_34@"autocmd VimEnter * TagbarToggle "auto start cmd@H_301_34@
  110. 110 @H_301_34@"autocmd VimEnter * WMToggle "auto start cmd@H_301_34@
  111. 111 @H_301_34@"autocmd VimEnter * NERDTree "auto start cmd@H_301_34@
  112. 112 @H_301_34@
  113. 113 @H_301_34@"default themes@H_301_34@
  114. 114 @H_301_34@autocmd@H_301_34@ VimEnter@H_301_34@ * call@H_301_34@ UserFunctionSwitch@H_301_34@(@H_301_34@6@H_301_34@)@H_301_34@
  115. 115 @H_301_34@
  116. 116 @H_301_34@ " default show line number@H_301_34@
  117. 117 @H_301_34@0@H_301_34@)@H_301_34@
  118. 118 @H_301_34@
  119. 119 @H_301_34@" default enable mouse@H_301_34@
  120. 120 @H_301_34@1@H_301_34@)@H_301_34@
  121. 121 @H_301_34@
  122. 122 @H_301_34@"Open Nerdtree when start vim with no argument@H_301_34@
  123. 123 @H_301_34@argc@H_301_34@()@H_301_34@ ==@H_301_34@ 0@H_301_34@ &&@H_301_34@ !exists@H_301_34@"s:std_in"@H_301_34@)@H_301_34@
  124. 124 @H_301_34@" autocmd VimEnter * WMToggle@H_301_34@
  125. 125 @H_301_34@endif@H_301_34@
  126. 126 @H_301_34@
  127. 127 @H_301_34@
  128. 128 @H_301_34@BufNewFile@H_301_34@ * 52@H_301_34@)@H_301_34@
  129. 129 @H_301_34@
  130. 130 @H_301_34@"##################################################################[ctags]@H_301_34@
  131. 131 @H_301_34@" Press F5 to update make ctags.@H_301_34@
  132. 132 @H_301_34@" cd ~/.ctags@H_301_34@
  133. 133 @H_301_34@" ctags -R ${source_path}@H_301_34@
  134. 134 @H_301_34@"silent !~/.vim/shell/make-ctags.sh@H_301_34@
  135. 135 @H_301_34@let@H_301_34@ g:pwd@H_301_34@ =@H_301_34@ getcwd@H_301_34@()@H_301_34@
  136. 136 @H_301_34@g:Newpwd@H_301_34@ ()@H_301_34@
  137. 137 @H_301_34@"let g:Newpwd = substitute(g:pwd,$HOME,@H_301_34@""@H_301_34@,128)">)@H_301_34@
  138. 138 @H_301_34@=@H_301_34@ "~/.ctags/"@H_301_34@ .@H_301_34@ substitute@H_301_34@(@H_301_34@g:Newpwd,"/"@H_301_34@,135)">"_"@H_301_34@,135)">"g"@H_301_34@)@H_301_34@
  139. 139 @H_301_34@
  140. 140 @H_301_34@settag@H_301_34@ "set tags="@H_301_34@ .@H_301_34@ .@H_301_34@ "/tags"@H_301_34@
  141. 141 @H_301_34@"echo settag@H_301_34@
  142. 142 @H_301_34@exec@H_301_34@ settag@H_301_34@
  143. 143 @H_301_34@
  144. 144 @H_301_34@g:argc@H_301_34@ ()@H_301_34@
  145. 145 @H_301_34@g:argv@H_301_34@ argv@H_301_34@)@H_301_34@
  146. 146 @H_301_34@"echo @H_301_34@"argv:"@H_301_34@ g:argv @H_301_34@"argc:"@H_301_34@ g:argc @H_301_34@
  147. 147 @H_301_34@
  148. 148 @H_301_34@if@H_301_34@ (@H_301_34@expand@H_301_34@(@H_301_34@g:argv==@H_301_34@ "clean"@H_301_34@))@H_301_34@
  149. 149 @H_301_34@ g:clean@H_301_34@ =@H_301_34@ 1@H_301_34@
  150. 150 @H_301_34@ echo@H_301_34@ "clean all session.vim.."@H_301_34@
  151. 151 @H_301_34@ silent@H_301_34@ :!~@H_301_34@/.@H_301_34@vim@H_301_34@/shell@H_301_34@/del@H_301_34@sh@H_301_34@
  152. 152 @H_301_34@endif@H_301_34@
  153. 153 @H_301_34@
  154. 154 @H_301_34@"##################################################################[key map]@H_301_34@
  155. 155 @H_301_34@nmap@H_301_34@ 1 : bp cr@H_301_34@>@H_301_34@
  156. 156 @H_301_34@nmap@H_301_34@ 2 : bn >@H_301_34@
  157. 157 @H_301_34@nmap@H_301_34@ Leader@H_301_34@>@H_301_34@1 : bd >@H_301_34@
  158. 158 @H_301_34@>@H_301_34@3 : PluginInstall >@H_301_34@
  159. 159 @H_301_34@
  160. 160 @H_301_34@nmap@H_301_34@ 3 : cn >@H_301_34@
  161. 161 @H_301_34@nmap@H_301_34@ 4 : cp >@H_301_34@
  162. 162 @H_301_34@
  163. 163 @H_301_34@nmap@H_301_34@ 5 C-]@H_301_34@>@H_301_34@
  164. 164 @H_301_34@
  165. 165 @H_301_34@nmap@H_301_34@ 6 C-o@H_301_34@>@H_301_34@
  166. 166 @H_301_34@
  167. 167 @H_301_34@nmap@H_301_34@ 7 C-i@H_301_34@>@H_301_34@
  168. 168 @H_301_34@
  169. 169 @H_301_34@"行号切换@H_301_34@
  170. 170 @H_301_34@map@H_301_34@ silent@H_301_34@>@H_301_34@ F2@H_301_34@>@H_301_34@ : call UserFunctionSwitch(0) CR@H_301_34@>@H_301_34@
  171. 171 @H_301_34@"鼠标切换@H_301_34@
  172. 172 @H_301_34@>@H_301_34@>@H_301_34@ : call UserFunctionSwitch(1) >@H_301_34@
  173. 173 @H_301_34@
  174. 174 @H_301_34@"neadtree@H_301_34@
  175. 175 @H_301_34@F3@H_301_34@>@H_301_34@ : call UserFunctionSwitch(2) >@H_301_34@
  176. 176 @H_301_34@"tagbarlist@H_301_34@
  177. 177 @H_301_34@>@H_301_34@ : call UserFunctionSwitch(3) >@H_301_34@
  178. 178 @H_301_34@
  179. 179 @H_301_34@"mru,file open history record@H_301_34@
  180. 180 @H_301_34@" nmap <silent> <Leader><F4> : call UserFunctionSwitch(4) <CR>@H_301_34@
  181. 181 @H_301_34@"file search@H_301_34@
  182. 182 @H_301_34@F4@H_301_34@>@H_301_34@ : exec "CtrlP ." >@H_301_34@
  183. 183 @H_301_34@>@H_301_34@ : exec "CtrlPFunky" >@H_301_34@
  184. 184 @H_301_34@nmap@H_301_34@ fu : execute 'CtrlPFunky ' . expand('')
  185. 185 @H__34@
  186. 301186 @H__34@301"make source tags@H__34@
  187. 301187 @H__34@301F5@H__34@301>@H__34@ : call UserFunctionSwitch(5) 301>@H__34@
  188. 301188 @H__34@301>@H__34@ : call UserFunctionSwitch(51) 301>@H__34@
  189. 301189 @H__34@
  190. 301190 @H__34@301"miniBuf@H__34@
  191. 301191 @H__34@301F6@H__34@301>@H__34@ : call UserFunctionSwitch(70) 301>@H__34@
  192. 301192 @H__34@301"buf exploler@H__34@
  193. 301193 @H__34@301>@H__34@ : call UserFunctionSwitch(7) 301>@H__34@
  194. 301194 @H__34@
  195. 301195 @H__34@301"quickfix @H__34@
  196. 301196 @H__34@301F7@H__34@301>@H__34@ : call UserFunctionSwitch(8) 301>@H__34@
  197. 301197 @H__34@301"nmap <silent> 8 : call UserFunctionSwitch(80) <CR>@H__34@
  198. 301198 @H__34@301"nmap <silent> 9 : call UserFunctionSwitch(81) <CR>@H__34@
  199. 301199 @H__34@301"themes switch@H__34@
  200. 301200 @H__34@301>@H__34@ : call UserFunctionSwitch(6) 301>@H__34@
  201. 301201 @H__34@
  202. 301202 @H__34@301F8@H__34@301>@H__34@ : call UserFunctionSwitch(50) 301>@H__34@
  203. 301203 @H__34@
  204. 301204 @H__34@301"ack search file & symbols@H__34@
  205. 301205 @H__34@301>@H__34@s : Ack 301Space@H__34@301>@H__34@
  206. 301206 @H__34@301>@H__34@f : AckFile 301>@H__34@
  207. 301207 @H__34@301>@H__34@q : q 301>@H__34@
  208. 301208 @H__34@301>@H__34@qa : qall 301>@H__34@
  209. 301209 @H__34@301nmap@H__34@ :ag : Ag -i 301>@H__34@
  210. 301210 @H__34@301nmap@H__34@ :af : AgFile 301>@H__34@
  211. 301211 @H__34@
  212. 301212 @H__34@301" quit all & save session.vim.@H__34@
  213. 301213 @H__34@301F12@H__34@301>@H__34@ : call UserFunctionSwitch(30) 301>@H__34@
  214. 301214 @H__34@301>@H__34@qs : call UserFunctionSwitch(30) 301>@H__34@
  215. 301215 @H__34@301>@H__34@wq : wq 301>@H__34@
  216. 301216 @H__34@301>@H__34@w : w 301>@H__34@
  217. 301217 @H__34@301>@H__34@rn : %s/\r//g 301>@H__34@ "替换^M
  218. 301218 @H__34@301>@H__34@rs : call LeaveHandler() 301>@H__34@
  219. 301219 @H__34@
  220. 301220 @H__34@301" cscope@H__34@
  221. 301221 @H__34@301nmap@H__34@ cc : cscope find c 301>@H__34@
  222. 301222 @H__34@301nmap@H__34@ cd : cscope find d 301>@H__34@
  223. 301223 @H__34@301nmap@H__34@ cf : cscope find f 301>@H__34@
  224. 301224 @H__34@301nmap@H__34@ cg : cscope find g 301>@H__34@
  225. 301225 @H__34@301nmap@H__34@ cs : cscope find s 301>@H__34@
  226. 301226 @H__34@301nmap@H__34@ ct : cscope find t 301>@H__34@
  227. 301227 @H__34@301"##################################################################[function]@H__34@
  228. 301228 @H__34@301g:userFuncSwitch@H__34@ 3011@H__34@
  229. 301229 @H__34@301g:line_number_show@H__34@ 3010@H__34@
  230. 301230 @H__34@301g:mouse_enable@H__34@ 3010@H__34@
  231. 301231 @H__34@301g:window_flag@H__34@ 3011@H__34@
  232. 301232 @H__34@301g:MRU_flag@H__34@ 3010@H__34@
  233. 301233 @H__34@301g:themes_flag@H__34@ 3011@H__34@
  234. 301234 @H__34@301g:ctags@H__34@ 301""@H__34@
  235. 301235 @H__34@
  236. 301236 @H__34@301g:quickfix@H__34@ 3010@H__34@
  237. 301237 @H__34@
  238. 301238 @H__34@301function@H__34@! UserFunctionSwitch301(@H__34@cmd301)@H__34@
  239. 301239 @H__34@301=@H__34@ 301a:cmd@H__34@
  240. 301240 @H__34@301exec@H__34@ 301": on"@H__34@
  241. Syntax301241 @H__34@
  242. 301242 @H__34@301if@H__34@ 301a:cmd@H__34@ 3010@H__34@
  243. 301243 @H__34@ 3010@H__34@
  244. 301244 @H__34@ 301'set nu'@H__34@
  245. 301245 @H__34@ 3011@H__34@
  246. 301246 @H__34@ 301'Show line number!'@H__34@
  247. 301247 @H__34@ 301else@H__34@
  248. 301248 @H__34@ 301'set nonu'@H__34@
  249. 301249 @H__34@ 3010@H__34@
  250. 301250 @H__34@ 301endif@H__34@
  251. 301251 @H__34@ 301return@H__34@
  252. 301252 @H__34@301endif@H__34@
  253. 301253 @H__34@
  254. 301254 @H__34@3011@H__34@
  255. 301255 @H__34@ 3010@H__34@
  256. 301256 @H__34@ 3011@H__34@
  257. 301257 @H__34@ 301'set mouse=n'@H__34@
  258. 301258 @H__34@ 301'enable mouse'@H__34@
  259. 301259 @H__34@ 301else@H__34@
  260. 301260 @H__34@ 3010@H__34@
  261. 301261 @H__34@ 301'set mouse='@H__34@
  262. 301262 @H__34@ 301'disable mouse'@H__34@
  263. 301263 @H__34@ 301endif@H__34@
  264. 301264 @H__34@ 301return@H__34@
  265. 301265 @H__34@301endif@H__34@
  266. 301266 @H__34@
  267. 301267 @H__34@3012@H__34@
  268. 301268 @H__34@ 301'WMToggle'@H__34@
  269. 301269 @H__34@ 301return@H__34@
  270. 301270 @H__34@301endif@H__34@
  271. 301271 @H__34@
  272. 301272 @H__34@3013@H__34@
  273. 301273 @H__34@ 301'TagbarToggle'@H__34@
  274. 301274 @H__34@ 301return@H__34@
  275. 301275 @H__34@301endif@H__34@
  276. 301276 @H__34@
  277. 301277 @H__34@3014@H__34@
  278. 301278 @H__34@ 3010@H__34@
  279. 301279 @H__34@ 3011@H__34@
  280. 301280 @H__34@ 301'MRU'@H__34@
  281. 301281 @H__34@ 301else@H__34@
  282. 301282 @H__34@ 3010@H__34@
  283. 301283 @H__34@ 301'MRU'@H__34@
  284. 301284 @H__34@ 301'q'@H__34@
  285. 301285 @H__34@ 301endif@H__34@
  286. 301286 @H__34@ 301return@H__34@
  287. 301287 @H__34@301endif@H__34@
  288. 301288 @H__34@
  289. 301289 @H__34@3015@H__34@
  290. 301290 @H__34@ 301"Start make tag.."@H__34@
  291. 301291 @H__34@ 301g:time1@H__34@ 301localtime@H__34@301()@H__34@
  292. 301292 @H__34@ 301system@H__34@301"~/.vim/shell/make-ctags.sh "@H__34@ 301shellescape@H__34@301'%:h'@H__34@301)))@H__34@
  293. 301293 @H__34@ 301g:ctag_execcmd@H__34@ 301"set tags+="@H__34@ 301g:ctags@H__34@
  294. 301294 @H__34@ 301g:ctag_execcmd@H__34@
  295. 301295 @H__34@ 301g:time2@H__34@ 301()@H__34@
  296. 301296 @H__34@ 301echo@H__34@ 301g:ctag_execcmd@H__34@ 301"escape time:"@H__34@ (301g:time2@H__34@ - 301g:time1@H__34@)301"s"@H__34@
  297. 301297 @H__34@ 301return@H__34@
  298. 301298 @H__34@301endif@H__34@
  299. 301299 @H__34@
  300. 301300 @H__34@301" 一键更新ctags & cscope..@H__34@
  301. 301 @H__34@30130150@H__34@
  302. 301302 @H__34@301 " exec g:ctag_execcmd@H__34@
  303. 301303 @H__34@301 " cs kill -1@H__34@
  304. 301304 @H__34@301 " exec g:cscope_cmd@H__34@
  305. 301305 @H__34@ 301return@H__34@
  306. 301306 @H__34@301endif@H__34@
  307. 301307 @H__34@
  308. 301308 @H__34@30151@H__34@
  309. 301309 @H__34@ 301"Start make cscope.."@H__34@
  310. 301310 @H__34@ 301t1@H__34@ 301()@H__34@
  311. 301311 @H__34@ 301db@H__34@ 301"~/.vim/shell/cscope.sh "@H__34@ 301'%:p'@H__34@301)))@H__34@
  312. 301312 @H__34@ 301path@H__34@ 301strpart@H__34@301(@H__34@db,3010@H__34@,301match@H__34@301"cscope.out"@H__34@301))@H__34@ 301" 必须这样,否则多余的结束符^@会导致cs add 异常. @H__34@
  313. 截取301313 @H__34@ 301g:cscope_cmd@H__34@ 301"cs add "@H__34@ 301.@H__34@ path 301"cscope.out"@H__34@
  314. 301314 @H__34@ 301g:cscope_cmd@H__34@
  315. 301315 @H__34@ 301cs@H__34@ kill 301-@H__34@3011@H__34@
  316. 301316 @H__34@ 301g:cscope_cmd@H__34@
  317. 301317 @H__34@ 301t2@H__34@ 301()@H__34@
  318. 301318 @H__34@ 301t2@H__34@ - 301t1@H__34@)301"s"@H__34@
  319. 301319 @H__34@ 301return@H__34@
  320. 301320 @H__34@301endif@H__34@
  321. 301321 @H__34@
  322. 301322 @H__34@301" 监听执行命令@H__34@
  323. 301323 @H__34@30152@H__34@
  324. 301324 @H__34@301 " let cwd = getcwd()@H__34@
  325. 301325 @H__34@301 " echo @H__34@301"cwd:"@H__34@301 cwd@H__34@
  326. 301326 @H__34@ 301return@H__34@
  327. 301327 @H__34@301endif@H__34@
  328. 301328 @H__34@
  329. 301329 @H__34@
  330. 301330 @H__34@3016@H__34@
  331. 301331 @H__34@
  332. 301332 @H__34@ 3010@H__34@
  333. 301333 @H__34@ 3011@H__34@
  334. 301334 @H__34@ 301"colorscheme solarized"@H__34@
  335. 301335 @H__34@ 301g:molokai_original@H__34@ 3010@H__34@
  336. 301336 @H__34@ 301g:rehash256@H__34@ 3010@H__34@
  337. 301337 @H__34@ 301"set background=dark"@H__34@
  338. 301338 @H__34@ 301"set t_Co=32"@H__34@
  339. 301339 @H__34@ 301return@H__34@
  340. 301340 @H__34@ 301endif@H__34@
  341. 301341 @H__34@ 3011@H__34@
  342. 301342 @H__34@ 3012@H__34@
  343. 301343 @H__34@ 301"colorscheme molokai"@H__34@
  344. 301344 @H__34@ 3011@H__34@
  345. 301345 @H__34@ 3011@H__34@
  346. 301346 @H__34@ 301"set background=dark"@H__34@
  347. 301347 @H__34@ 301"set t_Co=256"@H__34@
  348. 301348 @H__34@ 301return@H__34@
  349. 301349 @H__34@ 301endif@H__34@
  350. 301350 @H__34@
  351. 301351 @H__34@ 3012@H__34@
  352. 301352 @H__34@ 3013@H__34@
  353. 301353 @H__34@ 3010@H__34@
  354. 301354 @H__34@ 3010@H__34@
  355. 301355 @H__34@ 301"colorscheme default"@H__34@
  356. 301356 @H__34@ 301"set background=light"@H__34@
  357. 301357 @H__34@ 301"set t_Co=128"@H__34@
  358. 301358 @H__34@ 301return@H__34@
  359. 301359 @H__34@ 301endif@H__34@
  360. 301360 @H__34@
  361. 301361 @H__34@ 3013@H__34@
  362. 301362 @H__34@ 3011@H__34@
  363. 301363 @H__34@
  364. 301364 @H__34@ 301"set background=dark"@H__34@
  365. 301365 @H__34@ 301"set t_Co=256"@H__34@
  366. 301366 @H__34@ 301return@H__34@
  367. 301367 @H__34@ 301endif@H__34@
  368. 301368 @H__34@ 301return@H__34@
  369. 301369 @H__34@301endif@H__34@
  370. 301370 @H__34@
  371. 301371 @H__34@
  372. 301372 @H__34@30170@H__34@
  373. 301373 @H__34@ 301'TMiniBufExplorer'@H__34@
  374. 301374 @H__34@ 301return@H__34@
  375. 301375 @H__34@301endi@H__34@
  376. 301376 @H__34@
  377. 301377 @H__34@3017@H__34@
  378. 301378 @H__34@ 301'ToggleBufExplorer'@H__34@
  379. 301379 @H__34@ 301return@H__34@
  380. 301380 @H__34@301endif@H__34@
  381. 301381 @H__34@
  382. 301382 @H__34@3018@H__34@
  383. 301383 @H__34@ 3010@H__34@
  384. 301384 @H__34@ 3011@H__34@
  385. 301385 @H__34@ 301"cclose"@H__34@
  386. 301386 @H__34@ 301else@H__34@
  387. 301387 @H__34@ 3010@H__34@
  388. 301388 @H__34@ 301"copen"@H__34@
  389. 301389 @H__34@ 301endif@H__34@
  390. 301390 @H__34@ 301return@H__34@
  391. 301391 @H__34@301endif@H__34@
  392. 301392 @H__34@
  393. 301393 @H__34@30180@H__34@
  394. 301394 @H__34@ 3011@H__34@
  395. 301395 @H__34@ 301"bn"@H__34@
  396. 301396 @H__34@ 301else@H__34@
  397. 301397 @H__34@ 301"cn"@H__34@
  398. 301398 @H__34@ 301endif@H__34@
  399. 301399 @H__34@ 301return@H__34@
  400. 301400 @H__34@301endif@H__34@
  401. 301401 @H__34@
  402. 301402 @H__34@30181@H__34@
  403. 301 @H__34@ 4033011@H__34@
  404. 301 @H__34@ 404301"bp"@H__34@
  405. 301405 @H__34@ 301else@H__34@
  406. 301406 @H__34@ 301"cp"@H__34@
  407. 301407 @H__34@ 301endif@H__34@
  408. 301408 @H__34@ 301return@H__34@
  409. 301409 @H__34@301endif@H__34@
  410. 301410 @H__34@
  411. 301411 @H__34@30120@H__34@
  412. 301412 @H__34@301 "call MyTabLine()@H__34@
  413. 301413 @H__34@301 "echo 'tab:' tab@H__34@
  414. 301414 @H__34@ 301return@H__34@
  415. 301415 @H__34@301endif@H__34@
  416. 301416 @H__34@
  417. 301417 @H__34@30130@H__34@
  418. 301418 @H__34@ 301g:quit_save@H__34@ 3011@H__34@
  419. 301419 @H__34@ 301"qall"@H__34@
  420. 301420 @H__34@ 301return@H__34@
  421. 301421 @H__34@301endif@H__34@
  422. 301422 @H__34@
  423. 301423 @H__34@301endfunction@H__34@
  424. 301424 @H__34@
  425. 301425 @H__34@301"##################################################################[TlistToggle,NERDTree]@H__34@
  426. 301426 @H__34@301NERDTreeQuitOnOpen@H__34@301=@H__34@3011@H__34@ 301"打开时树@H__34@
  427. 文件关闭301427 @H__34@301NERDTreeShowBookmarks@H__34@301"书签@H__34@
  428. 显示301428 @H__34@301Tlist_Show_One_File@H__34@ 301" 不同时多个的 tag ,只当前的@H__34@
  429. 显示文件显示文件301429 @H__34@301Tlist_Exit_OnlyWindow@H__34@ 301" 如果 taglist 窗口是最后一个窗口,则 vim@H__34@
  430. 退出301430 @H__34@301Tlist_Use_Right_Window@H__34@ 3011@H__34@
  431. 301431 @H__34@301Tlist_Auto_Open@H__34@ 3010@H__34@
  432. 301432 @H__34@301"###################################################################[cscope]@H__34@
  433. 301433 @H__34@301" @H__34@
  434. http://www.jb51.cc/article/p-hjohkcxr-bb.html301434 @H__34@
  435. 301435 @H__34@301" 安装:@H__34@
  436. 301436 @H__34@301" sudo apt-get install cscope@H__34@
  437. 301437 @H__34@
  438. 301438 @H__34@301" 创建索引:@H__34@
  439. 301439 @H__34@301" cscope -Rbq@H__34@
  440. 301440 @H__34@301" 把需要创建索引的类型输入到这个@H__34@
  441. 文件文件301441 @H__34@301" find . -type f > cscope.files@H__34@
  442. 301442 @H__34@
  443. 301443 @H__34@301" vim@H__34@
  444. 添加301444 @H__34@301" :cs add ./cscope.out@H__34@
  445. 301445 @H__34@
  446. 301446 @H__34@301" 查找func@H__34@
  447. 函数301447 @H__34@301" :cs find s func@H__34@
  448. 301448 @H__34@
  449. 301449 @H__34@301" vim8cscope的,如下:@H__34@
  450. 支持查询功能301450 @H__34@301" s: 查找C语言符号,即查找名、宏、等出现的地方(头)@H__34@
  451. 函数枚举值包括文件301451 @H__34@301" g: 查找、宏、枚举等定义的位置,类似ctags所提供的(比如有可能只在头处)@H__34@
  452. 函数功能文件301452 @H__34@301" d: 查找本的@H__34@
  453. 函数调用函数301453 @H__34@301" c: 查找本的@H__34@
  454. 调用函数函数301454 @H__34@301" t: 查找指定的字符串@H__34@
  455. 301455 @H__34@301" e: 查找egrep模式,相当于egrep,但查找速度快多了@H__34@
  456. 功能301456 @H__34@301" f: 查找并打开,类似vim的find@H__34@
  457. 文件功能301457 @H__34@301" i: 查找包含本的@H__34@
  458. 文件文件301458 @H__34@301" 其他可输入:help cscope查看@H__34@
  459. 功能301459 @H__34@
  460. 301460 @H__34@301"cscope"@H__34@301)@H__34@
  461. 301461 @H__34@301 " set csprg=/usr/bin/cscope@H__34@
  462. 301462 @H__34@ 301csprg@H__34@=cscope
  463. 301463 @H__34@ 301csto@H__34@=1
  464. 301464 @H__34@ 301cst@H__34@
  465. 301465 @H__34@ 301nocsverb@H__34@
  466. 301466 @H__34@301 " add any database in current directory@H__34@
  467. 301467 @H__34@301 " if filereadable("cscope.out")@H__34@
  468. 301468 @H__34@301 " cs add cscope.out@H__34@
  469. 301469 @H__34@301 " else add database pointed to by environment@H__34@
  470. 301470 @H__34@301 " elseif $CSCOPE_DB != @H__34@301""@H__34@
  471. 301471 @H__34@301 " cs add $CSCOPE_DB@H__34@
  472. 301472 @H__34@301 " endif@H__34@
  473. 301473 @H__34@ 301csverb@H__34@
  474. 301474 @H__34@301endif@H__34@
  475. 301475 @H__34@
  476. 301476 @H__34@301"##################################################################[Ctrlp]@H__34@
  477. 301477 @H__34@301rtp@H__34@+=~/.vim/bundle/ctrlp.vim
  478. @H_215_2@478 @H__34@:301404301helptags@H__34@ ~/301vim@H__34@/bundle/ctrlp301vim@H__34@/doc
  479. 301479 @H__34@301g:ctrlp_map@H__34@ 301'<c-p>'@H__34@
  480. 301480 @H__34@301g:ctrlp_cmd@H__34@ 301'CtrlP'@H__34@
  481. 301481 @H__34@301g:ctrlp_working_path_mode@H__34@ 301'cra'@H__34@
  482. 301482 @H__34@
  483. 301483 @H__34@301g:ctrlp_custom_ignore@H__34@ 301=@H__34@ 301{@H__34@
  484. 301484 @H__34@301 \@H__34@ 301'dir'@H__34@: 301'\v[\/]\.(git|hg|svn|rvm|out|gen)$'@H__34@,301485 @H__34@301'file'@H__34@: 301'\v\.(exe|so|dll|zip|tar|tar.gz|pyc|a|img|apk|bak|ko|deb|~|swp|tmp|html|jpg|png|bmp|ogg|log|jar|o)$'@H__34@,301486 @H__34@301 \@H__34@ 301}@H__34@
  485. 301487 @H__34@
  486. 301488 @H__34@301wildignore@H__34@+=*/tmp/*301301_34@*.so301_34@*.swp301_34@*.zip301_34@*.exe301_34@*.tar301_34@*.deb301_34@*~301_34@*.bak301_34@*.ko301_34@*.bin301_34@*.img301_34@*.apk301_34@*.jar
  487. 489 @H__34@
  488. 301490 @H__34@301g:ctrlp_regexp@H__34@ 3011@H__34@
  489. 301491 @H__34@
  490. 301492 @H__34@301g:ctrlp_cache_dir@H__34@ 301'~/.cache/ctrlp'@H__34@
  491. 301493 @H__34@301g:ctrlp_show_hidden@H__34@ 3010@H__34@
  492. 301494 @H__34@
  493. 301495 @H__34@301" sudo apt-get install silversearcher-ag@H__34@
  494. 301496 @H__34@301" when use ag,add custom ignore to : ~/.agignore@H__34@
  495. 301497 @H__34@301executable@H__34@301'ag'@H__34@301)@H__34@
  496. 301498 @H__34@ 301g:ctrlp_use_caching@H__34@ 3011@H__34@
  497. 301499 @H__34@ 301grepprg@H__34@=ag\ --nogroup\ --nocolor
  498. 301500 @H__34@ 301g:ctrlp_user_command@H__34@ 301'ag %s -l --nocolor --hidden -g ""'@H__34@
  499. 301501 @H__34@301else@H__34@
  500. 301 @H__34@ 5023011@H__34@
  501. 301503 @H__34@ 301=@H__34@ [301'.git'@H__34@,135)">'cd %s && git ls-files . -co --exclude-standard'@H__34@,135)">'find %s -type f'@H__34@]
  502. 301301301504 @H__34@ 301g:ctrlp_prompt_mappings@H__34@ 301{@H__34@
  503. 301505 @H__34@ 301'AcceptSelection("e")'@H__34@: [301'<space>'@H__34@,135)">'<cr>'@H__34@,135)">'<2-LeftMouse>'@H__34@],301301301506 @H__34@ 301}@H__34@
  504. 301507 @H__34@301endif@H__34@
  505. 301508 @H__34@
  506. 301509 @H__34@301" echo @H__34@301"g:ctrlp_user_command :"@H__34@301 g:ctrlp_user_command@H__34@
  507. 301510 @H__34@
  508. 301511 @H__34@301g:ctrlp_clear_cache_on_exit@H__34@ 3010@H__34@
  509. 301512 @H__34@301g:ctrlp_max_depth@H__34@ 301100@H__34@
  510. 301513 @H__34@301g:ctrlp_max_files@H__34@ 3015000000@H__34@
  511. 301514 @H__34@
  512. 301515 @H__34@301" ctrlp-funky@H__34@
  513. 301516 @H__34@301g:ctrlp_funky__highlight@H__34@ Syntax3011@H__34@
  514. 301517 @H__34@301"##################################################################[winManager]@H__34@
  515. 301518 @H__34@301g:NERDTree_title@H__34@301=@H__34@301"[NERDTree]"@H__34@
  516. 301519 @H__34@301g:winManagerWindowLayout@H__34@301'NERDTree'@H__34@
  517. 301520 @H__34@
  518. 301521 @H__34@301function@H__34@! NERDTree_Start301()@H__34@
  519. 301522 @H__34@ 301'NERDTree'@H__34@
  520. 301523 @H__34@301endfunction@H__34@
  521. 301524 @H__34@
  522. 301525 @H__34@301function@H__34@! NERDTree_IsValid301()@H__34@
  523. 301526 @H__34@ 301return@H__34@ 3011@H__34@
  524. 301527 @H__34@301endfunction@H__34@
  525. 301528 @H__34@
  526. 301529 @H__34@301" NOTIC!!! modefiy WinManager.vim to fixed open empty file bug:@H__34@
  527. 301530 @H__34@301"function! <SID>ToggleWindowsManager() @H__34@
  528. 301531 @H__34@301" if IsWinManagerVisible() @H__34@
  529. 301532 @H__34@301" call s:CloseWindowsManager() @H__34@
  530. 301533 @H__34@301" else @H__34@
  531. 301534 @H__34@301" call s:StartWindowsManager() @H__34@
  532. 301535 @H__34@301" exe 'q' " ADD THIS LINE!@H__34@
  533. 301536 @H__34@301" end @H__34@
  534. 301537 @H__34@301"endfunction @H__34@
  535. 301538 @H__34@
  536. 301539 @H__34@301"##################################################################[MiniBufExplorer]@H__34@
  537. 301540 @H__34@301g:default_open_minibufexplorer@H__34@ 3010@H__34@
  538. 301541 @H__34@301g:miniBufExplMapWindowNavVim@H__34@ 3011@H__34@
  539. 301542 @H__34@301g:miniBufExplMapWindowNavArrows@H__34@ 3011@H__34@
  540. 301543 @H__34@301g:miniBufExplMapCTabSwitchBufs@H__34@ 3011@H__34@
  541. 301544 @H__34@301g:miniBufExplModSelTarget@H__34@ 3011@H__34@
  542. 301545 @H__34@301g:miniBufExplMoreThanOne@H__34@3010@H__34@
  543. 301546 @H__34@
  544. 301547 @H__34@301"BufExplorer@H__34@
  545. 301548 @H__34@301rtp@H__34@+=~/.vim/bundle/bufexplorer
  546. 301549 @H__34@
  547. 301550 @H__34@301g:bufExplorerShowRelativePath@H__34@3010@H__34@ 301" Show absolute paths.@H__34@
  548. 301551 @H__34@301g:bufExplorerSortBy@H__34@301'extension'@H__34@
  549. 301552 @H__34@301'fullpath'@H__34@
  550. 301553 @H__34@301'mru'@H__34@
  551. 301554 @H__34@301'name'@H__34@
  552. @H__2785@555 @H__34@301403301'number'@H__34@
  553. 301556 @H__34@
  554. 301557 @H__34@301"nmap <silent> <s-F7> :BufExplorer<CR> @H__34@
  555. 301558 @H__34@301"nmap <silent> <m-F7> :BufExplorerHorizontalSplit<CR>@H__34@
  556. 301559 @H__34@301"nmap <silent> <c-F7> :BufExplorerVerticalSplit<CR>@H__34@
  557. 301560 @H__34@301"##################################################################[SuperTab]@H__34@
  558. 301561 @H__34@301g:SuperTabDefaultCompletionType@H__34@301"context"@H__34@
  559. 301562 @H__34@
  560. 301563 @H__34@301"##################################################################[TagbarToggle]@H__34@
  561. 301564 @H__34@301g:tagbar_ctags_bin@H__34@ 301'ctags'@H__34@
  562. 301565 @H__34@301g:tagbar_width@H__34@ 30130@H__34@
  563. 301566 @H__34@
  564. 301567 @H__34@301"##################################################################[mru]@H__34@
  565. 301568 @H__34@301rtp@H__34@+=~/.vim/bundle/mru
  566. 301569 @H__34@301g:MRU_Max_Entries@H__34@ 3011000@H__34@
  567. 301570 @H__34@301g:MRU_Exclude_Files@H__34@ 301'^/tmp/.*\|^/var/tmp/.*'@H__34@ 301" For Unix@H__34@
  568. 301571 @H__34@301g:MRU_Include_Files@H__34@ 301'\.c$\|\.h$'@H__34@
  569. 301572 @H__34@301g:MRU_Window_Height@H__34@ 3018@H__34@
  570. 301573 @H__34@301"let g:MRU_Use_Current_Window = 1@H__34@
  571. 301574 @H__34@301g:MRU_Auto_Close@H__34@ 3010@H__34@
  572. 301575 @H__34@301g:MRU_Max_Menu_Entries@H__34@ 30120@H__34@
  573. 301576 @H__34@
  574. 301577 @H__34@301"##################################################################[auto-pairs]@H__34@
  575. 301578 @H__34@301runtimepath@H__34@^=~/.vim/bundle/auto-pairs
  576. 301579 @H__34@301g:AutoPairsFlyMode@H__34@ 3011@H__34@
  577. 301580 @H__34@301g:AutoPaihortcutBackInsert@H__34@ RSS301'<M-b>'@H__34@
  578. 301581 @H__34@301laststatus@H__34@=2
  579. 301582 @H__34@301"##################################################################[nerdcommenter] "\cc 注释当前行和选中行 @H__34@
  580. 301583 @H__34@301"\cu 取消注释 @H__34@
  581. 301584 @H__34@301rtp@H__34@+=~/.vim/bundle/nerdcommenter
  582. 301585 @H__34@301g:NERDSpaceDelims@H__34@ 3011@H__34@
  583. 301586 @H__34@301g:NERDAltDelims_java@H__34@ 3011@H__34@
  584. 301587 @H__34@301g:NERDCustomDelimiters@H__34@ 301{@H__34@ 301'c'@H__34@: 301'left'@H__34@: 301'/**'@H__34@,135)">'right'@H__34@: 301301'*/'@H__34@ 301}@H__34@ 301}@H__34@
  585. 301588 @H__34@301g:NERDCommentEmptyLines@H__34@ 3011@H__34@
  586. 301589 @H__34@301g:NERDTrimTrailingWhitespace@H__34@ 3011@H__34@
  587. 301590 @H__34@301g:NERDCompactSexyComs@H__34@ 3011@H__34@
  588. 301591 @H__34@
  589. 301592 @H__34@301"##################################################################[ack]@H__34@
  590. 301593 @H__34@301rtp@H__34@+=~/.vim/bundle/ack.vim
  591. 301594 @H__34@301g:ackprg@H__34@ 301'~/.vim/shell/xgrep'@H__34@ 301"find symbols and files.@H__34@
  592. 301595 @H__34@301g:ack_autoclose@H__34@ 3011@H__34@
  593. 301596 @H__34@301g:ackpreview@H__34@ 3011@H__34@
  594. 301597 @H__34@301g:ackhighlight@H__34@ 3011@H__34@
  595. 301598 @H__34@301g:ack_autofold_results@H__34@ 3010@H__34@
  596. @H_781_2@599 @H__34@301301301g:ack_lhandler@H__34@ 301"botright lopen 8"@H__34@
  597. @H_882_8@600 @H__34@301301301g:ack_qhandler@H__34@ 301"botright copen 8"@H__34@
  598. 301601 @H__34@
  599. 301602 @H__34@301"##################################################################[resume history]@H__34@
  600. 301603 @H__34@301g:AutoSessionFile@H__34@ 301"/session.vim"@H__34@
  601. 301604 @H__34@301if@H__34@301(@H__34@g:AutoSessionFile301findfile@H__34@301)))@H__34@
  602. 301605 @H__34@ 301copy@H__34@301sh@H__34@
  603. 301606 @H__34@ 301source@H__34@ ~/301.@H__34@ctags/session301vim@H__34@
  604. 301607 @H__34@301endif@H__34@
  605. 301608 @H__34@
  606. 301609 @H__34@301g:AutoCscopeFile@H__34@ 301"/cscope.out"@H__34@
  607. 301610 @H__34@301(@H__34@g:AutoCscopeFile301)))@H__34@
  608. 301611 @H__34@301 " 必须这样,否则多余的结束符^@会导致cs add 异常. @H__34@
  609. 截取301612 @H__34@ 301(@H__34@g:AutoCscopeFile,98)">))@H__34@
  610. 301301613 @H__34@ 301cmd@H__34@ 301"cscope.out"@H__34@
  611. 301614 @H__34@301"path:"@H__34@301 path@H__34@
  612. 301615 @H__34@301"cmd:"@H__34@301 cmd@H__34@
  613. 301616 @H__34@ 301silent@H__34@: 301cmd@H__34@
  614. 301617 @H__34@301endif@H__34@
  615. 301618 @H__34@
  616. 301619 @H__34@301call@H__34@ 301LeaveHandler@H__34@301()@H__34@
  617. 301620 @H__34@301function@H__34@! LeaveHandler301()@H__34@
  618. 301621 @H__34@ 301(@H__34@g:quit_save 301)@H__34@
  619. 301622 @H__34@ 301g:path@H__34@ 301"~/.vim/shell/get_path.sh "@H__34@ 301)))@H__34@
  620. 301623 @H__34@ 301execcmd@H__34@ 301"mks! "@H__34@301g:path@H__34@
  621. 301624 @H__34@ 301execcmd@H__34@
  622. 301625 @H__34@ 301execcmd@H__34@
  623. 301626 @H__34@ 301else@H__34@
  624. 301627 @H__34@ 301"exit but no save session.vim"@H__34@
  625. 301628 @H__34@ 301endif@H__34@
  626. 301629 @H__34@301endfunction@H__34@
  627. 301630 @H__34@
  628. 301631 @H__34@301


现在,基本可以使用vim代替si了 !

猜你在找的Bash相关文章