VI Cheetsheet: Difference between revisions
You need to type colon when in colon mode |
adds a couple new sections |
||
| (One intermediate revision by the same user not shown) | |||
| Line 675: | Line 675: | ||
* press <kbd>Esc</kbd> (to leave editing or other mode) | * press <kbd>Esc</kbd> (to leave editing or other mode) | ||
* then use one of the following sequences | * then use one of the following sequences | ||
* type <kbd>:</kbd> | * type <kbd>:</kbd> <kbd>t</kbd> <kbd>a</kbd> <kbd>b</kbd> <kbd>e</kbd> (e for edit), [space] and then start typing the /path/to/filename | ||
* type <kbd>:</kbd> | * type <kbd>:</kbd> <kbd>t</kbd> <kbd>a</kbd> <kbd>b</kbd> <kbd>n</kbd> (n for next), to switch to the next buffer | ||
* type <kbd>:</kbd> | * type <kbd>:</kbd> <kbd>t</kbd> <kbd>a</kbd> <kbd>b</kbd> <kbd>p</kbd> (p for previous), to switch to the previous buffer | ||
* You can also type <kbd>:args</kbd> to get a list of the open buffers | * You can also type <kbd>:args</kbd> to get a list of the open buffers | ||
== Move everything flush to the left == | |||
<kbd>:</kbd><kbd>%</kbd><kbd>l</kbd><kbd>e</kbd> | |||
: colon mode | |||
% the current buffer | |||
l 'left' command | |||
e 'end' of document | |||
Or, in visual mode, you can use the <kbd><</kbd> key to move a selection left. | |||
== More VIM Cheat Sheets == | |||
* https://www.fprintf.net/vimCheatSheet.html | |||
[[Category:Tools]] | [[Category:Tools]] | ||