Professional Documents
Culture Documents
VI-Editor Notes (LINUX)
VI-Editor Notes (LINUX)
------------------------------------------------
Move Multiple units(use a number b4 the below characters)
n h
n j
n k
n l
n w
n b
:(Colon) mode
:set nu - Show row number
:set nonu - hide the row numbers
:%s/blank/empty/g - It will replace/substitute all the blank spelled words with
blank word
% - All Line
s - substitute
blank - source word to be replaced
empty - target word
g - global - if any line contains multiple source in a line then it will
replace all words else it will replace only the est occurance of the source
----------------------------------------------------
Command mode with (/)
/anyword - It will search any word (n - next word in forward direction. N - next
word in backword direction)
----------------------------------------------------