Skip to content

Instantly share code, notes, and snippets.

@benmccormick
Created July 14, 2014 02:33
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benmccormick/40ee9e2a942f94777629 to your computer and use it in GitHub Desktop.
Save benmccormick/40ee9e2a942f94777629 to your computer and use it in GitHub Desktop.
vimrc Boilerplate
"<Your Name Here>
" Setup stuff
" ===========
" Use vim rather than vi settings
set nocompatible
" Plugins Setup
" =============
" Use a plugin manager like Vundle here
" General Config
" ==============
"Set up your configuration here. Some common options are below
"as examples
set encoding=utf-8
set number " Line numbers are nice
set backspace=indent,eol,start " Allow backspace in insert mode
set history=1000 " Store lots of :cmdline history
set showcmd " Show incomplete cmds down the bottom
set hidden " Buffers can exist in the background
" Indentation and Display
" =======================
" This sets us up to replace tabs with spaces and have 4 space width indentation
set autoindent
set smartindent
set smarttab
set shiftwidth=4
set softtabstop=4
set tabstop=4
set expandtab
set list listchars=tab:\ \ ,trail:· " Display tabs and trailing spaces visually
set nowrap " Don't wrap lines
" Custom keymappings
" ===============
"Add your own keymappings here
" Plugin Options
" ==============
" Any plugin configuration should happen here
"Syntax Specific
" Mostly syntax specific stuff should go in ftplugin files,
" but you can put some short autocommand ones here if you don't have many
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment