Skip to content

Instantly share code, notes, and snippets.

/vimrc Secret

Created April 30, 2015 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c1ec707d61be4b00e0f0 to your computer and use it in GitHub Desktop.
Save anonymous/c1ec707d61be4b00e0f0 to your computer and use it in GitHub Desktop.
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