/-----------------------------------------------------------gvim--------------------------------------------------------------------/
Touch
new.sv ->which create file without open that
:w -->save
:wq -->save and quit
:ctrl+v -->visual mode
:ctrl+v
select ->shift+i+<text>+esc
-->adding text multiple lines
:ctrl+v+<select>+r
-->replace the text in multiple lines
:%s/oldname/newname/gc --string replacement
zf
and_then 5j --5 lines zipping from
current cursor
zf '
'---{ } -->it folds with
"{}" paterns
zo --->open folded
zd -->delet folded
Zi -->which unfolds the all folded files in
single shot.
set
nofoldenable --->which unfolds the
all folded files in single shot.
:%s/$/add
the text --->add text end of line
:'<,'>s!^!//! --> add text beging of line
:%s/^/TEST
CMD-LINE/ --->add text beginning of
all lines:%s
:%normal
$x--deleting last character
:%normal
^x -->delete first character
:%s/^…….//
- ->how many letters want to delete,
those many dots should add
:%s/$/; -->adding the ; at the end of all lines
in whole file
:’<,’>s/$/;
-->for particular lines. it finds the <this pattern>
d$ -->delete the line from half line or
cursor point
shift+d ---->it deletes the line where cursor
is there.
echo
expand('%:p') -->it gives the full
path including the file_name.sv
:v/pattern/d
--it will delete all lines except pattern lines
:g/pattern/d
--it will delete all lines with string
ctrl+wf
-->it will open and split the file, please keep the cursor on top of path
,.ex:/nfs/disk/and.v
:se
nowrap --if lines are wraping.
:tabnew
--create new file with in gvim
No comments:
Post a Comment