From 913bcee1d7f35389fa851e6e6d51ad6462ffdecd Mon Sep 17 00:00:00 2001 From: ryanss Date: Wed, 25 Feb 2015 16:01:30 -0500 Subject: Save cursor position when using back/forward commands --- ftplugin/hackernews.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ftplugin') diff --git a/ftplugin/hackernews.vim b/ftplugin/hackernews.vim index 7b0bed4..c64b5d2 100644 --- a/ftplugin/hackernews.vim +++ b/ftplugin/hackernews.vim @@ -42,8 +42,12 @@ execute "Python hackernews.main()" noremap o :Python hackernews.link() noremap O :Python hackernews.link(external=True) noremap gx :Python hackernews.link(external=True) -noremap u u:Python hackernews.recall_pos() -noremap :Python hackernews.recall_pos() +noremap u :Python hackernews.save_pos() + \u + \:Python hackernews.recall_pos() +noremap :Python hackernews.save_pos() + \ + \:Python hackernews.recall_pos() " Helper motions to browse front page, comments and articles easier -- cgit v1.2.3