From 794d826f646e3c457caed45dcefe95fd8e4e15ab Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Fri, 18 Dec 2020 10:32:34 +0100 Subject: [PATCH] vim: add keymap plugin --- .vim/plugin/keymap.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .vim/plugin/keymap.vim diff --git a/.vim/plugin/keymap.vim b/.vim/plugin/keymap.vim new file mode 100644 index 0000000..0d993c2 --- /dev/null +++ b/.vim/plugin/keymap.vim @@ -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 = +" Those are the key for gnome-terminal with zsh on archlinux +if &term =~ "xterm." + set = + set = + set = + set = +endif +"you could also direclty map them +" map :some vimcmds +" you can check the result with :map