- Windows8.1
- kaoriya版 gvim 7.4.648 (32bit)
- UTF-8エンコードのutf-8.txt
あいうえお
- ShiftJISエンコードのsjis.txt
あいうえお
を用意。
-
gvim.exe -u NONE -U NONE -c ":set encoding=utf8" "+e ++enc=utf8 utf8.txt" -c ":call cursor(1,5)" -c ":normal ga"
カーソル位置 → い
ga → <い> 12356, 16進数 3044, 8進数 30104 -
gvim.exe -u NONE -U NONE -c ":set encoding=utf8" "+e ++enc=sjis sjis.txt" -c ":call cursor(1,5)" -c ":normal ga"
カーソル位置 → い
ga → <い> 12356, 16進数 3044, 8進数 30104 -
gvim.exe -u NONE -U NONE -c ":set encoding=sjis" "+e ++enc=utf8 utf8.txt" -c ":call cursor(1,5)" -c ":normal ga"
カーソル位置 → う
ga → <う> 33444, 16進数 82a4, 8進数 101244 -
gvim.exe -u NONE -U NONE -c ":set encoding=sjis" "+e ++enc=sjis sjis.txt" -c ":call cursor(1,5)" -c ":normal ga"
カーソル位置 → う
ga → <う> 33444, 16進数 82a4, 8進数 101244