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