-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
44 lines (37 loc) · 1.27 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
" Based on http://mislav.uniqpath.com/2011/12/vim-revisited/
set nocompatible " choose no compatibility with legacy vi
"" Pathogen
execute pathogen#infect()
syntax enable
set encoding=utf-8
set showcmd " display incomplete commands
filetype plugin indent on " load file type plugins + indentation
set wrap linebreak nolist
set textwidth=0
set wrapmargin=0
"" Whitespace
set tabstop=4 shiftwidth=4
set expandtab " use spaces, not tabs
set softtabstop=4 " unify
set backspace=indent,eol,start " backspace through everything in insert mode
" Use better-whitespace to auto trim trailing whitespace on save
autocmd FileType * autocmd BufWritePre <buffer> StripWhitespace
"" Searching
set hlsearch " highlight matches
set incsearch " incremental searching
set ignorecase " searches are case insensitive...
set smartcase " ... unless they contain at least one capital letter
"" Colours
if has('gui_running')
set background=light
else
set background=dark
endif
colorscheme solarized
set guifont=Source\ Code\ Pro:h12
" vim-powerline
set laststatus=2
let $LOCALFILE=expand("~/.vimrc_local")
if filereadable($LOCALFILE)
source $LOCALFILE
endif