Created
November 30, 2014 23:00
-
-
Save djvs/f5fb6b7ed4ae6be06338 to your computer and use it in GitHub Desktop.
smart home compatible with weird urxvt + vim + zsh
This file contains hidden or 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
" smart home " | |
set nocompatible | |
map <Esc>[1~ <Home> | |
imap <Esc>[1~ <Home> | |
function! Smarthome() | |
if col('.') == 1 | |
execute 'normal! ^' | |
else | |
execute 'normal! 0' | |
endif | |
endfun | |
map <silent> <Home> :call Smarthome()<CR> | |
imap <silent> <Home> <C-O>:call Smarthome()<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment