From d97a76daded8d21e60de4b9f770a58db734a85f4 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 18 Nov 2019 22:55:15 +0100 Subject: [PATCH] Add vim-sneak to nvim, to enable fast traversal --- .config/nvim/init.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 1325a93..b134171 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -40,6 +40,12 @@ Plug 'christoomey/vim-tmux-navigator' " automatically switch between relative and absolute numbers as buffers move " into / out of focus (requires number & relativenumber to be set) Plug 'jeffkreeftmeijer/vim-numbertoggle' +" Plug 'liuchengxu/vim-which-key', { 'on': ['WhichKey', 'WhichKey!'] } -> +" instructions: http://liuchengxu.org/vim-which-key/, needs setup tp become +" useful. TODO enable when setup is more settled down +" sneak around your files using +Plug 'justinmk/vim-sneak' + " " editing Workflow Plug 'tpope/vim-commentary' " easily toggle comments for lines, paragraphs etc with gc @@ -128,6 +134,14 @@ endif " PLUGIN CONFIGURATION {{{ " ================================================================================ +" PLUGIN: vim-sneak +map f Sneak_f +map F Sneak_F +map t Sneak_t +map T Sneak_T +let g:sneak#s_next = 1 +let g:sneak#use_ic_scs = 1 + " PLUGIN: NERDTree " highlight the line the cursor is on let NERDTreeHighlightCursorline = 1