summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxs <xs@xs.local>2026-11-08 19:00:43 +0800
committerxs <xs@xs.local>2026-11-08 19:00:43 +0800
commitfadb49c6a77b7784f7cbe41a7363d92b1d0023c0 (patch)
tree9ec472613580cb2785128adaa2ef54b9ba2a6418
parentbba0fa8537b991d6792bd1a1dce25bcc35d42c70 (diff)
vimrc: set backspace=indent,eol,start; drop autosave on leaving insert mode
-rw-r--r--core/vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vimrc b/core/vimrc
index 783df3d..8c43954 100644
--- a/core/vimrc
+++ b/core/vimrc
@@ -1,6 +1,7 @@
1" One vimrc for Mac and Linux. Source of truth: /Users/xs/dev_env/core/vimrc 1" One vimrc for Mac and Linux. Source of truth: /Users/xs/dev_env/core/vimrc
2" Mac: cp core/vimrc ~/.vimrc Linux: sudo bash core/vim.sh (copies it to /etc/vimrc or /etc/vim/vimrc) 2" Mac: cp core/vimrc ~/.vimrc Linux: sudo bash core/vim.sh (copies it to /etc/vimrc or /etc/vim/vimrc)
3set nocompatible " /etc/vimrc is read before vim leaves vi mode; without this \ continuations and <leader> break 3set nocompatible " /etc/vimrc is read before vim leaves vi mode; without this \ continuations and <leader> break
4set backspace=indent,eol,start " vim default is empty (no backspacing over indent/eol/insert start); stock /etc/vimrc and defaults.vim set it, both replaced/skipped here
4" gt: go to next tab (right, wraps) 5" gt: go to next tab (right, wraps)
5" gT: go to previous tab (left, wraps) 6" gT: go to previous tab (left, wraps)
6" 2gt: go to tab number 2 (counted from 1 at the left) 7" 2gt: go to tab number 2 (counted from 1 at the left)
@@ -140,7 +141,6 @@ if has('termguicolors')
140endif 141endif
141colorscheme zellner 142colorscheme zellner
142 143
143autocmd InsertLeave * silent! update
144 144
145" Files rustup and cargo manage (toolchains, downloaded crates) open locked; :setl ma noro to override 145" Files rustup and cargo manage (toolchains, downloaded crates) open locked; :setl ma noro to override
146function! s:LockIfManaged() abort 146function! s:LockIfManaged() abort