jump to navigation

Find The Lines
August 14, 2006  Posted by Al Castle

add a comment Categories: Puter Stuff  

When using vim in a huge configuration file like main.cf or httpd.conf - to jump past the commented lines without scrolling you can do a search for any line that doesn’t start with #

/^[^#]

Hit n to cycle through them.

I suppose matching lines that don’t start with whitespace might work too.

/^[^#|\s]

Share/Save/Bookmark