From 3567d091a5fcc1b8db24db9764c84bff236c7cd1 Mon Sep 17 00:00:00 2001 From: sev Date: Sun, 22 Dec 2024 12:17:48 -0600 Subject: [PATCH] vim: update suda, reorganize vimrc a bit --- etc/vim/.vimrc | 10 +++++----- etc/vim/pack/vim-suda/start/vim-suda | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/etc/vim/.vimrc b/etc/vim/.vimrc index 0b9bcd9..59c8b08 100644 --- a/etc/vim/.vimrc +++ b/etc/vim/.vimrc @@ -22,12 +22,10 @@ set backup backupcopy=yes " NOTE: neovim uses ShaDa (SHAred DAta) format for viminfo and swap, and uses a " different version of undo file, so these types of files when created by " vim cannot be used with neovim, and the 'viminfofile', 'directory', and -" 'undodir' directories cannot be shared. -" NOTE: neovim has a nice default for these directories and files so -" customizing them is not necessary for it. +" 'undodir' directories cannot be shared. since neovim has a nice default +" for these directories and files, customizing them is not necessary. if !has('nvim') " viminfo - " NOTE: 'viminfofile' is a deprecated alias for 'shada' in neovim execute 'set viminfofile='.x.'/.viminfo' " swap @@ -125,6 +123,9 @@ autocmd BufRead * set modeline " should be default disabled but just in case set nomodelineexpr +"" enable editorconfig parsing for new buffers +let g:EditorConfig_enable_for_new_buf = 1 + "" indent " always use shiftwidth instead of tabsize set smarttab @@ -134,7 +135,6 @@ autocmd FileType markdown set softtabstop=4 shiftwidth=4 expandtab autocmd FileType javascript set softtabstop=2 shiftwidth=2 expandtab autocmd FileType json set softtabstop=2 shiftwidth=2 expandtab autocmd FileType html set softtabstop=2 shiftwidth=2 expandtab -let g:EditorConfig_enable_for_new_buf = 1 "" syntax autocmd Syntax php syn clear phpHereDoc phpNowDoc diff --git a/etc/vim/pack/vim-suda/start/vim-suda b/etc/vim/pack/vim-suda/start/vim-suda index e333169..9adda7d 160000 --- a/etc/vim/pack/vim-suda/start/vim-suda +++ b/etc/vim/pack/vim-suda/start/vim-suda @@ -1 +1 @@ -Subproject commit e333169211b84d6f4012ac9e40bcbbf370b74289 +Subproject commit 9adda7d195222d4e2854efb2a88005a120296c47 -- 2.48.1