8000 GitHub - dalguji/vim-kormode: Bind pressing Korean key in normal mode to toggle layout and repeat same key.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dalguji/vim-kormode

< 8000 button type="button" aria-haspopup="true" aria-expanded="false" tabindex="0" class="prc-Button-ButtonBase-c50BI" data-loading="false" data-size="medium" data-variant="primary" aria-describedby=":R55ab:-loading-announcement" id=":R55ab:">Code
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kormode.vim

No windows support for now

When you press Korean key in normal mode this script will change your system layout and repeat same key press in appropriate language.

Settings:

Set layout to switch to. Defaults to 'U.S.'.

let g:kormode_normal_layout='U.S.'

Or you can set layout to switch to Korean. For example of Mac:

let g:kormode_normal_layout='두벌식'

You can find out the name of layout by switching on it and running changeInput binary in plugin directory.

Automatically toggle to normal layout on leaving the insert mode. Defaults to 0.

let g:kormode_autotoggle_insertleave=1

Install

Install with Vundle or Pathogen.

Linux users need to provide correct commands to get and set current layout:

let g:kormode_get_layout_command = 'setxkbmap -print | grep xkb_symbols | awk \'{split($0,arr,"+")} END{print arr[2]}\''
let g:kormode_set_layout_command = 'setxkbmap -option "grp:ctrl_shift_toggle,grp_led:scroll" -layout "us,ru"'
let g:kormode_normal_layout='us'

The following was tested under Ubuntu 12.10

About

Bind pressing Korean key in normal mode to toggle layout and repeat same key.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%
0