Best of VIM Tips, VIM's Key Features
Popularity Report
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
URL Tag Cloud
Groups (1)
Bookmark History
Saved by 65 people (15 private), first by anonymouse user on 2006-03-02
Public Sticky notes
" \v or very magic (usually) reduces backslashing
/codes\(\n\|\s\)*where : normal regexp
/\vcodes(\n|\s)*where : very magic
Highlighted by slavos1
:let @*=@: : copy last command to paste buffer
Highlighted by slavos1
:let @*=@/ : copy last search to paste buffer
Highlighted by slavos1
:%s/fred/joe/igc : general substitute command
:%s/\r//g : Delete DOS returns ^M
" Is your Text File jumbled onto one line? use following
:%s/\r/\r/g : Turn DOS returns ^M into real returns
:%s= *$== : delete end of line blanks
:%s= \+$== : Same thing
:%s#\s*\r\?$## : Clean both trailing spaces AND DOS returns
:%s#\s*\r*$## : same thing
Highlighted by frankenmueller


Public Comment