adding 7
This commit is contained in:
parent
5d9eed02fe
commit
126c914cbe
31
new-info.txt
31
new-info.txt
@ -10,15 +10,13 @@ Commands:
|
||||
:help Ctrl-W -- find help with window management command
|
||||
:help usr_toc.txt -- all user manuals breef look
|
||||
|
||||
Word / file navigation:
|
||||
Word / file navigation (3):
|
||||
fh | 3fl -- move cursor to the "h" letter of the current line
|
||||
f<Esc> -- aborts search
|
||||
Fh | 3Fl -- like above, but searches to the left
|
||||
tl | 3tl -- like fh, but cursor stops before the letter
|
||||
Tl | 3Tl -- like above, but searches to the left
|
||||
ge -- moves to the previous end of the word
|
||||
g* -- finds partial word under cursor in the file
|
||||
g* -- like above, but to the other direction
|
||||
$ | 5$ -- to the end of the line
|
||||
^ -- to begin of the first word in line
|
||||
0 -- to begin of the line
|
||||
@ -47,7 +45,7 @@ Commands:
|
||||
:set ruler -- show in the bottom right corner where is your cursor
|
||||
:marks -- see all available marks
|
||||
|
||||
Making small changes:
|
||||
Making small changes (4):
|
||||
d$ -- deletes to the end of the line
|
||||
cc -- like dd, but changes line
|
||||
c$ -- changes all to the end of the line
|
||||
@ -56,6 +54,31 @@ Commands:
|
||||
C -- change to end of the line
|
||||
s -- change one character
|
||||
S -- change a whole line
|
||||
r | 4rx -- replace current symbol, not enters in insert mode
|
||||
. -- repeat the change
|
||||
O | o -- in visual mode goes to the other corner of selected
|
||||
y -- yank operator. yw - yank word, y2w - yank 2 words
|
||||
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"
|
||||
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"
|
||||
cis -- change whole sentence
|
||||
R -- enter in replace mode. backspace works like undo.
|
||||
~ -- Change case of the character under cursor
|
||||
I -- insert to the begin of the line
|
||||
A -- append to the end of the line
|
||||
|
||||
Editing more than one file (7):
|
||||
:edit foo.txt -- opens other file instead of current
|
||||
:write -- save current file delta
|
||||
:edit! foo.txt -- force to discard your changes
|
||||
vim one.c two.c three.c -- open a sequence of files
|
||||
:next -- switch to next file
|
||||
:next! -- like above, but not save changes
|
||||
:wnext -- like above, but save changes
|
||||
|
||||
Window management:
|
||||
Always starts from Ctrl-W
|
||||
|
||||
Loading…
Reference in New Issue
Block a user