Skip to content

Instantly share code, notes, and snippets.

@navicore
Created February 3, 2014 15:14
Show Gist options
  • Save navicore/8785624 to your computer and use it in GitHub Desktop.
Save navicore/8785624 to your computer and use it in GitHub Desktop.
" 1) install vundle:
" git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
" 2) restart vim
" 3) :BundleInstall
"set term=builtin_ansi
syntax on
:set nu
set nocompatible " be iMproved
filetype off " required!
set expandtab
set tabstop=2
set shiftwidth=2
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" My bundles here:
"
" original repos on GitHub
"Bundle 'Lokaltog/vim-easymotion'
Bundle 'kien/ctrlp.vim'
Bundle 'majutsushi/tagbar'
Bundle 'morhetz/gruvbox'
Bundle 'navicore/vissort.vim'
Bundle 'navicore/vis.vim'
Bundle 'scrooloose/nerdtree'
Bundle 'scrooloose/syntastic'
Bundle 'tpope/vim-fugitive'
Bundle 'Shougo/neocomplete.vim'
Bundle 'ervandew/supertab'
Bundle 'mattn/webapi-vim'
Bundle 'mattn/gist-vim'
Bundle 'tpope/vim-fugitive'
Bundle 'jeetsukumaran/vim-buffergator'
filetype plugin indent on " required!
"
" Brief help
" :BundleList - list configured bundles
" :BundleInstall(!) - install (update) bundles
" :BundleSearch(!) foo - search (or refresh cache first) for foo
" :BundleClean(!) - confirm (or auto-approve) removal of unused bundles
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle commands are not allowed.
let g:syntastic_javascript_checkers = ['jslint']
nmap <F4> :w<CR>:make<CR>:copen<CR>
if has('gui_running')
set background=dark
else
set background=light
endif
colorscheme gruvbox
map <F5> :call ToggleBg()<CR>
function! ToggleBg()
if &background == 'dark'
set bg=light
else
set bg=dark
endif
endfunc
"set nu
function SetIDEOptions()
NERDTree
Tagbar
endfunction
autocmd vimenter * if !argc() | call SetIDEOptions() | endif
"NERDTree stuff
"autocmd vimenter * if !argc() | NERDTree | endif
map <C-n> :NERDTreeToggle<CR>
"Tagbar stuff
"autocmd vimenter * if !argc() | Tagbar | endif
map <C-t> :TagbarToggle<CR>
set complete=.,w,b,u,t,i
set tags=.tags
let g:syntastic_java_javac_config_file_enabled=1
"let g:gruvbox_contrast="hard"
set spell
set spelllang=en_us
set hlsearch
nnoremap <CR> :nohlsearch<CR><CR>
"let g:gist_show_privates = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment