On Wed, Apr 17, 2013 at 3:52 AM, Cesar Romani <cesar.romani@gmail.com> wrote:
Suppose I have the following text:
Diagonalización de matrices. Formas cuadráticas.
El Espacio Afín
El problema de la Programación Lineal
El Espacio Euclídeo
How can I replace the &#...; with their corresponding characters?
I know that ó is ó
á is á
í is í
The text can be very large with several of the &#...;
Hi Cesar,
I am not sure if that is exactly what you are asking for but if your need is to do a "search and replace", you could type this to change í into í :
:%s/í/í/g
Then, similarly:
:%s/á/á/g
:%s/óó/g
If you need to do this often you may want to record a macro or write a function or look for a plugin that does it.
This stackoverflow page can be of interest : http://stackoverflow.com/questions/3054971/does-anyone-know-of-a-vim-plugin-or-script-to-convert-special-characters-to-thei
I installed Tim Pope's unimpaired plugin to try out Drew Neil's suggestion and it works.
With that plugin installed, in normal mode, gg]xG would do the trick.
hope that helps,
nico
Many thanks in advance,
--
Cesar
--
--
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
--- You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment