差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
public:it:vim [2015/03/17 15:39] – oakfire | public:it:vim [2018/02/28 13:48] (当前版本) – 外部编辑 127.0.0.1 | ||
---|---|---|---|
行 8: | 行 8: | ||
==== Vundle ==== | ==== Vundle ==== | ||
* Vundle is short for //Vim bundle// and is a Vim plugin manager. | * Vundle is short for //Vim bundle// and is a Vim plugin manager. | ||
- | * [[https:// | + | * [[https:// |
==== taglist ==== | ==== taglist ==== | ||
* [[http:// | * [[http:// | ||
* 依赖第三方ctags | * 依赖第三方ctags | ||
- | * 可在.vimrc设置: | + | * 可在.vimrc设置: |
* 窗口居右'' | * 窗口居右'' | ||
+ | ==== NERDTree ==== | ||
+ | * 树状文件窗口 | ||
==== NERDcomment ==== | ==== NERDcomment ==== | ||
* 代码注释 '' | * 代码注释 '' | ||
==== YouCompleteMe ==== | ==== YouCompleteMe ==== | ||
- | * [[https:// | + | * [[https:// |
+ | * 安装复杂, | ||
+ | * 对 nodejs 很好用,仔细看说明文档 javascript 部分. 需要在工程目录下新建个 '' | ||
==== clang_complete ==== | ==== clang_complete ==== | ||
行 27: | 行 31: | ||
* 代码首先需clang成功编译过一次才有补全 | * 代码首先需clang成功编译过一次才有补全 | ||
- | ===== NOTE ===== | + | ===== Tips ===== |
+ | * 语法高亮, | ||
+ | * 如果文件名没有后缀,手动指定类型 '': | ||
* 当前行替换'': | * 当前行替换'': | ||
* 命令模式下,'' | * 命令模式下,'' | ||
* 目录多文件搜索'': | * 目录多文件搜索'': | ||
+ | * 替换tab为空格:'': | ||
+ | * 换行后的自动缩进空格数的设置: | ||
+ | * 可设置自动折叠 '' | ||
+ | * 光标当前行列高亮:< | ||
+ | " | ||
+ | set cursorline | ||
+ | hi CursorLine | ||
+ | |||
+ | " | ||
+ | set cursorcolumn | ||
+ | hi CursorColumn cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white | ||
+ | </ | ||
+ | * 关于 mac 下 iterm2 里的 vim 配色方案 solarized 的问题,可[[http:// | ||
+ | * iterm2 设置为 | ||
+ | * vimrc 添加< | ||
+ | let g: | ||
+ | let g: | ||
+ | let g: | ||
+ | colorscheme solarized | ||
+ | </ | ||