Skip to content

Instantly share code, notes, and snippets.

@gpadd
Last active December 16, 2025 12:49
Show Gist options
  • Select an option

  • Save gpadd/ca8c6bb00362ce069231168403a23967 to your computer and use it in GitHub Desktop.

Select an option

Save gpadd/ca8c6bb00362ce069231168403a23967 to your computer and use it in GitHub Desktop.
My current _simple_ vimrc (2025-12-16); back to legacy vim script (for vim and neovim)
" Vim mode instead Vi compatible mode (must be first because of side effects)
set nocompatible
" Leaders
let mapleader = " "
" let maplocalleader="<BS>"
" Filetype based config
filetype plugin indent on
syntax on
" Indentation
set autoindent
set smartindent
" Tabstops
set expandtab
set tabstop=8
set softtabstop=0
set shiftwidth=8
" Relative and absolute line numbers combined
set number
set relativenumber
" More context around the cursor when it moves outside window viewport
set scrolloff=5
" Search
set hlsearch
set incsearch
set ignorecase
set smartcase
" Text wrapping
set wrap
set breakindent
" Window splitting
set splitright
set splitbelow
" Mouse
set mouse=nvi
set mousemodel=popup_setpos
" Miscellaneous
set encoding=UTF-8
set history=9001
set autoread
set hidden
set switchbuf=uselast
set sidescroll=1
set ttimeout
set ttimeoutlen=50
set ttyfast
set display=lastline
set laststatus=2
set completeopt=menu,popup
set wildoptions=pum,tagfile
set pumheight=8
set nojoinspaces
set nostartofline
set sessionoptions-=options
set sessionoptions+=unix,slash
set tags=./tags,./TAGS,tags,TAGS
set directory=~/.local/state/vim//
set clipboard=unnamedplus
" Colors
colorscheme habamax
set cursorline
" Mappings
nnoremap <silent> <leader>h :set hlsearch!<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment