sponsor Vim development Vim logo Vim Book Ad

str2numchar.vim : String convert to Numeric Character Reference

 script karma  Rating 0/0, Downloaded by 1008  Comments, bugs, improvements  Vim wiki

created by
yuichi tateno
 
script type
utility
 
description
Author:       secondlife <hotchpotch@NOSPAM@gmail.com>
Last Change:  2006 Sep 02
Version: 0.1, for Vim 7.0

DESCRIPTION:
This plugin is String convert to Numeric Character Reference
and String convert to Hex Literal

for example:
:echo Str2HexLiteral('abcd')
\x61\x62\x63\x64
:echo Str2NumChar('abcd')
&#97;&#98;&#99;&#100;

==================== file str2numchar.vimrc ====================
vmap <silent> sn :Str2NumChar<CR>
vmap <silent> sh :Str2HexLiteral<CR>
==================== end: str2numchar.vimrc ====================
 
install details
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
str2numchar.vim 0.2 2006-09-10 7.0 yuichi tateno backslash delete bug fix.
thx mk.
str2numchar.vim 0.1 2006-09-01 7.0 yuichi tateno Initial upload
ip used for rating: 34.200.252.156

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
OSDN