Vim 不支持 unicode 吗? [英] Vim doesn't support unicode?

查看:30
本文介绍了Vim 不支持 unicode 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将以下内容放入我的 .vimrc

I'm trying to get the following into my .vimrc

" Use the same symbols as TextMate for tabstops and EOLs
set listchars=tab:▸ ,eol:¬

那些行来自 here 在 vi​​m 7.2 中完美运行我最近编译并安装了 vim 7.3,现在 vim 无法理解这些字符.另外:Ctrl+V 然后 U in insert 不允许我插入任何字符,它似乎忽略了这一点.

Those lines are from here are worked perfectly in vim 7.2 I recently compiled and installed vim 7.3 and now those characters aren't understood by vim. Also: Ctrl+V then U in insert doesn't let me insert any characters, it just seems to ignore that.

有什么想法吗?

这是我看到的:set listchars=tab: ~V ,eol:¬

推荐答案

你需要编译支持多字节的 vim.

You need to compile vim with multi-byte support.

最简单的方法是运行

./configure --with-features=big
make

这将构建具有正确支持的 vim.

This will build vim with the correct support.

你可以用

:version

在 vim 中或通过运行

in vim or by running

vim --version

并寻找+multi_byte.如果它说 -multi_byte 它将不起作用.

and looking for +multi_byte. If it says -multi_byte it will not work.

这篇关于Vim 不支持 unicode 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆