vim: add keymap plugin
This commit is contained in:
parent
95bd07aa10
commit
794d826f64
16
.vim/plugin/keymap.vim
Normal file
16
.vim/plugin/keymap.vim
Normal file
@ -0,0 +1,16 @@
|
||||
" See https://vim.fandom.com/wiki/Mapping_fast_keycodes_in_terminal_Vim
|
||||
" See termcap-options for mapped key info
|
||||
" Some may not mapped correctly mapped for F1 to F4 (See vt100-function-keys )
|
||||
" To set them, you can have a look at https://vim.fandom.com/wiki/Mapping_keys_in_Vim_-_Tutorial_(Part_2)
|
||||
" :set <S-F1>=<press Ctrl-V> <press S-F1><press esc>
|
||||
" Those are the key for gnome-terminal with zsh on archlinux
|
||||
if &term =~ "xterm."
|
||||
set <S-F1>=[1;2P
|
||||
set <S-F2>=[1;2Q
|
||||
set <S-F3>=[1;2R
|
||||
set <S-F4>=[1;2S
|
||||
endif
|
||||
"you could also direclty map them
|
||||
" map <press ctrl-V><press your key map> :some vimcmds <press Ctrl-V><press
|
||||
" enter>
|
||||
" you can check the result with :map <press ctrl-V><press your key map>
|
Loading…
Reference in New Issue
Block a user