From 7b5e55cd3ee92598ef20fce378d9db6d076a6afa Mon Sep 17 00:00:00 2001 From: Noah Masur Date: Fri, 31 Jul 2020 09:28:06 -0400 Subject: [PATCH] fzf and vim navigation plugins --- nvim.configlink/init.vim | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/nvim.configlink/init.vim b/nvim.configlink/init.vim index 45f1f78..5dd1f2e 100644 --- a/nvim.configlink/init.vim +++ b/nvim.configlink/init.vim @@ -5,6 +5,9 @@ call plug#begin('~/.config/nvim/plugged') Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } " Required for fuzzyfinder Plug 'junegunn/fzf.vim' " Actual fuzzyfinder +Plug 'tpope/vim-surround' " Enables paren editing +Plug 'Raimondi/delimitMate' " Auto-close parentheses +Plug 'tpope/vim-commentary' " Use gc or gcc to comment Plug 'hashivim/vim-terraform' " Terraform HCL syntax Plug 'vimwiki/vimwiki' " Wiki System @@ -57,6 +60,21 @@ if !isdirectory(&undodir) call mkdir(&undodir, "p") endif +" Map the leader key +map + +" Jump to text in this directory +nnoremap t :Rg + +" Open file in this directory +nnoremap f :Files + +" Switch between multiple open files +nnoremap b :Buffers + +" Jump to text in this file +nnoremap s :BLines + " Mouse interaction / scrolling set mouse=nv