Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
145 lines (127 sloc) 4.22 KB
""""""""" Initialize vundle """"""""""""
set nocompatible " be iMproved, required
filetype off " required
if has("win32")
set rtp+=~/_vim/bundle/Vundle.vim
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'beyondmarc/hlsl.vim'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'hallettj/jslint.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'vim-scripts/ShaderHighLight'
Plugin 'scrooloose/syntastic'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-scripts/AutoComplPop'
Plugin 'OrangeT/vim-csharp'
Plugin 'tpope/vim-dispatch'
Plugin 'tikhomirov/vim-glsl'
Plugin 'pangloss/vim-javascript'
Plugin 'elzr/vim-json'
Plugin 'sophacles/vim-processing'
call vundle#end() " required
filetype plugin indent on " required
""""""""""" GENERAL SETTINGS """""""""""
set nocompatible " use vim defaults
set ls=2 " allways show status line
set tabstop=2 " numbers of spaces of tab character
set shiftwidth=2 " numbers of spaces to (auto)indent
set noexpandtab " don't use soft tabs
set scrolloff=3 " keep 3 lines when scrolling
set showcmd " display incomplete commands
set hlsearch " highlight searches
set incsearch " do incremental searching
set ruler " show the cursor position all the time
set visualbell t_vb= " turn off error beep/flash
set nobackup " do not keep backup files
set nowritebackup
set noswapfile
set number " show line numbers
set numberwidth=3 " set gutter width
set noignorecase " don't ignore case
set title " show title in console title bar
set ttyfast " smoother changes
set modeline " last lines in document sets vim mode
set modelines=3 " number lines checked for modelines
set shortmess=atI " Abbreviate messages
set nostartofline " don't jump to first character when paging
set whichwrap=b,s,h,l,<,>,[,] " move freely between files
set smartindent " smart indent
set backspace=indent,eol,start
set cursorline " highlight the line the curor is currently on
filetype plugin indent on
syntax on " syntax highlighting
"""""""" VISUAL SETTINGS """""""""""""
let &t_Co=256
set encoding=utf-8
set listchars=eol:¬,tab:»·,trail:☰,extends:→,precedes:←,nbsp:_
if has("win32")
set guifont=Powerline_Consolas:h8
set guifont=Menlo\ Regular\ for\ Powerline:h12
" Colorscheme
colorscheme solarized
set bg=light
if has("gui_running") " GUI-specific options
set guioptions=egmrt " Removes the hideous menu bar
set guioptions-=M
if !has("win32")
set fuoptions=maxhorz,maxvert " Fullscreen takes up entire screen
" Move between buffers with tab and shift+tab
nnoremap <Tab> :bnext<CR>
nnoremap <S-Tab> :bprevious<CR>
" Fuzzy file open/close
map <silent> <leader>f :FufFile<CR>
map <silent> <leader>b :FufBuffer<CR>
"""""""" PLUGIN SETTINGS """""""""""
" NERDTree
let NERDTreeIgnore = ['\.meta$', '\.pyc$']
" airline
let g:airline_powerline_fonts = 1
if !has("win32")
" old vim-powerline symbols
let g:airline_left_sep = ''
let g:airline_left_alt_sep = ''
let g:airline_right_sep = ''
let g:airline_right_alt_sep = ''
let g:airline_symbols.branch = ''
let g:airline_symbols.readonly = ''
let g:airline_symbols.linenr = ''
let g:airline#extensions#tabline#enabled = 1
" Syntastic
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
"set statusline+=%#warningmsg#
"set statusline+=%{SyntasticStatuslineFlag()}
"set statusline+=%*
"let g:syntastic_always_populate_loc_list = 1
"let g:syntastic_auto_loc_list = 1
" Start in workspace folder.
if has("win32")
if isdirectory("F:\\workspace\\")
cd F:\workspace\
elseif isdirectory("H:\\workspace\\")
cd H:\workspace\
cd ~/Documents/workspace