mark __virtual files as nofiles, so I can close the editor without saving
This commit is contained in:
@@ -63,6 +63,7 @@ vim.cmd [[
|
|||||||
tnoremap <c-w>c <c-\><c-n><c-w>c
|
tnoremap <c-w>c <c-\><c-n><c-w>c
|
||||||
|
|
||||||
autocmd TextYankPost * silent! lua vim.highlight.on_yank {higroup='Visual', timeout=100}
|
autocmd TextYankPost * silent! lua vim.highlight.on_yank {higroup='Visual', timeout=100}
|
||||||
|
autocmd BufEnter *__virtual* setlocal buftype=nofile bufhidden=hide noswapfile
|
||||||
|
|
||||||
let g:rustfmt_autosave = 1
|
let g:rustfmt_autosave = 1
|
||||||
]]
|
]]
|
||||||
|
|||||||
Reference in New Issue
Block a user