Reenable escape keys as they seem to be required for correct arrow keys

This commit is contained in:
Kevin MacMartin 2014-08-07 23:20:59 -04:00
parent 21ee4d0d0c
commit 1b3f169999
2 changed files with 8 additions and 1 deletions

View file

@ -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')

View file

@ -49,6 +49,8 @@ noremap <End> $
noremap <kEnd> <End>
noremap <Up> <C-P>
noremap <Down> <C-N>
noremap <Right> 4zl
noremap <Left> 4zh
noremap = +
noremap _ -
noremap <C-Up> 4k
@ -74,3 +76,9 @@ xnoremap <C-a> <Esc>gg0vG$
nnoremap <Leader>a gg0vG$
xnoremap <Leader>a <Esc>gg0vG$
nnoremap <silent><expr> <Leader>/ ':noh<CR>'
" Toggles
nnoremap <silent><expr> <F1> ':set wrap!<CR>:echo "line wrapping toggled"<CR>'
xnoremap <silent><expr> <F1> '<Esc>:set wrap!<CR>gv'
nnoremap <silent><expr> <F2> ':set spell!<CR>:echo "spell checking toggled"<CR>'
xnoremap <silent><expr> <F2> '<Esc>:set spell!<CR>gv'