A common sequence of events when editing files is to make a change and then need to test by executing the file you edited in a shell. If you're using vim, you could suspend your session (ctrl-Z), and then run the command in your shell. That's a lot o…
Command Action Notes vim file +54 open file and go to line 54 any : command can be run using + on command line vim -O file1 file2 open file1 and file2 side by side Insert enter insert mode so you can start typing. Alternatively one can use i ora. E…
发现了一个很棒的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…
Source : This article is part of the ongoing Vi / Vim Tips and Tricks Series. As a Linux sysadmin or programmer, you may do following repetitive tasks while coding bash shell script: Adding file header Adding function/frame comment Including default…
ctrl + w + h 光标 focus 左侧树形目录 ctrl + w + l 光标 focus 右侧文件显示窗口 ctrl + w + w 光标自动在左右侧窗口切换 ctrl + w + r 移动当前窗口的布局位置 o 在已有窗口中打开文件.目录或书签,并跳到该窗口 go 在已有窗口 中打开文件.目录或书签,但不跳到该窗口 t 在新 Tab 中打开选中文件/书签,并跳到新 Tab T 在新 Tab 中打开选中文件/书签,但不跳到新 Tab i split 一个新窗口打开选中文件,并跳到该窗…
vim vimtutor ================================================================================ W e l c o m e t o t h e V I M T u t o r - Version 1.7 =欢迎使用VIM教程 1.7版=============================================================================== Vim is…