|
diff --git a/.vimrc b/.vimrc
|
| ... |
| 2 |
filetype plugin on |
2 |
filetype plugin on |
| 3 |
syntax on |
3 |
syntax on |
| 4 |
|
4 |
|
|
|
5 |
call plug#begin() |
|
|
6 |
Plug 'tpope/vim-commentary' |
|
|
7 |
Plug 'ctrlpvim/ctrlp.vim' |
|
|
8 |
Plug 'dense-analysis/ale' |
|
|
9 |
Plug 'airblade/vim-gitgutter' |
|
|
10 |
Plug 'mitjafelicijan/sniper.vim' |
|
|
11 |
call plug#end() |
|
|
12 |
|
| 5 |
set encoding=utf8 spelllang=en_us laststatus=2 tabstop=4 shiftwidth=4 |
13 |
set encoding=utf8 spelllang=en_us laststatus=2 tabstop=4 shiftwidth=4 |
| 6 |
set number autoindent cursorline ignorecase hlsearch incsearch signcolumn=yes |
14 |
set number autoindent cursorline ignorecase hlsearch incsearch signcolumn=yes |
| 7 |
set hidden nowrap nobackup noswapfile noundofile autoread updatetime=100 |
15 |
set hidden nowrap nobackup noswapfile noundofile autoread updatetime=100 |
| ... |
| 13 |
set background=dark |
21 |
set background=dark |
| 14 |
colorscheme wildcharm |
22 |
colorscheme wildcharm |
| 15 |
|
23 |
|
|
|
24 |
if executable('rg') |
|
|
25 |
set grepprg=rg\ --vimgrep\ --no-heading\ --smart-case |
|
|
26 |
set grepformat=%f:%l:%c:%m |
|
|
27 |
endif |
|
|
28 |
|
| 16 |
nnoremap <C-Right> :bnext<CR> |
29 |
nnoremap <C-Right> :bnext<CR> |
| 17 |
nnoremap <C-Left> :bprevious<CR> |
30 |
nnoremap <C-Left> :bprevious<CR> |
| 18 |
nnoremap <C-q> :copen<CR> |
31 |
nnoremap <C-q> :copen<CR> |
| 19 |
nnoremap <C-b> :CtrlPBuffer<CR> |
32 |
nnoremap <C-b> :CtrlPBuffer<CR> |
| 20 |
nnoremap <Leader>d :bd!<CR> |
33 |
nnoremap <Leader>d :bd!<CR> |
| 21 |
nnoremap <Leader>q :nohlsearch<CR> |
34 |
nnoremap <Leader>q :nohlsearch<CR> |
| 22 |
nnoremap <leader>w :silent! grep! <cword> \| cwindow \| redraw!<CR> |
35 |
nnoremap <leader>w :silent! grep <cword> <Bar> cwindow <Bar> redraw!<CR> |
| 23 |
|
36 |
|
| 24 |
nnoremap <C-k> :ALEHover<CR> |
37 |
nnoremap <C-k> :ALEHover<CR> |
| 25 |
nnoremap <C-j> :ALEDetail<CR> |
38 |
nnoremap <C-j> :ALEDetail<CR> |
| 26 |
nmap <silent> gr :ALEFindReferences -quickfix<CR>:sleep 100m<CR>:copen<CR> |
39 |
nmap <silent> gr :ALEFindReferences -quickfix<CR>:sleep 100m<CR>:copen<CR> |
| 27 |
nmap <silent> gd :ALEGoToDefinition<CR> |
40 |
nmap <silent> gd :ALEGoToDefinition<CR> |
| 28 |
nmap <silent> re :ALERename<CR> |
41 |
nmap <silent> re :ALERename<CR> |
|
|
42 |
nnoremap <C-Up> :ALEPrevious<CR> |
|
|
43 |
nnoremap <C-Down> :ALENext<CR> |
| 29 |
imap <C-n> <Plug>(ale_complete) |
44 |
imap <C-n> <Plug>(ale_complete) |
| 30 |
|
45 |
|
| 31 |
let g:ctrlp_use_caching = 0 |
46 |
let g:ctrlp_use_caching = 0 |
| ... |