From: sev Date: Sun, 3 Nov 2024 20:46:50 +0000 (-0600) Subject: vim: add suda package X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/0bffb4be92bc6770306b798ac4a8d662ebefd3ca?ds=inline;hp=6ebc1fca537c191d09e595d7cc6e58d21b7bb52a vim: add suda package --- 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