summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/.vimrc42
1 files changed, 21 insertions, 21 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index beba357..12721d7 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -27,27 +27,27 @@ call plug#end()
filetype plugin indent on
syntax enable
-set number
-set signcolumn=yes
-set updatetime=300
-set hidden
-
-set tabstop=4
-set shiftwidth=4
-set softtabstop=4
-set expandtab
-
-set ignorecase
-set smartcase
-set incsearch
-set hlsearch
-
-set splitbelow
-set splitright
-set scrolloff=8
-
-set clipboard=unnamedplus
-set mouse=a
+set number " show line numbers
+set signcolumn=yes " always show sign column; prevents layout shift from LSP diagnostics
+set updatetime=300 " ms before swap write / CursorHold fires; speeds up LSP diagnostics
+set hidden " allow switching away from a modified buffer without saving
+
+set tabstop=4 " <Tab> displays as 4 spaces
+set shiftwidth=4 " >> / << indent by 4 spaces
+set softtabstop=4 " <Tab> in insert mode inserts/deletes 4 spaces
+set expandtab " insert spaces instead of tab characters
+
+set ignorecase " case-insensitive search by default
+set smartcase " override ignorecase when pattern contains uppercase
+set incsearch " highlight matches while typing search pattern
+set hlsearch " highlight all matches after search
+
+set splitbelow " :split opens new window below
+set splitright " :vsplit opens new window to the right
+set scrolloff=8 " keep 8 lines of context above/below cursor when scrolling
+
+set clipboard=unnamedplus " yank/put use the system clipboard automatically
+set mouse=a " enable mouse support in all modes
" ── File clutter ───────────────────────────────────────────────────────────────
set nobackup