VIM (Vi Improved)
INFO
Vim is a free and open-source, screen-based text editor program. It is an improved clone of Bill Joy's vi. Vim's author, Bram Moolenaar, derived Vim from a port of the Stevie editor for Amiga and released a version to the public in 1991.
Switches
a => append
i => insert
x,X => delete one character
d (dw,,d3w,dd) => delte one word and one sentense
r => replace
y(yy,yw,...) => copy
p,P => paste
A => go to end of line
ctrl + - => go to start of line
o,O => newline down , newline up
J => join
u => undo
G (G,10G,25G) => Got to line
/ => serach
$ => end of line
^ => start of line
d$ => delete until end of line d^ => delete from beginnig of line
. => repeat
% => jump to begiing of barcket and akulad
Visual Mode
v => visual mode --> visualmode + : + command
visualmode + i + t => inner tag
visualmode + a + t => outer tag
Note : This topic is very useful for import Packages in Python programs,which can sort packages according to letters
visualmode + : + sort => Sort Data
Command Mode
:set paste => It is used to paste information copied from external texts
:colorscheme => It is used to change the appearance
:set number => Show Numbers
:set nonumber => Not Show Numbers
:Explore => In this case, Vim becomes a nice file manager and you can move between files or open a file.
:! => run shell command
:wq => write and quit
:q => quite
:q! => force quite
:ls => list of opened files in buffers
:bn => buffer next
:bp => buffer previous
:b1 => beffer 1
:bd => buffer delete
:s/a/b/g => replace
:36,54s/a/b/g => select 36,54 lines
:%s/a/b/g => all in file replace
Last updated