/
vimrc
48 lines (38 loc) · 1.05 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
" Minimal .vimrc
" auto reload vimrc when saved
autocmd BufWritePost .vimrc source %
" http://superuser.com/questions/194933/vim-7-3-with-unicode-on-ubuntu
set encoding=utf-8
set t_Co=256
set number
" use soft tabs (spaces)
set tabstop=2
set shiftwidth=2
set expandtab
" turn on search hightlighting
set hlsearch
" Press Space to turn off highlighting and clear any message already displayed.
:nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>
" use visible fold markers
set foldmethod=marker
call pathogen#infect()
syntax enable
set background=dark
let g:solarized_termcolors=256
colorscheme solarized
filetype plugin indent on
" column width marker
set textwidth=80
set cc=+1
" :set cc=+1,+2,+3
hi ColorColumn ctermbg=red guibg=red
" this allows back space to work as expected when in insert mode
" set backspace=indent,eol,start
" set wrap! "turns of word wrapping
" enables autocomplete
let g:neocomplcache_enable_at_startup = 1
" GitHub Flavoured Markdown
augroup markdown
au!
au BufNewFile,BufRead *.md,*.markdown setlocal filetype=ghmarkdown
augroup END