Fichas
vi
Fichas del conjunto (32)
- 1delete contents of paranthesis and insert thereci(
- 2insert and replace wordciw
- 3change inside a tag sometextcit
- 41. move line one line higher 2. move line three lines down 3. move current line to line 51. :m-2
2. :m+3
3. :m5 - 5short for move current line one line downddp
- 6move to line 5 2x5+g
or
:5 - 7vim: count occurences of pattern "welt":%s/welt//gn
- 8split: 1. vertical 2. horizontal each 2x1a) :vsplit
b) +w v
2a) :split
b) +w s - 9insert console ouput:r !
- 10delete current line till end of filedG
- 11name for the current open file%
- 12delete: 1. the next 3 words 2. the 3 words before 3. lines 4 to 7 4. the next 5 lines1. 3dw
2. 3db
3. 4,7dd
4. 5dd - 13append content of lines 1 to 10 to file outfile:1,10 w >> outfile
- 14open file with vi and go with cursor to line with patternvi +/pattern file
- 15open file with vi and go with cursor to line 23vi +23 file
- 16read in content of file:r file
- 17save current buffer under newfilename and set the new file name for the current buffer:sav newfilename
- 18write all buffers:wa
- 19short: write current file and quit (without using ":")ZZ
- 20find file and edit if unique:fin filepattern
- 21yank three lines into buffer b"b3yy
- 22repeat last action.
- 231. mark current line as z 2. go to mark g 3. delete from mark a to b1. mz
2. 'g
3. :'a,'b d - 24save lines 10 to 20 to a file myfile:10,20w myfile
- 25split screens horizontally and open file myfile in the current buffer:split myfile
- 26set mark x in the current linemx
- 27go to line with mark y'y
- 28list all marks:marks
- 29go to the line and column of mark z`z
- 30(requires vim 7) delete mark x (short version):delm x
- 31jump back to the position where jumped from'' (two characters!)
- 32go to next split screen+w +w