-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc.after
89 lines (66 loc) · 1.93 KB
/
.vimrc.after
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
autocmd filetype crontab setlocal nobackup nowritebackup
" colorscheme Tomorrow-Night-Bright
colorscheme vividchalk
:highlight Comment ctermbg=none ctermfg=darkcyan
:highlight ColorColumn ctermbg=235 guibg=#2c2d27
"refresh all buffers
noremap <Leader>u :bufdo e!<ENTER>
noremap <Leader>B :bufdo<space>
"Setup code folding
set foldmethod=indent
set foldnestmax=10
set nofoldenable
set foldlevel=1
"Set key waiting time
set timeoutlen=200
"Set the column length
" let &colorcolumn="100"
let &colorcolumn="100,".join(range(200,999),",")
"Set autocomplete for Vim commands
set wildmenu
"Highlight matched word
let g:ackhighlight = 1
let g:SuperTabCrMapping=1
"Setup ctags file
set tags=./tags;
"Ignore warning on angular directive
let g:syntastic_html_tidy_ignore_errors=[" proprietary attribute \"ng-"]
"Disable arrow keys
map <Left> <Nop>
map <Right> <Nop>
map <Up> <Nop>
map <Down> <Nop>
"Show hidden file
let NERDTreeShowHidden=1
let g:ctrlp_show_hidden = 1
"Ignore files - CtrlP
set wildignore+=*/tmp/*,*.so,*.swp,*.zip
unlet g:ctrlp_custom_ignore
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git\|dist'
"Add extra space on comment line
let NERDSpaceDelims=1
" move cursor to last position when open files
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif"`'")"'")
" Enable matchit
if !exists('g:loaded_matchit')
runtime macros/matchit.vim
endif
" disable cursor line one insert mode
autocmd WinEnter * set cursorline
autocmd WinLeave * set nocursorline
autocmd InsertEnter * set nocursorline
autocmd InsertLeave * set cursorline
" Navigate previous/next command lines using arrow match
cnoremap <c-n> <down>
cnoremap <c-p> <up>
" default was 500
let g:gitgutter_max_signs = 700
" press 'r' in visual mode to replace current selection with yark in the registry
vmap r "_dP"
" new tab
noremap tn :tabnew<CR>
" disable cursor line one insert mode
noremap td :tabclose<CR>