mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-22 14:44:11 -05:00
Reenable escape keys as they seem to be required for correct arrow keys
This commit is contained in:
parent
21ee4d0d0c
commit
1b3f169999
2 changed files with 8 additions and 1 deletions
|
@ -83,7 +83,6 @@
|
||||||
set hlsearch incsearch ignorecase smartcase "configure how search behaves
|
set hlsearch incsearch ignorecase smartcase "configure how search behaves
|
||||||
set timeout timeoutlen=1000 "how long before timing out for mappings
|
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 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
|
"enable the auto-creation of missing folders in a save path
|
||||||
if !exists('*s:MakeNewDir')
|
if !exists('*s:MakeNewDir')
|
||||||
|
|
|
@ -49,6 +49,8 @@ noremap <End> $
|
||||||
noremap <kEnd> <End>
|
noremap <kEnd> <End>
|
||||||
noremap <Up> <C-P>
|
noremap <Up> <C-P>
|
||||||
noremap <Down> <C-N>
|
noremap <Down> <C-N>
|
||||||
|
noremap <Right> 4zl
|
||||||
|
noremap <Left> 4zh
|
||||||
noremap = +
|
noremap = +
|
||||||
noremap _ -
|
noremap _ -
|
||||||
noremap <C-Up> 4k
|
noremap <C-Up> 4k
|
||||||
|
@ -74,3 +76,9 @@ xnoremap <C-a> <Esc>gg0vG$
|
||||||
nnoremap <Leader>a gg0vG$
|
nnoremap <Leader>a gg0vG$
|
||||||
xnoremap <Leader>a <Esc>gg0vG$
|
xnoremap <Leader>a <Esc>gg0vG$
|
||||||
nnoremap <silent><expr> <Leader>/ ':noh<CR>'
|
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'
|
||||||
|
|
Loading…
Reference in a new issue