-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
43 lines (34 loc) · 1.32 KB
/
vimrc
File metadata and controls
43 lines (34 loc) · 1.32 KB
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
if filereadable(join([$HOME, ".vimrc.gentoo"], "/"))
source ~/.vimrc.gentoo
endif
colo desert
set bg=dark
set modeline
syn on
filetype indent on
" inoremap ( ()<esc>i
" inoremap { {}<esc>i
" inoremap [ []<esc>i
" inoremap " ""<esc>i
"
" for latex
"iabbrev bi begin{itemize}
"iabbrev ei end{itemize}
au FileType tex setlocal linebreak
"au FileType python setlocal ts=8 sw=2 expandtab sts=2 sta
au FileType python setlocal list listchars=tab:»·,trail:·
au FileType pi setlocal ts=2 sw=2 expandtab sts=2 sta
au FileType pi setlocal list listchars=tab:»·,trail:·
au FileType borg setlocal ts=2 sw=2 expandtab sts=2 sta
au FileType borg setlocal list listchars=tab:»·,trail:·
au FileType ncl setlocal ts=2 sw=2 expandtab sts=2 sta
au FileType ncl setlocal list listchars=tab:»·,trail:·
au FileType haskell setlocal ts=8 sw=4 expandtab sts=4 sta
au FileType haskell setlocal list listchars=tab:»·,trail:·
" au FileType python set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
"
set colorcolumn=+1
"au BufRead,BufNewFile *.go setfiletype go
map <C-K> :ClangFormat<CR>
" map <C-S-I> :let g:clang_include_fixer_query_mode=0<cr>:py3f /usr/lib/clang-include-fixer/clang-include-fixer.py<cr>
" map <C-I> :let g:clang_include_fixer_query_mode=1<cr>:py3f /usr/lib/clang-include-fixer/clang-include-fixer.py<cr>