Skip to content

Instantly share code, notes, and snippets.

@bouzuya
Created February 28, 2012 13:19
Show Gist options
  • Save bouzuya/1932520 to your computer and use it in GitHub Desktop.
Save bouzuya/1932520 to your computer and use it in GitHub Desktop.
nnoremap <expr> p col('.') !=# 1 ? 'p' : 'P'
nnoremap <expr> p col('.') == 1 ? 'P' : 'p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment