-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
90 lines (70 loc) · 1.68 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
84
85
86
87
88
89
90
set nocompatible
" Get rid of working directory clutter
set backupdir=~/.vim/.backup//
set directory=~/.vim/.backup//
filetype plugin indent on
syntax on
let g:c_syntax_for_h = 1
" Unicode
if has("multi_byte")
if &termencoding == ""
let &termencoding = &encoding
endif
set encoding=utf-8
setglobal fileencoding=utf-8
set fileencodings=ucs-bom,utf-8,latin1
endif
set statusline=%#Special#%f%#Normal#\ %M%R%H%W%=%#Special#%P
set laststatus=2
set virtualedit=onemore
set formatoptions=
" Allow colors
set t_Co=256
set t_ut=
" If the Vim binary has no GUI support, shut up CSApprox
if !has("gui_running")
let g:CSApprox_verbose_level = 0
endif
syntax enable
colorscheme lucius
LuciusLight
set fillchars+=vert:\
set number
set ignorecase
set smartcase
set incsearch
set autoindent
set mouse=a
set ttymouse=xterm2
set tabstop=2
set shiftwidth=2
set expandtab
set cursorline
set cursorcolumn
set colorcolumn=80
set completeopt=menu,menuone
set pastetoggle=<F12>
set autochdir
set list
set listchars=tab:→\ ,trail:·
mapclear
mapclear!
set tags=tags;
let g:ycm_collect_identifiers_from_tags_files = 1
set nocp
filetype plugin on
filetype indent off
" Taglist
autocmd BufWritePost *.c,*.h :TlistUpdate
nnoremap <silent> <F8> :TlistToggle<CR>
" Vala shit
autocmd BufRead *.vala set efm=%f:%l.%c-%[%^:]%#:\ %t%[%^:]%#:\ %m
autocmd BufRead *.vapi set efm=%f:%l.%c-%[%^:]%#:\ %t%[%^:]%#:\ %m
au BufRead,BufNewFile *.vala setfiletype vala
au BufRead,BufNewFile *.vapi setfiletype vala
" JavaScript shit
hi link javaScriptGlobal NONE
hi link javaScriptMember NONE
hi link javaScriptMessage NONE
" Markdown shit
au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn} setfiletype mkd