blob: 7cb5f6bb79ebf21239a8fa2d97a40e12da39d1ec (
plain)
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
|
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
autocmd BufWinLeave * call clearmatches()
filetype plugin on
" Fold
set foldmethod=syntax
set foldlevelstart=99
" HighLight search and map CarrierReturn to remove highlight
set hlsearch
nnoremap <CR> :noh<CR><CR>
" Understand .md as markdown
autocmd BufNewFile,BufRead *.md set ft=markdown
" Get 256 colors
if $TERM == "xterm-256color"
set t_Co=256
endif
" Ingnore Case in search
set ignorecase
|