-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
82 lines (68 loc) · 2.1 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
"pathogen
"syntastic
"molokai och hybrid colorschemes
"pretty-vim-python
"Flake8 python linter, install with python<version> -m pip install flake8
"To install pip on a new machine, you need epel repo. See guides online.
"For color, download guicolorscheme.vim and put it in .vim/colors and add set \
"t_Co=256 in this file
"Enable indenting for filetypes
filetype indent on
set t_Co=256
"execute pathogen#infect()
set number
set cursorline
"Lowercase searches is non-case senistive, upper case is case sensitive
set smartcase
set incsearch
"regex characters have the same meaning as in GNU grep
set magic
set history=700
let g:hybrid_custom_term_colors = 1
set background=dark
colorscheme hybrid
"disable syntastic on the statusline
let g:statline_syntastic = 1
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
highlight Comment cterm=bold
autocmd BufEnter *.py colorscheme molokai
".py
let g:syntastic_python_checkers = ['flake8']
au BufNewFile,BufRead *.py
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
\ set expandtab |
\ set autoindent |
\ set smarttab |
\ set textwidth=80 |
".js
let g:javascript_plugin_flow = 1
au BufNewFile,BufRead *.js,*.html,*.css
\ set tabstop=2 |
\ set softtabstop=2 |
\ set shiftwidth=2 |
\ set expandtab |
\ set autoindent |
".sh
au BufNewFile,BufRead *.sh
\ set tabstop=2 |
\ set softtabstop=2 |
\ set shiftwidth=2 |
\ set expandtab |
\ set autoindent |
"Statusline
set laststatus=2
set statusline =
set statusline +=col:\ %c "column
set statusline +=%4*\ %<%F%* "full path
set statusline +=%2*%m%* "modified flag
set statusline +=%1*%=%5l%* "current line
set statusline +=%2*/%L%* "total lines
set statusline +=%0*\ \ %m%r%w\ %P\ \ "Modified? Readonly? Top/bot.
set statusline +=%#warningmsg#
"set statusline +=%{SyntasticStatuslineFlag()}
set statusline +=%*