Skip to content

Instantly share code, notes, and snippets.

@mattatcha
Created May 17, 2014 05:30
Show Gist options
  • Save mattatcha/6fa7b9f80c5cfbb4a10d to your computer and use it in GitHub Desktop.
Save mattatcha/6fa7b9f80c5cfbb4a10d to your computer and use it in GitHub Desktop.
set encoding=utf-8
set nocompatible " be iMproved, required
filetype off " required
set number
let mapleader = ","
set history=100
" Store a bunch of undo history
set undolevels=400
" Enable spell checking
set spell
" Allow buffer switching without saving
set hidden
nnoremap <silent> <C-S> :<C-u>Update<CR>
noremap <C-S> :update<CR>
vnoremap <C-S> <C-C>:update<CR>
inoremap <C-S> <C-O>:update<CR>
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Bundle 'Valloric/YouCompleteMe'
Plugin 'tpope/vim-fugitive'
Plugin 'mattn/gist-vim'
Bundle 'groenewege/vim-less'
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'bling/vim-airline'
Plugin 'scrooloose/nerdtree'
Bundle "pangloss/vim-javascript"
Bundle 'hail2u/vim-css3-syntax'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'tpope/vim-surround'
Bundle 'kien/ctrlp.vim'
Bundle 'mxw/vim-jsx'
Bundle 'chriskempson/vim-tomorrow-theme'
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - list configured plugins
" :PluginInstall(!) - install (update) plugins
" :PluginSearch(!) foo - search (or refresh cache first) for foo
" :PluginClean(!) - confirm (or auto-approve) removal of unused plugins
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"
set anti enc=utf-8
set guifont=Source\ Code\ Pro:h12
set laststatus=2
set autoindent
set shiftwidth=4 " Use indents of 4 spaces
set expandtab " Tabs are spaces, not tabs
set tabstop=4 " An indentation every four columns
set softtabstop=4 " Let backspace delete indent
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J)
set splitright " Puts new vsplit windows to the right of the current
set splitbelow " Puts new split windows to the bottom of the current
set ruler
"colors tomorrow
colorscheme tomorrow
syntax on
map <C-n> :NERDTreeToggle<CR>
"autocmd vimenter * NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment