Home » Questions » Computers [ Ask a new question ]

How to replace char in file with appropriate ascii code in vim…

How to replace char in file with appropriate ascii code in vim…

In a vim buffer if I have a list of characters say:

Asked by: Guest | Views: 327
Total answers/comments: 1
Guest [Entry]

"Check out str2numchar.vim. Down load & install in your vim plugins folder. Add the example visual mode key map to your .vimrc file:

vmap <silent> sn :Str2NumChar<CR>

In vim, highlight the text you want to convert and type sn."