Skip to content

Instantly share code, notes, and snippets.

@alech
Created September 21, 2012 19:12
Show Gist options
  • Save alech/3763299 to your computer and use it in GitHub Desktop.
Save alech/3763299 to your computer and use it in GitHub Desktop.
Do not use cursor keys in vim!
function WarningMessage(msg)
echohl WarningMsg
echo a:msg
echohl Nothing
endfunction
nnoremap <LEFT> :call WarningMessage("Use h!")<CR>h
nnoremap <DOWN> :call WarningMessage("Use j!")<CR>j
nnoremap <UP> :call WarningMessage("Use k!")<CR>k
nnoremap <RIGHT> :call WarningMessage("Use l!")<CR>l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment