From 9000b8b873147589be8c6e58e258a3445c326398 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 20 May 2019 17:02:32 +0200 Subject: [PATCH] add U for redo in vim, set localeader to leader --- .config/nvim/init.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index b1ef3d4..2100709 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -277,6 +277,10 @@ call matchadd('ColorColumn', '\%81v', 100) " " set our leader key to space since with hjkl, space is largely useless let mapleader = "\" +" maps the leader for buffer local mappings (e.g. vim-waikiki for files under +" the root dir to the same key -- might lead to incompatibilities, will have +" to test) +let maplocalleader = "\" " set jk to escape, in case capslock is not mapped to escape on the system inoremap jk @@ -302,6 +306,9 @@ map V :vsp ~/.config/nvim/init.vim " when done in MANY successions) " au BufWritePost init.vim so ~/.config/nvim/init.vim +" since u undoes, would it not make sense that U redoes? +nnoremap U + " get rid of the help message popping up when I miss esc and hit F1 nnoremap inoremap