📝 More notes on vim
This commit is contained in:
parent
48c776bd0a
commit
a4bbed1daf
1 changed files with 6 additions and 1 deletions
|
|
@ -145,6 +145,12 @@ ctrl + w + r - rotate windows
|
||||||
/ simple search command
|
/ simple search command
|
||||||
: enter COMMAND mode
|
: enter COMMAND mode
|
||||||
|
|
||||||
|
DOT ('.') COMMAND
|
||||||
|
Just the decimal/period character:
|
||||||
|
.
|
||||||
|
Will repeat whatever you last wrote from insert mode until you hit <ESC>.
|
||||||
|
It is capable of more than this, but this is what I know now.
|
||||||
|
|
||||||
INTERESTING CHAINS
|
INTERESTING CHAINS
|
||||||
:1,40d - Delete line 1 to 40 included
|
:1,40d - Delete line 1 to 40 included
|
||||||
:2,$d - Delete every line from the second one to the end of the file
|
:2,$d - Delete every line from the second one to the end of the file
|
||||||
|
|
@ -211,7 +217,6 @@ VISUAL MODE
|
||||||
h,j,k,l,g,shift+g,0,$ all apply, it simply highlights them
|
h,j,k,l,g,shift+g,0,$ all apply, it simply highlights them
|
||||||
and you can use standard and custom commands here that would normally apply in NORMAL mode
|
and you can use standard and custom commands here that would normally apply in NORMAL mode
|
||||||
|
|
||||||
|
|
||||||
VISUAL LINE MODE
|
VISUAL LINE MODE
|
||||||
y - yank the line (more useful than yy, will past without having to create a new line)
|
y - yank the line (more useful than yy, will past without having to create a new line)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue