Vim Commands Commands in NORMAL modes Motions small granular: move by direction k h l j mid granular: move by word e move onto the end of the current word b move onto the head of the current word w move onto the head of the next word large granular:…
Basics :e filename Open filename for edition :w Save file :q Exit Vim :q! Quit without saving :x Write file (if changes has been made) and exit :sav filename Saves file as filename . Repeats the last change made in normal mode 5. Repeats 5 times the…
@1: We all know about :wq, but we usually ignore :x. :x和:wq都是保存当前文件并退出. 这两个命令实际上并不完全等价,当文件被修改时两个命令时相同的.但如果未被修改,使用:x不会 更改文件的修改时间,而使用:q会改变文件的修改时间. @2: 当你很快地打字时,很有可能会连续输入同一个单词两次,就像this this.这种错误可能骗过任何一个人 即使是你自己重新阅读一遍也不可避免.幸运的是,有一个简单的正则表达式可以用来预防这个错误. 使用搜…
最近在使用vim插件CommandT时出现问题其实就是vim没有支持ruby,不过google之后找到了解决方法,老外的态度还是很让人敬佩的,度娘搜索的结果太让人呕心了.. 贴下,以后再次遇到解决. One of the first things I do after installing a fresh copy of Ubuntu is grab an updated Vim with RubySupport and proceed to install the amazing Comman…
发现了一个很棒的vim配置方法,现在共享给大家. https://github.com/kepbod/ivim ivim - The Vim Distribution of Xiao-Ou Zhang See ivim's states on GitEgo Installation Manual Install A Vim/MacVim/gVim with version higher than 7.3 has been installed on your computer, and bac…