From: martin f. krafft Date: Thu, 21 Feb 2019 22:25:12 +0000 (+1300) Subject: remove last position in favour of plugin X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/7f7cfff9495f7ae1f362286b1f763b27bbbb391f remove last position in favour of plugin --- diff --git a/.vim/doc/lastplace.txt b/.vim/doc/lastplace.txt new file mode 120000 index 0000000..9c00f5b --- /dev/null +++ b/.vim/doc/lastplace.txt @@ -0,0 +1 @@ +/usr/share/vim/addons/doc/lastplace.txt \ No newline at end of file diff --git a/.vim/plugin/lastplace.vim b/.vim/plugin/lastplace.vim new file mode 120000 index 0000000..a5f9974 --- /dev/null +++ b/.vim/plugin/lastplace.vim @@ -0,0 +1 @@ +/usr/share/vim/addons/plugin/lastplace.vim \ No newline at end of file diff --git a/.vimrc b/.vimrc index 7adcd85..66cb4ff 100644 --- a/.vimrc +++ b/.vimrc @@ -1445,9 +1445,6 @@ filetype plugin indent on syntax on colorscheme madduck -" jump to last known position in file (:he last-position-jump) -autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g`\"zz" | endif - " leave the w mark whenever a file is written autocmd BufWrite * normal mw