Skip to content

Instantly share code, notes, and snippets.

Last active February 26, 2022 17:09
  • Star 27 You must be signed in to star a gist
  • Fork 10 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save benmccormick/4e4bc44d8135cfc43fc3 to your computer and use it in GitHub Desktop.
A minimal vimrc for new vim users
" A minimal vimrc for new vim users to start with.
" Referenced here:
" Original Author: Bram Moolenaar <>
" Made more minimal by: Ben Orenstein
" Modified by : Ben McCormick
" Last change: 2014 June 8
" To use it, copy it to
" for Unix based systems (including OSX and Linux): ~/.vimrc
" for Windows : $VIM\_vimrc
" If you don't understand a setting in here, just type ':h setting'.
" Use Vim settings, rather than Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" Make backspace behave in a sane manner.
set backspace=indent,eol,start
" Switch syntax highlighting on
syntax on
" Enable file type detection and do language-dependent indenting.
filetype plugin indent on
" Show line numbers
set number
" Allow hidden buffers, don't limit to 1 file per window/split
set hidden
Copy link

venthur commented Jul 14, 2014

set nocompatible is redundant, if vim finds an vimrc or gvmrc file compatible is turned off automatically.

Copy link

ajpen commented Oct 20, 2016

Maybe, but i think its better for beginners if this is explicitly added, so they know of it.

Copy link

gdennie commented Feb 16, 2017

On windows the backup files do create a mess of the folders and aught to be addressed for us beginners :)

Copy link


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