-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
42 lines (35 loc) · 1.37 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
set encoding=UTF-8
syntax on " turn on syntax highlight
set ai " auto indent
set number " set line number
set tabstop=4 " a tab = 4 spaces
set expandtab " no tab, only spaces
set ruler " pretty ruler, flag long lines
set laststatus=2
set dir=$HOME/.vim/tmp " tmp dir to manage all the swap files
set bg=dark " dark background please
" pathogen options - https://github.com/tpope/vim-pathogen/
execute pathogen#infect()
filetype plugin indent on
" hexmode options - https://github.com/fidian/hexmode
let g:hexmode_patterns='*.bin,*.dat,*.hex,*.x86,*.x64'
let g:hexmode_xxd_options='-g 1'
colorscheme onedark
let g:lightline = {
\ 'colorscheme': 'onedark',
\ }
" create a function to highlight specific color...
highlight ColorColumn ctermbg=red
" set color at location #80
call matchadd('ColorColumn', '\%79v', 100)
call matchadd('ColorColumn', '\%99v', 100)
call matchadd('ColorColumn', '\%119v', 100)
autocmd BufWritePre * :silent %s/\s\+$//e
"autocmd BufWritePre * :silent %s/\t/ /e
syn keyword cTodo contained TODO XXX FIXME
augroup HighlightTodo
autocmd!
autocmd WinEnter,VimEnter * :silent! call matchadd('Todo', 'TODO', -1)
autocmd WinEnter,VimEnter * :silent! call matchadd('Todo', 'XXX', -1)
autocmd WinEnter,VimEnter * :silent! call matchadd('Todo', 'FIXME', -1)
augroup END