Skip to content

Instantly share code, notes, and snippets.

@suobset
Created October 14, 2025 03:12
Show Gist options
  • Select an option

  • Save suobset/66750befd5d28db4f71a0ee977e71933 to your computer and use it in GitHub Desktop.

Select an option

Save suobset/66750befd5d28db4f71a0ee977e71933 to your computer and use it in GitHub Desktop.
2025 | Personal .vimrc
" ~/.vimrc or ~/.config/nvim/init.vim
" -----------------------------
" General Editing Preferences
" -----------------------------
" Use spaces instead of tabs
set expandtab
" Each tab = 2 spaces
set tabstop=2
set shiftwidth=2
set softtabstop=2
" Enable soft wrapping for long lines
set wrap
set linebreak " Prevent wrapping in the middle of a word
" Enable line numbers
set number
" Enable mouse support in all modes
set mouse=a
" -----------------------------
" Terminal Settings
" -----------------------------
" Open new terminal windows at the bottom
set splitbelow
" -----------------------------
" Optional quality-of-life settings
" -----------------------------
" Highlight current line
set cursorline
" Show matching brackets
set showmatch
" Use relative numbers (optional, comment out if you don’t want this)
" set relativenumber
" Use a sensible default for backspace
set backspace=indent,eol,start
@suobset
Copy link
Author

suobset commented Oct 14, 2025

Usually goes alongside amix/vimrc, in which case to be placed under ~/.vim_runtime/my_configs.vim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment