我如何用vim编写阿拉伯语html文件
我无法用 vim 用阿拉伯语编写 html 文件。
尝试执行以下操作:
:set arabic
:set rl
或
:set rightleft
或
:set arabicshape
问题我想编写阿拉伯语而不对我的标签进行任何更改。我想让她从左到右。
我怎样才能做到这一点?
I can not write a html file in Arabic by vim.
Tried to do the following:
:set arabic
:set rl
or
:set rightleft
or
:set arabicshape
The problem I want to write Arabic without any change on my tags. I want her to go from left to right.
How i can do thos?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
因为我无法对 GJ 发表评论,所以我
在 konsole 中使用 vim 将其作为答案发布,并将
set arabicshape!
放入我的.vimrc
为我解决了问题
because I can't comment on G.J I post it as an answer
using vim in konsole and putting
set arabicshape!
in my.vimrc
solved the problem for me
由于阿拉伯语移动的是 rtl,而不是 ltr,因此您的要求是矛盾的,这无疑是它不起作用的原因。
as Arabic moves rtl, not ltr, your requirements are contradictory, which is no doubt why it doesn't work.
Vim 可以在阿拉伯语模式下通过以下命令激活:
vim -A test1
这将从光标位于右侧并准备好阿拉伯语文本开始:
?????????????????? - 插入阿拉伯语 --
来源:http://blog.naoar。 com/2012/04/vim-and-arabic.html
Vim can be invoked in Arabic mode activated by the following command:
vim -A test1
this will start with the cursor located in the right and ready for Arabic text:
السلام عليكم
-- INSERT Arabic --
source: http://blog.naoar.com/2012/04/vim-and-arabic.html
由于 vim 未启用 BiDi 这应该是不可能的。
但我已经摆弄了一下,如果您启用对 Konsole 的双向支持,vim + Konsole(KDE 的终端模拟器)似乎可以完成这项工作。在 vim 中(未启用阿拉伯语选项),您应该能够编写 LTR 和 RTL,但字母将始终处于隔离形式(无整形)。我发现设置“arabicshape”选项然后取消设置似乎可以解决这个问题。短元音无法正确显示,即使它们似乎很好地写入文件中。
我没有尝试过其他终端模拟器,我不知道它们的 BiDi 功能。也许是 Gnome 终端?
As vim is not BiDi enabled this should not be possible.
But I've been fiddling around a bit and it seems that vim + Konsole (KDE's terminal emulator) seems to do the job if you enable bidirectional support for Konsole. In vim (NO arabic options enabled) you should be able to write LTR and RTL, but letters will always be in isolated form (no shaping). I've found that setting the 'arabicshape' option then unsetting it seems to fix that. Short vowels are not displayed correctly, even though they seem to be written just fine to the file.
I have not tried with other terminal emulators, I'm not aware of their BiDi capabilities. Gnome-terminal maybe ?