Posted By

qrist0ph on 05/13/08


Tagged

regexp vim


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

zabaletgmailcom


Vim Hacks


 / Published in: Regular Expression
 

  1. :set fileformat=unix
  2. :set fileformat=dos
  3. set number
  4. set nowrap
  5.  
  6. %s/,/,\r/g
  7.  
  8. #in ?vimrc
  9. :nnoremap <F5> "=strftime("%b %d, %Y")<CR>P
  10. :inoremap <F5> <C-R>=strftime("%b %d, %Y")<CR>
  11.  
  12. set number
  13. inoremap <F5> <C-R>=strftime("%d/%m/%y ")<CR>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: callmeblessed on January 2, 2009

:%s/,/\r/g

replacing , with \r

You need to login to post a comment.