" Reload
map <silent> <Leader>r :source ~/.config/nvim/init.vim<CR>:echo "NVIM Reloaded"<CR>

" Keybindings
nnoremap <silent> <F2> :bp<CR>
nnoremap <silent> <F3> :bn<CR>
nnoremap <silent> <leader>ws :split<CR>
nnoremap <silent> <leader>wv :vsplit<CR>
nnoremap <silent> <leader>wS :split<CR><C-W>w
nnoremap <silent> <leader>wV :vsplit<CR><C-W>w
nnoremap <silent> <leader>wd <C-W>q
nnoremap <silent> <leader>w <C-W>

nnoremap <silent> <C-P> :Files<CR>
nnoremap <silent> <leader>p :Files %:h<CR>
nnoremap <silent> <leader>e :NERDTreeToggle %<CR>
nnoremap <silent> <leader>f :NERDTreeToggle<CR>
nnoremap <silent> <leader>b :Buffers<CR>
nnoremap <silent> <leader>s :Rg<CR>
nnoremap <silent> <leader>l :BLines<CR>

nnoremap <silent> <leader>c :echo expand("%:h")<CR>:e %:h/

nnoremap <silent> <leader><tab> :b#<CR>

" Reload
map <silent> <Leader>r :source ~/.config/nvim/init.vim<CR>:echo "NVIM Reloaded"<CR>

" Keybindings
nnoremap <silent> <F2> :bp<CR>
nnoremap <silent> <F3> :bn<CR>
nnoremap <silent> <leader>ws :split<CR>
nnoremap <silent> <leader>wv :vsplit<CR>
nnoremap <silent> <leader>wS :split<CR><C-W>w
nnoremap <silent> <leader>wV :vsplit<CR><C-W>w
nnoremap <silent> <leader>wd <C-W>q
nnoremap <silent> <leader>w <C-W>

nnoremap <silent> <C-P> :Files<CR>
nnoremap <silent> <leader>p :Files %:h<CR>
nnoremap <silent> <leader>e :NERDTreeToggle %<CR>
nnoremap <silent> <leader>f :NERDTreeToggle<CR>
nnoremap <silent> <leader>b :Buffers<CR>
nnoremap <silent> <leader>s :Rg<CR>
nnoremap <silent> <leader>l :BLines<CR>

nnoremap <silent> <leader>c :echo expand("%:h")<CR>:e %:h/

nnoremap <silent> <leader><tab> :b#<CR>

command Bdo %bd|e#

Add command to vim to close all buffers except current (visible)
Add command to vim to close all buffers except current (visible)

aboglioli/dotfiles