mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 02:52:55 +00:00
fzf and vim navigation plugins
This commit is contained in:
parent
26fb22f1b5
commit
7b5e55cd3e
@ -5,6 +5,9 @@ call plug#begin('~/.config/nvim/plugged')
|
|||||||
|
|
||||||
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } " Required for fuzzyfinder
|
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } " Required for fuzzyfinder
|
||||||
Plug 'junegunn/fzf.vim' " Actual 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 'hashivim/vim-terraform' " Terraform HCL syntax
|
||||||
Plug 'vimwiki/vimwiki' " Wiki System
|
Plug 'vimwiki/vimwiki' " Wiki System
|
||||||
|
|
||||||
@ -57,6 +60,21 @@ if !isdirectory(&undodir)
|
|||||||
call mkdir(&undodir, "p")
|
call mkdir(&undodir, "p")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Map the leader key
|
||||||
|
map <Space> <Leader>
|
||||||
|
|
||||||
|
" Jump to text in this directory
|
||||||
|
nnoremap <Leader>t :Rg<CR>
|
||||||
|
|
||||||
|
" Open file in this directory
|
||||||
|
nnoremap <Leader>f :Files<cr>
|
||||||
|
|
||||||
|
" Switch between multiple open files
|
||||||
|
nnoremap <Leader>b :Buffers<cr>
|
||||||
|
|
||||||
|
" Jump to text in this file
|
||||||
|
nnoremap <Leader>s :BLines<cr>
|
||||||
|
|
||||||
" Mouse interaction / scrolling
|
" Mouse interaction / scrolling
|
||||||
set mouse=nv
|
set mouse=nv
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user