]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/autoload/chnglstnav.vim
Vim scripts refactoring
[dotfiles.git] / vim / .vim / autoload / chnglstnav.vim
diff --git a/vim/.vim/autoload/chnglstnav.vim b/vim/.vim/autoload/chnglstnav.vim
new file mode 100644 (file)
index 0000000..9bdf840
--- /dev/null
@@ -0,0 +1,4 @@
+function! chnglstnav#do(...)
+    if a:0 == 0 | return | endif
+    execute "normal " . a:1 . (a:1 > 0 ? "g;" : "g,")
+endfunction