diff options
| author | xs <xs@xs.local> | 2026-11-08 19:00:43 +0800 |
|---|---|---|
| committer | xs <xs@xs.local> | 2026-11-08 19:00:43 +0800 |
| commit | fadb49c6a77b7784f7cbe41a7363d92b1d0023c0 (patch) | |
| tree | 9ec472613580cb2785128adaa2ef54b9ba2a6418 /core/vimrc | |
| parent | bba0fa8537b991d6792bd1a1dce25bcc35d42c70 (diff) | |
vimrc: set backspace=indent,eol,start; drop autosave on leaving insert mode
Diffstat (limited to 'core/vimrc')
| -rw-r--r-- | core/vimrc | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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) |
| 3 | set nocompatible " /etc/vimrc is read before vim leaves vi mode; without this \ continuations and <leader> break | 3 | set nocompatible " /etc/vimrc is read before vim leaves vi mode; without this \ continuations and <leader> break |
| 4 | set 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') | |||
| 140 | endif | 141 | endif |
| 141 | colorscheme zellner | 142 | colorscheme zellner |
| 142 | 143 | ||
| 143 | autocmd 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 |
| 146 | function! s:LockIfManaged() abort | 146 | function! s:LockIfManaged() abort |
