Skip to content

Instantly share code, notes, and snippets.

@ripxorip
Last active November 14, 2021 18:05
Show Gist options
  • Save ripxorip/0134c2ab29960c8a1e29326ea149fb7c to your computer and use it in GitHub Desktop.
Save ripxorip/0134c2ab29960c8a1e29326ea149fb7c to your computer and use it in GitHub Desktop.
Minimalistic vimrc
set number
set rnu
syntax on
set incsearch
set nocompatible
filetype plugin indent on " Load plugins according to detected filetype.
syntax on " Enable syntax highlighting.
set autoindent " Indent according to previous line.
set expandtab " Use spaces instead of tabs.
set softtabstop =4 " Tab key indents by 4 spaces.
set shiftwidth =4 " >> indents by 4 spaces.
set shiftround " >> indents to next multiple of 'shiftwidth'.
set backspace =indent,eol,start " Make backspace work as you would expect.
set hidden " Switch between buffers without having to save first.
set laststatus =2 " Always show statusline.
set display =lastline " Show as much as possible of the last line.
set showmode " Show current mode in command-line.
set showcmd " Show already typed keys when more are expected.
set incsearch " Highlight while searching with / or ?.
set splitbelow " Open new windows below the current window.
set splitright " Open new windows right of the current window.
set wrapscan " Searches wrap around end-of-file.
set report =0 " Always report changed lines.
set synmaxcol =200 " Only highlight the first 200 columns.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment