3
edits
(Using an existing keyboard layout: buffer-local + toggle) |
m (minor clarification) |
||
Line 139: | Line 139: | ||
== Using an existing keyboard layout == | == Using an existing keyboard layout == | ||
If you already have a Toaq keyboard layout (for example, by following [[Input_methods#XKB|the XKB instructions]]), then you can <code>:source</code> the following script to make vim automatically switch layouts depending on mode. This functionality is toggled on or off each time you source the script in the same buffer. | If you already have a Toaq keyboard layout (for example, by following [[Input_methods#XKB|the XKB instructions]]), then you can <code>:source</code> the following script to make vim automatically switch layouts depending on vim's current mode. This functionality is toggled on or off each time you source the script in the same buffer. | ||
'''Follow the TODO instructions to make it work on your system.''' If you use an XKB method, be sure to use the name you gave your layout in evdev.lst and evdev.xml. | '''Follow the TODO instructions to make it work on your system.''' If you use an XKB method, be sure to use the name you gave your layout in evdev.lst and evdev.xml. |
edits