-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
52 lines (42 loc) · 1.57 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
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
" --------- fold stuff ---------------------------------------------------
set foldmethod=syntax
hi Folded ctermfg=152
hi Folded ctermbg=58
"hi Fodled ctermbg=52
nnoremap <space> za
vnoremap <space> zf
" 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