-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
48 lines (34 loc) · 904 Bytes
/
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
" Turn on syntax highlighting
syntax on
" Set colorscheme
colorscheme evening
" Display line numbers "
set number
" Underline the current line
set cursorline
set wildmenu
" Tabs count as 2 spaces
set tabstop=2
set softtabstop=2
set expandtab
" Keep indent of current line, when shifting to newline
set autoindent
" Show a vertical column to mark 80 chars
set colorcolumn=80
" Wrap words after 80 chars
set tw=80
" Match ({[]})
set showmatch
" Search while chars are entered
set incsearch
" Highlight matches
set hlsearch
" Load language specific settings
filetype plugin on
" Load skeleton files based on file extension
autocmd BufNewFile *.c 0r ~/.vim/skeleton.c
autocmd BufNewFile *.html 0r ~/.vim/skeleton.html
autocmd BufNewFile *.java 0r ~/.vim/skeleton.java
autocmd BufNewFile *.tex 0r ~/.vim/skeleton.tex
highlight TrailingSpace ctermbg=red guibg=red
match TrailingSpace /\s\+$/