Skip to content

Instantly share code, notes, and snippets.

@mrmrs
Created August 6, 2013 19:48
Show Gist options
  • Save mrmrs/6167950 to your computer and use it in GitHub Desktop.
Save mrmrs/6167950 to your computer and use it in GitHub Desktop.
VIMRC for vim beginners that are Front End Developer types.
set nocompatible
set title
set number " Show line numbers
set history=1000 " Default is 20, I'd rather set this to ∞
set nofoldenable " Don't fold shit
set laststatus=2 " Always show file status line
set encoding=utf-8
setlocal tabstop=4
setlocal shiftwidth=4
setlocal expandtab
setlocal autoindent
setlocal smarttab
execute pathogen#infect()
syntax on
filetype plugin indent on
" Enter newlines without entering insert mode
nmap <CR> o<Esc>k
" Tab Navigation
nnoremap th :tabfirst<CR>
nnoremap tj :tabnext<CR>
nnoremap tk :tabprev<CR>
nnoremap tl :tablast<CR>
nnoremap tn :tabnew<CR>
nnoremap gb :Gbrowse<CR>
map fj :execute "vimgrep /" . expand("<cword>") . "/j **" <Bar> cnext<CR>
map cn :cn<CR>
" Custom Plugin Mappings
nnoremap ff :CtrlP<CR>
nnoremap -- :GundoToggle<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment