summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2011-11-15 01:38:02 +0100
committerSebastian Reichel <sre@ring0.de>2011-11-15 01:38:02 +0100
commitf5a2b0e1189c107d475184d2b9b5de970507a80d (patch)
tree97dfa849f84d2509081dc01557efbcd7abbb25f8 /vimrc
parent5574ec7ae4bde71f49346a98c7c8800f629451c2 (diff)
downloadvim-config-f5a2b0e1189c107d475184d2b9b5de970507a80d.tar.bz2
ibus support
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index e4cfbee..7a95993 100644
--- a/vimrc
+++ b/vimrc
@@ -19,6 +19,17 @@ set encoding=utf-8 " UTF-8
set iskeyword-=_ " _ is a word delimiter
set autoread
+" http://d.hatena.ne.jp/fuenor/20110705/1309866529
+au InsertLeave * call PyIBusDisable()
+function! PyIBusDisable()
+python << EOF
+import ibus
+bus = ibus.Bus()
+ic = ibus.InputContext(bus, bus.current_input_contxt())
+ic.disable()
+EOF
+endfunction
+
" Configure the status line show something useful.
"set statusline=%F%m%r%h%w\ %y\ [%{&ff}]%=[%l,%v][%p%%]\ [%L]
"set laststatus=2 " Ensure status line is visible.