]> Sergey Matveev's repositories - dotfiles.git/blob - vim/.vim/plugin/chnglstnav.vim
dac9e95f784b38d22be7611940aa48c763507d02
[dotfiles.git] / vim / .vim / plugin / chnglstnav.vim
1 if exists('*<SID>Chng') | finish | endif
2
3 function! s:Chng(...)
4     if a:0 == 0 | return | endif
5     execute "normal " . a:1 . (a:1 > 0 ? "g;" : "g,")
6 endfunction
7
8 command! -nargs=? Chng call s:Chng(<args>)
9 nmap <End> :changes<CR>:Chng<Space>