aboutsummaryrefslogtreecommitdiff
path: root/plugin/hints.vim
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2022-08-09 00:33:40 -0600
committerJosh Rahm <rahm@google.com>2022-08-09 00:33:40 -0600
commit54ce931f0bcede9affde3a6934656fa6d4ad9961 (patch)
tree29d6c48b81f6ee5a5206fe5f97a52c5530fae537 /plugin/hints.vim
parent3340b11176d467961ae8426091d53c6ad1a01d2c (diff)
downloadfieldmarshal.vim-54ce931f0bcede9affde3a6934656fa6d4ad9961.tar.gz
fieldmarshal.vim-54ce931f0bcede9affde3a6934656fa6d4ad9961.tar.bz2
fieldmarshal.vim-54ce931f0bcede9affde3a6934656fa6d4ad9961.zip
Add hints.vim
Hints work like qutebrowser. <C-f> will enter hint mode, which will prompt the user to type a two-letter sequence to jump the cursor to a specific line.
Diffstat (limited to 'plugin/hints.vim')
-rw-r--r--plugin/hints.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/hints.vim b/plugin/hints.vim
new file mode 100644
index 0000000..47282ad
--- /dev/null
+++ b/plugin/hints.vim
@@ -0,0 +1,3 @@
+noremap <silent> <C-f> :<C-u>call hints#runHints("")<cr>
+onoremap <silent> <C-f> :<C-u> call hints#runHints("V")<cr>
+vnoremap <silent> <C-f> :<C-u> call hints#runHints("V")<cr>