summaryrefslogtreecommitdiff
path: root/ftplugin
diff options
context:
space:
mode:
authorryanss2015-02-09 23:36:55 -0500
committerryanss2015-02-09 23:36:55 -0500
commitbf2266ce059684c5b35424a030d37eee97399e3a (patch)
tree789a6c0b3c5d1b935ec86f5c1de07b35d0bfd2d0 /ftplugin
parent985fab2bbdac01dae965dec6d48c2a978e6e8f3d (diff)
downloadvim-hn-bf2266ce059684c5b35424a030d37eee97399e3a.tar.gz
Save cursor position when moving back/forward #11
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/hackernews.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/ftplugin/hackernews.vim b/ftplugin/hackernews.vim
index 27c3e43..b5d9372 100644
--- a/ftplugin/hackernews.vim
+++ b/ftplugin/hackernews.vim
@@ -8,5 +8,12 @@
" Version: 0.1.1
+if !exists("g:hackernews_marks")
+ let g:hackernews_marks = {}
+endif
+
+
noremap <buffer> o :python hacker_news_link()<cr>
noremap <buffer> O :python hacker_news_link(external=True)<cr>
+noremap <buffer> u u:python recall_pos()<cr>
+noremap <buffer> <C-r> <C-r>:python recall_pos()<cr>