-
-
Save dabvid/66730a0f2356b190f7e8 to your computer and use it in GitHub Desktop.
.vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set number | |
set autoindent | |
set smartindent | |
set tabstop=4 | |
set shiftwidth=4 | |
set wildmenu | |
set expandtab | |
set noswapfile | |
set nobackup | |
"Needed for Vundle to work | |
set nocompatible | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" Bundles | |
Bundle 'pangloss/vim-javascript' | |
Bundle 'mxw/vim-jsx' | |
Bundle 'gmarik/vundle' | |
Bundle 'jiangmiao/auto-pairs' | |
Bundle 'scrooloose/nerdtree' | |
Bundle 'jistr/vim-nerdtree-tabs' | |
Bundle 'guns/xterm-color-table.vim' | |
Bundle 'vim-scripts/hexHighlight.vim' | |
Bundle 'altercation/vim-colors-solarized' | |
Bundle 'Valloric/YouCompleteMe' | |
Bundle 'scrooloose/syntastic' | |
Bundle 'marijnh/tern_for_vim' | |
Bundle 'jelera/vim-javascript-syntax' | |
Bundle 'maksimr/vim-jsbeautify' | |
Bundle 'einars/js-beautify' | |
Bundle 'majutsushi/tagbar' | |
Bundle 'csexton/snipmate.vim' | |
Bundle 'nathanaelkane/vim-indent-guides' | |
Bundle 'Raimondi/delimitMate' | |
Bundle 'vim-scripts/SyntaxAttr.vim' | |
Bundle 'burnettk/vim-angular' | |
Bundle 'othree/javascript-libraries-syntax.vim' | |
Bundle 'kchmck/vim-coffee-script' | |
Bundle 'elzr/vim-json' | |
syntax enable | |
filetype plugin indent on | |
let g:syntastic_check_on_open=1 | |
" Load NERDTree at startup | |
let NERDTreeShowHidden=1 | |
"Syntax | |
autocmd BufRead,BufNewFile *.less setfiletype css | |
"Remove whitespace | |
" autocmd BufWritePre * :%s/\s\+$//e | |
" Visual | |
set guioptions=Ace | |
" set guioptions=r sets right scrollbar visible after Ace-mode | |
set linespace=5 | |
set background=dark | |
if has('gui_running') | |
colorscheme solarized | |
else | |
colorscheme monokai | |
endif | |
set guifont=Menlo:h11 | |
"hi Pmenu ctermfg=0 ctermbg=6 guibg=#f8f8f8 guifg=#000000 | |
"hi PmenuSel ctermfg=7 ctermbg=4 guibg=#acc7e5 guifg=#000000 | |
" Set to auto read when a file is changed from the outside | |
set autoread | |
" Show matching brackets when text indicator is over them | |
set showmatch | |
" Disable arrows in ESC-mode | |
map <up> <nop> | |
map <down> <nop> | |
map <left> <nop> | |
map <right> <nop> | |
" Map keys for open in browser | |
map <D-P> :exe ':silent !open -a /Applications/Google\ Chrome.app %'<CR> | |
" Turn of some warnings from Syntastic about angularjs in html | |
let g:syntastic_html_tidy_ignore_errors=[" proprietary attribute " ,"trimming empty <", "unescaped &" , "lacks \"action", "is not recognized!", "discarding unexpected"] | |
let g:syntastic_json_checkers = ['jsonlint'] | |
" Disable fancy concealing of attribute quotes. | |
let g:vim_json_syntax_conceal = 0 | |
" You comple me Autocomplete Settings | |
let g:ycm_autoclose_preview_window_after_completion = 1 | |
let g:ycm_autoclose_preview_window_after_insertion = 1 | |
set splitright |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment