Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
home_server:home_server_setup:other_services:vim [2023-08-26 Sat wk34 11:14] – [Moving around in the file] baumkp | home_server:home_server_setup:other_services:vim [2024-03-24 Sun wk12 10:37] – [Moving around in the file] baumkp | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{tag> | + | {{tag> |
=====VIM Customisation===== | =====VIM Customisation===== | ||
Line 55: | Line 55: | ||
These Vim commands and keys work both in command mode and visual mode. | These Vim commands and keys work both in command mode and visual mode. | ||
^ Vim Command | ^ Vim Command | ||
- | | j or Up Arrow | Move the cursor up one line. | | + | | j or Up Arrow | Move the cursor up one line | |
- | | k or Down Arrow |Down one line. | | + | | k or Down Arrow |Down one line | |
- | | h or Left Arrow | Left one character. | | + | | h or Left Arrow | Left one character |
- | | l or Right Arrow | Right one character. | | + | | l or Right Arrow | Right one character |
- | | | + | | |
- | | w | Move to next word. | | + | | Ctrl + f | Move forward one full screen |
+ | | Ctrl + d | Move forward 1/2 a screen | ||
+ | | Ctrl + u | Move back 1/2 a screen | ||
+ | | Ctrl + e | Move screen down one line (without moving cursor) | ||
+ | | Ctrl + y | Move screen up one line (without moving cursor) | ||
+ | | Ctrl + o | Move backward through the jump history | ||
+ | | Ctrl + i | Move forward through the jump history | ||
+ | | gg | Move to top of file | | ||
+ | | shift_g | move to end of file | | ||
+ | | w | Move to next word | | ||
| W | Move to next blank delimited word | | | W | Move to next blank delimited word | | ||
| e | To the end of a word | | | e | To the end of a word | | ||
Line 161: | Line 170: | ||
| %%!}fmt%% | | %%!}fmt%% | ||
| %%5!!fmt%% | | %%5!!fmt%% | ||
- | =====Undo | + | =====Undo, redo and report===== |
^ Vim Command | ^ Vim Command | ||
- | | u | Undo the last action. | | + | | u | Undo the last action |
- | | U | Undo all the latest changes that were made to the current line. | | + | | U | Undo all the latest changes that were made to the current line | |
- | | Ctrl + r | Redo. | | + | | Ctrl + r | Redo | |
+ | | | ||
=====Search===== | =====Search===== | ||
^ Vim Command | ^ Vim Command | ||
Line 348: | Line 358: | ||
*[[https:// | *[[https:// | ||
*[[https:// | *[[https:// | ||
+ | *[[https:// | ||
+ | *[[https:// | ||
====Requires More Research==== | ====Requires More Research==== | ||
These links should be explored to see what additional information could be gathered for this cheat sheet. | These links should be explored to see what additional information could be gathered for this cheat sheet. | ||
*[[https:// | *[[https:// | ||
- | *[[http:// | ||
*[[http:// | *[[http:// | ||
*[[http:// | *[[http:// | ||
*[[http:// | *[[http:// | ||
- | *[[http:// | ||
*[[https:// | *[[https:// | ||
*[[https:// | *[[https:// | ||
- | *[[http:// | ||
*[[http:// | *[[http:// | ||
- | *[[http:// | ||
- | *[[https:// | ||
- | | ||
*[[http:// | *[[http:// | ||
- | *[[http:// | ||
*[[http:// | *[[http:// | ||
- | *[[http:// | ||
*[[http:// | *[[http:// | ||
*[[http:// | *[[http:// | ||
*[[https:// | *[[https:// | ||
- | *[[https:// | + | *[[https:// |
---- | ---- |