Minimal Vim configuration for basic text editing.
This repo contains only core config files:
- no plugin manager
- no bundled plugins
- no CI/CD files
- filetype, indent, and syntax enabled
- UTF-8 encoding
- line numbers and ruler
- mouse enabled
- 2-space indentation defaults
- persistent undo when supported
- trim trailing whitespace on save
- restore last cursor position on reopen
- run
checktimeon focus/window enter
j/k: move by display line (gj/gk)J/K: move 5 display linesgh/gj/gk/gl: move between split windows<C-h>/<C-l>: previous/next tab<Left>/<Right>: resize current split
- every yank is synced to the system clipboard
- fallback clipboard tools:
wl-copy,xclip,xsel,pbcopy,clip,clip.exe - mouse visual selection is copied on left-button release
git clone https://github.com/streetquant/my-vim-config.git ~/.vim
printf 'source ~/.vim/.vimrc\n' > ~/.vimrc.vimrc.gitignorestartup/settings.vimstartup/autocommands.vimstartup/mappings.vim