On 03/09/12 10:45, Cesar Romani wrote:
How can I convert this:
Vaya con Dios
to:
[VAYA CON DIOS](#vaya-con-dios)
Just this particular case, or do you have other text that needs
to be found?
:%s/.*/\='['.toupper(submatch(0)).']#'.substitute(tolower(submatch(0)),
' ', '-', 'g')
Does it for the general line-by-line case, so you should be able
to modify the expression as you need.
-tim
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php