Multi language

BackGround

vim 에서 한글 문서를 작성하려고 하면 엄청나게 힘들다. visual mode, command 등에서 한글로 동작하지 않기 때문이다. * mac os * vim 8 * iterm2

Goal

인설트 모두를 벗어 날때 자동으로 영문으로 변경되게 해보자.

커맨드 키보드 변환 툴 설치

https://github.com/vovkasm/input-source-switcher

git clone https://github.com/vovkasm/input-source-switcher.git
cd input-source-switcher
mkdir build && cd build
cmake ..
make
make install

issw //로 확인

Pluging 설치

https://github.com/lyokha/vim-xkbswitch * 저는 번들을 관리 툴로 사용합니다.

//.vimrc
Plugin 'lyokha/vim-xkbswitch'
:PluginInstall

let g:XkbSwitchEnabled = 1
let g:XkbSwitchLib = '/usr/local/lib/libInputSourceSwitcher.dylib'

ESC 대신 Ctrl+c 를 쓰는 유저를 위한 팁

.vimrc 에 아래 설정 추가.

ino <C-C> <Esc>