共 14 篇文章 |
|
ubuntu 安装配置vim+cscope+ctags+taglist+omnicppco...ubuntu 安装配置vim+cscope+ctags+taglist+omnicppcomplete.sudo apt-get install vim-full.sudo apt-get install cscope.sudo apt-get install ctags.mkdir .vim.cd .vim.//解压成功会在.vim下生成两个文件夹, doc, plugin.下载omnicppcomplete,解压可得到三个文件夹(autoload,after,do... 阅305 转1 评0 公众公开 13-03-28 14:39 |
VIM之omnicppcompleteVIM之omnicppcomplete.:inoremap ( ()<ESC>i:inoremap ) <c-r>=ClosePair('')'')<CR>:inoremap { {}<ESC>i:inoremap } <c-r>=ClosePair(''}'')<CR>:inoremap [ []<ESC>i:inoremap ] <c-r>=ClosePair('']'')<CR>:i... 阅304 转1 评0 公众公开 13-03-26 15:34 |
Isn’t progress exciting Remember that VIM also looks for a tags file in the current directory. So if you wanted to add completion support for your individual projects its as easy as creating a tags from your source tree. I setup a key command (C-F6 in my case) that will generate this for me while I am in a VIM se... 阅108 转0 评0 公众公开 13-03-26 14:37 |
VIM 常用插件推荐。官方描述:Conque is a Vim plugin which allows you to run interactive programs, such as bash on linux or powershell.exe on Windows, inside a Vim buffer. In other words it is a terminal emulator which uses a Vim buffer to display the program output.用 VIM 写 LaTeX 的朋友无论如何都要试一试,不用 VIM 写 ... 阅4198 转1 评0 公众公开 13-03-26 14:33 |
:n,$s/vivian/sky/ 替换第 n 行开始到最后一行中每一行的第一个 vivian 为 sky :n,$s/vivian/sky/g 替换第 n 行开始到最后一行中每一行所有 vivian 为 sky (n 为数字,若 n 为 .,表示从当前行开始到最后一行):%s/vivian/sky/(等同于 :g/vivian/s//sky/) 替换每一行的第一个 vivian 为 sky :%s/vivian/sky/g(等同于 :g/vivian/s//sky/g... 阅109 转0 评0 公众公开 13-03-25 17:00 |
使用VIM经常会搜索或替换一个单词,或者过滤这个单词的行,或者只保留这个单词的行,等等,一般都是对当前文本里的单词进行操作.如果要替换, 就没有什么快捷键了. 一般的做法是 :%s/thisisaverylongword/ABCD/g"同样,这还是要输入thisisaverylongword, 更简单的办法应该是:把光标置于thisisaverylongword之上, 然后:%s/<CTRL+R><CTR... 阅928 转1 评0 公众公开 13-03-22 15:53 |
使用CTRL-N和CTRL-P补全时,由’complete‘选项控制vim从哪些地方查找补全的内容。整行补全 CTRL-X CTRL-L根据当前文件里关键字补全 CTRL-X CTRL-N根据字典补全 CTRL-X CTRL-K根据同义词字典补全 CTRL-X CTRL-T根据头文件内关键字补全 CTRL-X CTRL-I根据标签补全 CTRL-X CTRL-]补全文件名 CTRL-X CTRL-F补全宏定义 CTRL-X CTRL-D补全vim命令 CT... 阅28941 转15 评0 公众公开 13-03-22 11:41 |
" Disable highlight when <leader><cr> is pressedmap <silent> <leader><cr> :noh<cr>" Smart way to move between windowsmap <C-j> <C-W>jmap <C-k> <C-W>kmap <C-h> <C-W>hmap <C-l> <C-W>l" Close the current buffermap <leade... 阅234 转0 评0 公众公开 13-03-20 20:02 |
VIM命令图解for程序员VIM命令图解for程序员。往前搜寻目前游标所在的字(word)往后搜寻目前游标所在的字(word)跳到目前游标所在的字(word)的定义位置(写程式用, 跳到定义变数/函式的地方)Ctrl-W p.Ctrl-W j.Ctrl-W h.Ctrl-W k.Ctrl-W l.Ctrl-N.自动补齐档案内的下一个可能字(word)自动补齐档案内的上一个可能字(word)Ctrl-X Ctrl-F.这个画非常清... 阅185 转2 评0 公众公开 12-08-30 14:39 |
阅417 转2 评0 公众公开 12-08-23 11:44 |