vim system函数的编码问题。参数是否可以为中文?
vim吧
全部回复
仅看楼主
level 1
绯村炜 楼主
let convPath = substitute(convPath,'/',"\\",'g')
let convPath = " start \"\" \"" . convPath . "\""
echomsg "convPath " . convPath
let ret = self.system(convPath)
打开出错。但
echomsg "filepath " . convPath
打出来的是
正确的

2014年04月23日 15点04分 1
level 1
绯村炜 楼主
问题已经解决了。
在vimrc中设置
set enc=cp936
set encoding=cp936
set fileencoding=cp936
就可以了
2014年04月23日 15点04分 2
1