i write files (c,h,cpp) at vi. i need save them at UTF-8 encoding. how to do it ?
Has your version of vim been compiled with support for this?
You can check by running:
If there is a '+' in front, then you're one step closer. (=
Also, doublecheck that your systems locale is set correctly. I would imagine that it is, but checking is good. (See if the environment var LANG is set to your locale).
Then, inside of vim, check to see that the 'language' option is set correctly (this will only work if your vim has multi_byte support compiled in). You can see it by loading vim and then issuing the command:
Finally, you'll need to make sure that the 'encoding' option is set correctly (again, this will only work if multi_byte support has been compiled into vim). You can show it by loading vim and issueing the command:
All of this information and more can be found at:
вам желаю успех!
|All times are GMT -5. The time now is 02:49 AM.|