forked from ttreyer/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
89 lines (70 loc) · 2.04 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
set encoding=utf-8
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'tpope/vim-fugitive'
Plugin 'scrooloose/syntastic'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'airblade/vim-gitgutter'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'yko/mojo.vim'
Plugin 'nanotech/jellybeans.vim'
Plugin 'valloric/youcompleteme'
call vundle#end()
filetype plugin indent on
" --- Setup colorscheme ---
syntax on
set number
set guifont=Menlo\ for\ Powerline:h12
set background=dark
colorscheme jellybeans
" --- Setup airline ---
hi clear SignColumn
let g:airline#extensions#hunks#non_zero_only=1
set laststatus=2
let g:airline_detect_paste = 1
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
" --- Setup syntastic ---
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_c_checkers = [ 'make' ]
let g:syntastic_c_compiler = 'clang'
" let g:syntastic_java_checkers = [ 'javac' ]
" let g:syntastic_scala_checkers = [ 'scalac' ]
let g:syntastic_mode_map = {
\ "mode": "active",
\ "passive_filetypes": [ "perl" ] }
" --- Setup Mojolicious ---
let mojo_highlight_data = 1
" --- Whitespace ---
set nowrap
set tabstop=4 shiftwidth=4 expandtab
set backspace=indent,eol,start
set autoindent
set smarttab
autocmd FileType javascript setlocal tabstop=2 shiftwidth=2
autocmd FileType ruby setlocal tabstop=2 shiftwidth=2
autocmd FileType make setlocal nomodeline noexpandtab
autocmd FileType perl setlocal tabstop=2 shiftwidth=2
autocmd FileType php setlocal noexpandtab
autocmd FileType tex setlocal wrap linebreak
autocmd FileType text setlocal wrap linebreak
" --- Misc ---
set mouse=a
set hlsearch incsearch
set ignorecase smartcase
set ruler
set showcmd
" --- Load bepo remap ---
if !empty(glob('~/.vimrc.bepo'))
source ~/.vimrc.bepo
end
nnoremap <C-Left> :tabprevious<CR>
nnoremap <C-Right> :tabnext<CR>