]> git.sev.monster Git - dotfiles.git/commitdiff
vim: add suda package
authorsev <git@sev.monster>
Sun, 3 Nov 2024 20:46:50 +0000 (14:46 -0600)
committersev <git@sev.monster>
Sun, 3 Nov 2024 20:46:50 +0000 (14:46 -0600)
.gitmodules
etc/vim/.vimrc
etc/vim/pack/vim-suda/start/vim-suda [new submodule]

index 42d970bbc714963e85bf77c75c62e0b82c090538..ee0d9ff72fc6c08304dd3559d1a669a8004cc201 100644 (file)
@@ -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
index 25eee7e73af65906c2386dee29cd06a89e5df172..ee129c1c01f2bcba76cc79244283313281235dd5 100644 (file)
@@ -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 (submodule)
index 0000000..b97fab5
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit b97fab52f9cdeabe2bbb5eb98d82356899f30829
This page took 0.045067 seconds and 4 git commands to generate.