mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-12 04:36:37 +02:00
neovim: Don't save folds by default
It may be better to open files normally and have the option to manually save/load views for predictability.
This commit is contained in:
parent
ed05522acd
commit
d400ad5986
@ -54,13 +54,6 @@
|
|||||||
|
|
||||||
autocmd BufNewFile,BufRead *.ecr setlocal syntax=html
|
autocmd BufNewFile,BufRead *.ecr setlocal syntax=html
|
||||||
autocmd BufWritePre,FileWritePre * silent! call mkdir(expand('<afile>:p:h'), 'p')
|
autocmd BufWritePre,FileWritePre * silent! call mkdir(expand('<afile>:p:h'), 'p')
|
||||||
|
|
||||||
" Automatically save location/folds/etc. when re-opening files
|
|
||||||
augroup remember_folds
|
|
||||||
autocmd!
|
|
||||||
autocmd BufWinLeave * mkview
|
|
||||||
autocmd BufWinEnter * silent! loadview
|
|
||||||
augroup END
|
|
||||||
'';
|
'';
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user