keymap.vim : Highligting for Linux console keyboard map files
| script karma
Downloaded by 90
Comments, bugs, improvements
script versions (upload new version)
|Highlighting for Linux console keyboard map files, as described in keymaps manual page.
Note that most users do not need to create or edit Linux keyboard map files and so will not need the syntax highlighted either.
No support yet for line continuation with backslash (which is supported by loadkeys command in the keymap file).
Both string and character escapes are included (highlighted) in all strings (double-quoted) and characters (single-quoted) appearing in the file.
There is no associated 'keymap' filetype, nor any auto-detection for it, so to see the highlighting you will have to use the:
command manually (or in a modline if you wish).
The highlighting for the number prefix (0 for octal, 0x for hexadecimal, U+ for unicode characters), is currently linked to the Vim 'Special' highlighting group (used for example for backslash escapes in string literals). If that looks too distracting with your preferred color scheme, it can be disabled with:
:let g:keymap_number_prefix = 0
in your ~/.vimrc (or equivalent) file.
All key names (symbolic constants) that are highlighted are taken from the output of
from my Slackware 14.0 32-bit machine. It is possible your machine has a slightly different set of key names, you are welcome to report them to the script author.
|Download keymap.vim syntax file to ~/.vim/syntax/ directory or equivalent.|
Click on the package to download.
ip used for rating: 22.214.171.124