-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_vimrc
executable file
·83 lines (73 loc) · 2.12 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
" Pathogen
call pathogen#infect()
"
syntax on
set modeline
set number
set ruler
set background=dark
set sw=4 ts=4 sts=4 et
set incsearch
" check that we have solarized theme installed
if !empty(globpath(&rtp, 'colors/solarized.vim'))
set t_Co=256
let g:solarized_termtrans=1
let g:solarized_termcolors=256
let g:solarized_visibility="low"
"let g:solarized_bold=1
let g:solarized_underline=1
"let g:solarized_italic=1
colorscheme solarized
endif
" syntax check
if !empty(globpath(&rtp, 'plugin/syntastic.vim'))
let g:syntastic_python_checkers = ['pyflakes', 'pep8', 'pylint']
let g:syntastic_ruby_checkers = ['rubocop']
endif
" vim notes
if !empty(globpath(&rtp, 'plugin/notes.vim'))
let g:notes_directories = ['~/Documents/Notes', '~/Dropbox/Shared Notes']
endif
" fuzzy search
if !empty(globpath(&rtp, 'plugin/ctrlp.vim'))
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn)$',
\ 'file': '\v\.(lo|exe|so|dll|o)$',
\ }
endif
" airline
if !empty(globpath(&rtp, 'plugin/airline.vim'))
set laststatus=2
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline_theme='powerlineish'
endif
" vim-instant-markdown
if !empty(globpath(&rtp, 'after/ftplugin/markdown/instant-markdown.vim'))
" Do not autoload, use :InstantMarkdownPreview instead
let g:instant_markdown_autostart = 0
endif
" finally, import local stuff if any
if filereadable(expand("~/.vimrc.local"))
source ~/.vimrc.local
endif
" Underline current line and add 80 char delimiter
if v:version > 700
set cursorline
hi CursorLine cterm=NONE,underline ctermbg=NONE
if exists("+colorcolumn")
set colorcolumn=80
end
hi! link CursorColumn CursorLine
endif
" Highlight trailing spaces
highlight ExtraWhitespace ctermbg=red guibg=red
autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/
" GO files
au FileType go set noet
" spaces indentation for YAML files
au FileType yaml setl sw=2 ts=2 sts=2 et
" spaces indentation for JS files
au FileType js setl sw=2 ts=2 sts=2 et
" spaces indentation for Ruby files
au FileType ruby setl sw=2 ts=2 sts=2 et