forked from chadxz/.vim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
51 lines (41 loc) · 1.21 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
execute pathogen#infect()
call pathogen#helptags()
syntax enable
filetype plugin indent on
" Use Vim settings, rather than Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" tab stuff
set et
set tabstop=4
set shiftwidth=4
set shiftround
set backspace=indent,eol,start " backspace behaves like a normal editor
set foldmethod=indent " fold based on indent
set foldnestmax=10 " deepest fold is 10 levels
set nofoldenable " dont fold by default
set foldlevel=1 " i have no idea what this does
set guifont=Monaco:h14
" color scheme
set background=dark
let g:solarized_termcolors=256
let g:solarized_termtrans=1
colorscheme solarized
let g:airline_theme='solarized'
" more natural splitting
set splitbelow
set splitright
set laststatus=2 " display status line always
set incsearch " enable incremental search
set hlsearch " enable highlight search term
" less annoying split navigation
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" dont save .netrwhist history
let g:netrw_dirhistmax=0
" show column where text should be wrapped
set colorcolumn=+1
" trim trailing whitespace
autocmd BufWritePre * :%s/\s\+$//e