nvim: after/ftplugin: Use 'wipe' for bufhidden

This commit is contained in:
Sanchayan Maity 2021-05-25 11:39:40 +05:30
parent f088e258da
commit 748fd222da
4 changed files with 5 additions and 3 deletions

View file

@ -1,3 +1,5 @@
setlocal bufhidden=wipe
" Disable whitespace highlighting in git buffer
autocmd! BufEnter <buffer> DisableWhitespace

View file

@ -1 +1 @@
setlocal bufhidden=delete
setlocal bufhidden=wipe

View file

@ -6,4 +6,4 @@ nmap <buffer> <silent> <Leader>r :Reword<CR>
nmap <buffer> <silent> <Leader>f :Fixup<CR>
nmap <buffer> <silent> <Leader>c :Cycle<CR>
setlocal bufhidden=delete
setlocal bufhidden=wipe

View file

@ -30,5 +30,5 @@ nnoremap <Leader>gw :Gwrite<CR>
augroup custom_fugitive
autocmd!
autocmd FileType fugitive nnoremap <buffer><silent> q :bwipeout!<CR>
autocmd BufReadPost fugitive:// setlocal bufhidden=delete
autocmd BufReadPost fugitive:// setlocal bufhidden=wipe
augroup END