]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/chnglstnav.vim
Vim scripts refactoring
[dotfiles.git] / vim / .vim / plugin / chnglstnav.vim
index dac9e95f784b38d22be7611940aa48c763507d02..699fdd0c542f183e211e540d9c49f4b435c732e4 100644 (file)
@@ -1,9 +1,2 @@
-if exists('*<SID>Chng') | finish | endif
-
-function! s:Chng(...)
-    if a:0 == 0 | return | endif
-    execute "normal " . a:1 . (a:1 > 0 ? "g;" : "g,")
-endfunction
-
-command! -nargs=? Chng call s:Chng(<args>)
-nmap <End> :changes<CR>:Chng<Space>
+if exists("*chnglstnav#do") | finish | endif
+nmap <End> :changes<CR>:call chnglstnav#do()<Left>