Skip to content

Instantly share code, notes, and snippets.

@mockdeep
Created April 25, 2012 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mockdeep/2493199 to your computer and use it in GitHub Desktop.
Save mockdeep/2493199 to your computer and use it in GitHub Desktop.
set tabstop=4 " Tab characters = 4 spaces when displayed
set shiftwidth=2 " Use 2 spaces for each insertion of (auto)indent
set softtabstop=2 " Tabs 'count for' 2 spaces when editing (fake tabs)
set expandtab " <tab> -> spaces in insert mode
set autoindent " always set autoindenting on
set smarttab " Smart tabbing!
set shiftround " < and > will hit indent levels instead of +-4 always
set hlsearch
set incsearch
set number
set wrap
set linebreak
set nolist
set iskeyword-=_
noremap <buffer> <silent> k gk
noremap <buffer> <silent> j gj
syntax on
filetype plugin on
set list listchars=tab:»·,trail:·
autocmd VimEnter * NERDTree
set paste
nmap \nt :NERDTree<CR>
nmap \nc :NERDTreeClose<CR>
set ruler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment