New info
This commit is contained in:
parent
126c914cbe
commit
3168073100
26
new-info.txt
26
new-info.txt
@ -44,6 +44,8 @@ Commands:
|
||||
:set nonumber -- unshow line numbers
|
||||
:set ruler -- show in the bottom right corner where is your cursor
|
||||
:marks -- see all available marks
|
||||
:marks p -- to see where mark are specified
|
||||
:marks pF -- to see where several marks are specified
|
||||
|
||||
Making small changes (4):
|
||||
d$ -- deletes to the end of the line
|
||||
@ -61,7 +63,7 @@ Commands:
|
||||
Y | yy -- yank whole line
|
||||
y$ -- yank to the end of the line
|
||||
iw | aw -- Call to word text object. iw - "Inner word",
|
||||
aw - "A word"
|
||||
aw - "A word" (Try to use in visual mode or delete).
|
||||
daw -- delete a word. You can use it even in a mid of the word
|
||||
is | as -- Call to sentence text object. "as" includes space after
|
||||
is - "Inner Sentence", as - "A Sentence"
|
||||
@ -79,6 +81,24 @@ Commands:
|
||||
:next -- switch to next file
|
||||
:next! -- like above, but not save changes
|
||||
:wnext -- like above, but save changes
|
||||
:args -- see the files you started Vim with
|
||||
:previous
|
||||
:wprevious
|
||||
:last
|
||||
:first
|
||||
:2next
|
||||
:set autowrite -- always write to modified files after switch
|
||||
:set noautowrite -- turn off write to modified files
|
||||
:args one.c six.c -- redefine the list of files without the need to
|
||||
exit Vim and start it again
|
||||
:args! -- abandon the changes
|
||||
Ctrl-^ -- back to previous file
|
||||
`. -- jump to position where you did the last change
|
||||
"fyas -- use f register for yank to in sentence
|
||||
"l3Y -- yank three whole lines to the l register
|
||||
"fp -- put register buffer to the cursor position
|
||||
"wdaw -- delete text to register
|
||||
:write >> myfile -- append current file to another file
|
||||
|
||||
Window management:
|
||||
Always starts from Ctrl-W
|
||||
@ -92,3 +112,7 @@ Commands:
|
||||
Ctrl-H K -- move window to top
|
||||
Ctrl-H L -- move window to right
|
||||
|
||||
Hints:
|
||||
There is lowercase and uppercase marks. Uppercase marks are global, they
|
||||
can help you to switch between the files. Lowercase marks are local for
|
||||
one file.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user