VI Cheetsheet: Difference between revisions
adds commenting/uncommenting in visual block mode |
Add section on multiple files |
||
| Line 671: | Line 671: | ||
Give it a second to work. | Give it a second to work. | ||
== Edit multiple files: == | |||
* press <kbd>Esc</kbd> (to leave editing or other mode) | |||
* type <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>t</kbd>+<kbd>a</kbd>+<kbd>b</kbd>+<kbd>n</kbd> (n for next), to switch to the next buffer | |||
* type <kbd>t</kbd>+<kbd>a</kbd>+<kbd>b</kbd>+<kbd>p</kbd> (p for previous), to switch to the previous buffer | |||
[[Category:Tools]] | [[Category:Tools]] | ||