-
-
Save anonymous/c1ec707d61be4b00e0f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if !has('gui_running') | |
set ttimeoutlen=10 | |
augroup FastEscape | |
autocmd! | |
autocmd InsertEnter * set timeoutlen=0 | |
autocmd InsertLeave * set timeoutlen=2000 | |
augroup END | |
endif | |
function! Altmap(char) | |
if has('gui_running') | return ' <A-'.a:char.'> ' | else | return ' <Esc>'.a:char.' '|endif | |
endfunction | |
execute 'nnoremap <silent>'.Altmap('h').':execute "ObviousResizeLeft ".(winwidth(0) * 1/6)<CR>' | |
execute 'inoremap'.Altmap('b').'<S-Left>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment