Hi folks, Sorry for ressurecting this somewhat old thread, but I feel like I owe you guys some feedback.
On Tue, Dec 7, 2010 at 3:22 PM, Tom Link <[email protected]> wrote: >> The text contains some latin characters like á é í ó ú etc, and all >> these show up in vim (in linux) as their hex codes (for example, á >> appears as <e1>) > >> :set encoding? >> utf-8 > > The string from windows is probably encoded in the respective windows > codepage. You could try to use iconv() to convert the string before > pasting it in a instance of vim where enc is utf8. Thanks Tom! I used xclipboard to save the text to a file and when I opened it with vim it was all good. Also, interestingly enough, "file -bi myfile" yields "text/html; charset=utf-8" On Wed, Dec 8, 2010 at 1:34 PM, Ben Fritz <[email protected]> wrote: > I wonder, since 'ga' shows both the manually typed as well as the > pasted characters as being the same, whether a simple :w | e would > "solve" the problem. Yes it does, and it is my favorite method, since it doesn't require any third party software. Thank you all for your help! Vitor -- 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
