From 0bffb4be92bc6770306b798ac4a8d662ebefd3ca Mon Sep 17 00:00:00 2001 From: sev Date: Sun, 3 Nov 2024 14:46:50 -0600 Subject: [PATCH] vim: add suda package --- .gitmodules | 3 +++ etc/vim/.vimrc | 11 +++++++++++ etc/vim/pack/vim-suda/start/vim-suda | 1 + 3 files changed, 15 insertions(+) create mode 160000 etc/vim/pack/vim-suda/start/vim-suda diff --git a/.gitmodules b/.gitmodules index 42d970b..ee0d9ff 100644 --- a/.gitmodules +++ b/.gitmodules @@ -16,3 +16,6 @@ [submodule "etc/vim/pack/vim-lastplace/start/vim-lastplace"] path = etc/vim/pack/vim-lastplace/start/vim-lastplace url = https://github.com/farmergreg/vim-lastplace +[submodule "etc/vim/pack/vim-suda/start/vim-suda"] + path = etc/vim/pack/vim-suda/start/vim-suda + url = https://github.com/lambdalisue/vim-suda diff --git a/etc/vim/.vimrc b/etc/vim/.vimrc index 25eee7e..ee129c1 100644 --- a/etc/vim/.vimrc +++ b/etc/vim/.vimrc @@ -48,6 +48,7 @@ endif unlet x unlet y + """ vim-only defaults if !has('nvim') " neovim defaults are already set @@ -66,6 +67,15 @@ if !has('nvim') autocmd BufRead * set autoindent endif + +""" package config +"" suda +" https://github.com/lambdalisue/vim-suda/issues/32#issuecomment-829608925 +if ! &diff + let g:suda_smart_edit = 1 +endif + + """ styling " nice default theme colorscheme murphy @@ -113,6 +123,7 @@ autocmd VimEnter,WinNew, autocmd VimEnter,WinNew * set list set listchars=tab:├─,extends:»,precedes:«,space:·,trail:∙,nbsp:■ + """ editor " always save undo file for all file buffers autocmd BufRead * set undofile diff --git a/etc/vim/pack/vim-suda/start/vim-suda b/etc/vim/pack/vim-suda/start/vim-suda new file mode 160000 index 0000000..b97fab5 --- /dev/null +++ b/etc/vim/pack/vim-suda/start/vim-suda @@ -0,0 +1 @@ +Subproject commit b97fab52f9cdeabe2bbb5eb98d82356899f30829 -- 2.48.1