-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
59 lines (42 loc) · 1.12 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
" turn on syntax colorings
if has("syntax")
syntax on
endif
" hilight word when searching
set hlsearch
" map W and Q
command WQ wq
command Wq wq
command W w
command Q q
" set tab size to 4 spaces
set tabstop=4
set shiftwidth=4
set expandtab
" set width marker to show 120 character limit
"set colorcolumn=120
" case insensitive search in vim
set ignorecase
" show line numbers
set number
" show full file path on control-G with buffer info
nnoremap <C-G> 2<C-G>
" remove line numbers and signify disable, vcinfo
command Copymode execute "set nu! | SignifyDisable"
" add shortcut for taglist
nnoremap <silent> <F8> :TagbarToggle<CR>
" use tjump instead of tselect/tag
" use c-], if only one entry, jump to it
" if more, show list
nnoremap <c-]> g<c-]>
vnoremap <c-]> g<c-]>
nnoremap g<c-]> <c-]>
vnoremap g<c-]> <c-]>
set encoding=utf-8
" smart indent
set smartindent
set autoindent
" search text using s command with shortcut ss
" | is for running multiple commands, have to escape using <bar> when using in map
nnoremap ss :silent ! s <cword> <CR> <bar> :quit <CR>
let g:hexmode_patterns = '*.bin,*.exe,*.dat,*.o'