Skip to content

Commit

Permalink
Map g0/g$ to what used to be 0/$ (similar to j->gj/gj->j)
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Nov 16, 2019
1 parent 788a687 commit 7d1e536
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoload/pencil.vim
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,10 @@ fun! pencil#init(...) abort
exe 'vn <buffer> <silent>' . Mapkey('0', 'v') . ' g0'
no <buffer> <silent> <Home> g<Home>
no <buffer> <silent> <End> g<End>
nn <buffer> <silent> g0 0
nn <buffer> <silent> g$ $
vn <buffer> <silent> g0 0
vn <buffer> <silent> g$ $
" preserve behavior of home/end keys in popups
call s:imap(1, '<Home>', '<C-o>g<Home>')
Expand Down

0 comments on commit 7d1e536

Please sign in to comment.