From 7f7cfff9495f7ae1f362286b1f763b27bbbb391f Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 22 Feb 2019 11:25:12 +1300 Subject: [PATCH] remove last position in favour of plugin --- .vim/doc/lastplace.txt | 1 + .vim/plugin/lastplace.vim | 1 + .vimrc | 3 --- 3 files changed, 2 insertions(+), 3 deletions(-) create mode 120000 .vim/doc/lastplace.txt create mode 120000 .vim/plugin/lastplace.vim 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 -- 2.39.2