gvim 中的fcitx插入时切换到中文有问题,vim很正常。何解?

Vim、Emacs配置和使用
回复
132811
帖子: 194
注册时间: 2010-04-20 21:19
系统: ArchLinux
来自: My gtalk:a132811@
联系:

gvim 中的fcitx插入时切换到中文有问题,vim很正常。何解?

#1

帖子 132811 » 2013-01-27 2:45

代码: 全选

"fcitx
let g:input_toggle = 1
function! Fcitx2en()
  let l:a = system("fcitx-remote -c")
   let s:input_status = system("fcitx-remote")
   if s:input_status == 2
      let g:input_toggle = 1
      let l:a = system("fcitx-remote -c")
   endif
endfunction

function! Fcitx2zh()
   let s:input_status = system("fcitx-remote")
   if s:input_status != 2 && g:input_toggle == 1
      let l:a = system("fcitx-remote -o")
      let g:input_toggle = 0
   endif
endfunction

set timeoutlen=150
"退出插入模式
autocmd InsertLeave * call Fcitx2en()
"进入插入模式
autocmd InsertEnter * call Fcitx2zh()
http://hilojack.sinaapp.com
i3 M370(2.4G)/500G/8G/OpenGL:Gallium 0.4 on nvidia 3100M
头像
自由建客
帖子: 13468
注册时间: 2008-07-30 23:21
系统: Debian stable AMD64

Re: gvim 中的fcitx插入时切换到中文有问题,vim很正常。何解?

#2

帖子 自由建客 » 2013-01-27 12:57

不是吧。等依云。
头像
xinu
帖子: 130
注册时间: 2010-12-20 14:01

Re: gvim 中的fcitx插入时切换到中文有问题,vim很正常。何解?

#3

帖子 xinu » 2013-01-27 13:07

http://www.vim.org/scripts/script.php?script_id=3764(可能现在需要代理)
我是用这个方法解决的。
本人linux菜鸟,请各位大虾原谅我的无知和愚蠢
132811
帖子: 194
注册时间: 2010-04-20 21:19
系统: ArchLinux
来自: My gtalk:a132811@
联系:

Re: gvim 中的fcitx插入时切换到中文有问题,vim很正常。何解?

#4

帖子 132811 » 2013-01-27 19:19

等待中
上次由 132811 在 2013-01-27 19:24,总共编辑 3 次。
http://hilojack.sinaapp.com
i3 M370(2.4G)/500G/8G/OpenGL:Gallium 0.4 on nvidia 3100M
132811
帖子: 194
注册时间: 2010-04-20 21:19
系统: ArchLinux
来自: My gtalk:a132811@
联系:

Re: gvim 中的fcitx插入时切换到中文有问题,vim很正常。何解?

#5

帖子 132811 » 2013-01-27 19:21

@xinu 仍然不管用。这个没有必要用python吧。

我就是不知道fcitx-remote on为啥不生效。直接在命令模型中:fcitx-remote on是没有问题的。

用gvim的人没有遇到这个问题吗。

我现在感觉有时用crtl+] 做tags跳转,要花很长时间.
netbeans这样的ide做tag跳转就很快。难道ctags没有对tags做排序吗?
http://hilojack.sinaapp.com
i3 M370(2.4G)/500G/8G/OpenGL:Gallium 0.4 on nvidia 3100M
头像
reverland
帖子: 1317
注册时间: 2011-11-26 15:57
系统: windows xp
联系:

Re: gvim 中的fcitx插入时切换到中文有问题,vim很正常。何解?

#6

帖子 reverland » 2013-01-29 18:05

你去依云博客问吧……看到douban上的了……
托在github上的jekyll博客
Always Look on the Bright Side of Life
sarrow
帖子: 403
注册时间: 2007-10-27 1:04

Re: gvim 中的fcitx插入时切换到中文有问题,vim很正常。何解?

#7

帖子 sarrow » 2013-01-31 7:56

同病相怜

另,gvim下,fcitx的问题还多呢!

除了自动切换,还有重复上次操作:. 也有问题。
回复