`
- 浏览:
119929 次
- 性别:
- 来自:
西安
-
Very Useful Notes by Darin Brezeale
[Basic]
- :cd
- :pwd
- :e foo.c to edit another file
- :e # to jump back to the previous editing file
- Ctrl+L redraw whole screen
[Compile]
- :make invoke make, and jump to first line of error automatically
- :set makeprg=gmake
- :set makeprg=gmake\ \CC=gcc296
- :clist error list
- :cfirst first line of error
- :clast last line of error
- :cn next line of error
[Buffers]
- :buffers
- :ls list buffers
- :bd delete (close) a buffer
[Navigate]
- :<num> go to line <num>
- ]] / ][ next { / } in the first column
- [[ / [] previous { / } in the first column
- % jump to corresponding brace, #ifdef and #endif
[Bookmark]
- m<a-z> mark the position with the the single letter you supplied
- '<a-z> jump to the pos mark by the letter
- '' jump to the last jump pos
[Search]
- /\t search (and may highlight) <Tab>
- * search the keyword under cursor
- # search previous keyword under cursor
- /<CR> redo the last search
- :set incsearch incremental search
- :set nois disable incremental search
[Replace]
- :s/<search>/<replace>
- :25, 34 s/foo/bar/gc replace 'foo' between line 25 and 34 with 'bar'
- g for do it multi times per line
- c for confirmation
- region could also be selected in visual (block) mode and invoke through :s
- :1, $s/foo/bar/g global replace all foo with bar in current file
- %s/foo/bar/g same as above
[Highlight]
- :set list display non-printable chars
- :set hlsearch highlight matched items
- :nohl no highlight when search
[Ctags]
- :set tags=<comma separated expression> setup 'tags' file search path, usually './tags,tags,~/mytags'
- Ctrl-] jump to the definition of the symbol under cursor
- Ctrl-T jump back
- :ta /foo tag search for symbol 'foo', stop at the first match
- :tn tag search, next match
- :tselect select and jump from the tag list (also invoked through g then ctrl-])
[Macro]
- q register Start macro recording into the named register. For instance, qa starts recording and puts the macro into register a.
- q End recording.
- @register Replay the macro stored in the named register. For instance, @a replays the macro in register a.
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
vim tips 汇总,可以看到有很技巧
vim技巧 vim 技巧
Best+of+VIM+Tips(译注).pdf Best+of+VIM+Tips(译注).pdf
学习vim: http://www.vim.org/ O cial site http://chronos.cs.msu.su/vim/newsgroup.html Newsgroup and Usenet http://groups.yahoo.com/group/vim Speci c newsgroup http://u.webring.com/hub?ring=vim VIM ...
vim-tips:从社区获取漂亮的Vim技巧:)
资源来自pypi官网。 资源全名:vimtips-0.2.2.tar.gz
My vim configure file, It's useful for me
myvim 一个脚本,可创建Vim环境的可移植捆绑包。 用法 myvim脚本将创建一个名为vim.$(whoami)的可执行文件。 bash <( curl -fL https://raw.githubusercontent.com/junegunn/myvim/master/myvim ) 选项 -e|--...
vimtips:Vim提示
自己使用的vim配置文件,解压命令位tar -zxvpf myvim.tar.gz下载解压到用户目录下,执行vim,再执行:PluginInstall即可完成对应插件的安装,然后就可以实用ctags及ctrlp,mark等工具啦。
alfred2-vimtips-workflow Alfred 2 工作流从 vim-tips.com 获取随机 vim 提示 ##Requirement Alfred2 已安装。 ##Install 下载工作流并将其添加到 Alfred。 ##用法 键入“vimtips s”以获取一个随机的 vim ...
VIM GREAT TIPS HELPFUL
ln ~/myvim/init.vim ~/.config/nvim/init.vim ln ~/myvim/coc-settings.json ~/.config/nvim/coc-settings.json 为CoC安装插件和语言服务器: nvim -c PlugInstall pip install -U jedi-language-server nvim -c ...
MyVim 设置vim和vim配置环境g++ (Ubuntu 9.3.0 -17ubuntu1~ 20.04 ) 9.3.0cmake version 3.16.3Python 3.8.5VIM - Vi IMproved 8.1 ( 2018 May 18 , compiled Apr 15 2020 06 : 40 : 31 )仅针对Linux1.建立文件在...
my_vim_config
我的.vim配置 git clone :badwtg1111 / myvim.git〜/ .vim git clone :Shougo / neobundle.vim.git〜/ .vim / bundle / neobundle.vim ln -s〜/ .vim / .vimrc〜/ .vimrc
VIM快捷键 VIM快捷键 VIM插件 VIM快捷键 VIM插件
最低分的资源 im is a fast and efficient text editor that will make you a ... This beloved bestseller has been revised and updated to Vim 7.4 and includes three brand-new tips and five fully revised tips.
vim中文手册 vim中文手册 vim中文手册 vim中文手册 vim中文手册 vim中文手册 vim中文手册vim中文手册vim中文手册