Showing posts with label vim editor. Show all posts
Showing posts with label vim editor. Show all posts

Monday, February 22, 2010

vim editor short cuts and tips

vi (aka vim) tutorial, tips, tricks and useful commands


Where grep came from (RE being Regular Expression):
:g/RE/p

Delete lines 10 to 20 inclusive:
:10,20d
or with marks a and b:
:'a,'bd

Delete lines that contain pattern:
:g/pattern/d