-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
95 lines (85 loc) · 1.76 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
91
92
93
94
95
"
" @file Vim config
"
" Some parts if this file are
" @copyright (c) 2008-2010, Christoph Kappel <unexist@dorfelite.net>
" @version $Id: .vimrc,v 267 2010/10/28 13:51:45 unexist $
"
" Options
set nocompatible
set backspace=indent,eol,start
set history=50
set ruler
set showcmd
set hlsearch
set incsearch
set ignorecase
set smartcase
set nowrap
set sts=2
set ts=2
set bs=2
set sw=2
set ch=1
set scrolloff=2
set noexpandtab
set showmatch
set showmode
set shortmess=aIT
set foldmethod=marker
set encoding=utf-8
set fileencoding=utf-8
set autoindent
set smartindent
set number
set lazyredraw
set wildmode=list:longest,full
set wildignore=*.o,*.swp
set nobackup
set autowriteall
set noswapfile
set dy+=lastline
set dy+=uhex
set rulerformat=%l/%L(%p%%),%c
set grepprg=grep\ -nH\ $*
set listchars=trail:-,tab:→-,eol:⏎
set ttyfast
set nomodeline
let g:tex_flavor = "lualatex"
let g:rainbow_active = 1
" inoremap { {}<Left>
" inoremap {<CR> {<CR>}<Esc>O
" inoremap {{ {
" inoremap {} {}
set list
au FileType python set list et sts=4 ts=4 sw=4
au FileType tex set list et sts=4 ts=4 sw=4
au BufNewFile,BufRead /*.rasi setf css
syntax on
set t_Co=256
let &t_AB="\e[48;5;%dm"
let &t_AF="\e[38;5;%dm"
"colorscheme kalisi
colorscheme selenized
set background=dark
" Commandline
if has("cmdline_info")
set ruler
set showcmd
endif
" Filetype
if has("autocmd")
filetype plugin on
filetype indent off
endif
" Match
match ErrorMsg '\%>72v.\+'
" forgot sudo? tee has you covered, mate :)
cmap w!! %!sudo tee > /dev/null %
" requires ctags and the taglist plugin
" open/close traglist window
let Tlist_Ctags_Cmd = "/usr/bin/ctags"
let Tlist_WinWidth = 30
map <F4> :TlistToggle<cr>
" build taglist for current pwd
map <F8> :!/usr/bin/ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR>