From 1b3f169999105ec929d4cd945711628ee44730f6 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Thu, 7 Aug 2014 23:20:59 -0400 Subject: [PATCH] Reenable escape keys as they seem to be required for correct arrow keys --- vim/config/settings.vim | 1 - vim/config/vimpager.vim | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/vim/config/settings.vim b/vim/config/settings.vim index 8c77c1b..5a765d9 100644 --- a/vim/config/settings.vim +++ b/vim/config/settings.vim @@ -83,7 +83,6 @@ set hlsearch incsearch ignorecase smartcase "configure how search behaves set timeout timeoutlen=1000 "how long before timing out for mappings set ttimeout ttimeoutlen=100 "how long before timing out for terminal key codes - set noesckeys "disable escape keys "enable the auto-creation of missing folders in a save path if !exists('*s:MakeNewDir') diff --git a/vim/config/vimpager.vim b/vim/config/vimpager.vim index 2a82e27..657e7eb 100644 --- a/vim/config/vimpager.vim +++ b/vim/config/vimpager.vim @@ -49,6 +49,8 @@ noremap $ noremap noremap noremap +noremap 4zl +noremap 4zh noremap = + noremap _ - noremap 4k @@ -74,3 +76,9 @@ xnoremap gg0vG$ nnoremap a gg0vG$ xnoremap a gg0vG$ nnoremap / ':noh' + +" Toggles +nnoremap ':set wrap!:echo "line wrapping toggled"' +xnoremap ':set wrap!gv' +nnoremap ':set spell!:echo "spell checking toggled"' +xnoremap ':set spell!gv'