add special character from vi
I use Redhat linux v6 , I would like to add special character ( eg. black diamond suit ) to the system by using vi , would advise how to do it ? thanks
http://www.webmonkey.com/2010/02/special_characters/ |
See the "By character value" section in: http://vim.wikia.com/wiki/Entering_special_characters
You'll need to determine the character code first though, there should be character map application in your distro. |
thanks reply ,
in the page , it side to enter CTRL-K a: I am not understand what that mean , press what key ? thanks |
The Unicode for "Black Diamond Suit" is U2666. As kbp mentioned, look under the "By character value" section of the cited article, where you read:
Quote:
|
Quote:
thanks reply , I follow the instruction , in Insert mode , press Ctrl-v , then u , 2 , 6 ,6 , 6 , I see a ? sign , save it and then still see the ? sign only , my procedure is incorrect ? thanks |
Maybe your terminal doesn't support UNICODE character set. Which terminal are you using? If gnome-terminal (the default in Red Hat with GNOME desktop) check under the menu Terminal --> Set Character Encoding and see if Unicode (UTF-8) is there and selected.
|
All times are GMT -5. The time now is 02:42 PM. |