]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

remove last position in favour of plugin
authormartin f. krafft <madduck@madduck.net>
Thu, 21 Feb 2019 22:25:12 +0000 (11:25 +1300)
committermartin f. krafft <madduck@madduck.net>
Thu, 21 Feb 2019 22:25:43 +0000 (11:25 +1300)
.vim/doc/lastplace.txt [new symlink]
.vim/plugin/lastplace.vim [new symlink]
.vimrc

diff --git a/.vim/doc/lastplace.txt b/.vim/doc/lastplace.txt
new file mode 120000 (symlink)
index 0000000..9c00f5b
--- /dev/null
@@ -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 (symlink)
index 0000000..a5f9974
--- /dev/null
@@ -0,0 +1 @@
+/usr/share/vim/addons/plugin/lastplace.vim
\ No newline at end of file
diff --git a/.vimrc b/.vimrc
index 7adcd858633dcc5c062ec601433829c3e6721ba2..66cb4ff5e13b0c9e4aa5fbf2646c1a12c99f5e89 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -1445,9 +1445,6 @@ filetype plugin indent on
 syntax on
 colorscheme madduck
 
 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
 
 " leave the w mark whenever a file is written
 autocmd BufWrite * normal mw