aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc17
1 files changed, 13 insertions, 4 deletions
diff --git a/.vimrc b/.vimrc
index 6b08d02..1fc7921 100644
--- a/.vimrc
+++ b/.vimrc
@@ -12,10 +12,17 @@ call plug#end()
12set encoding=utf8 spelllang=en_us laststatus=2 tabstop=4 shiftwidth=4 12set encoding=utf8 spelllang=en_us laststatus=2 tabstop=4 shiftwidth=4
13set number autoindent cursorline ignorecase hlsearch incsearch signcolumn=yes 13set number autoindent cursorline ignorecase hlsearch incsearch signcolumn=yes
14set hidden nowrap nobackup noswapfile noundofile autoread updatetime=300 14set hidden nowrap nobackup noswapfile noundofile autoread updatetime=300
15set backspace=indent,eol,start completeopt=menuone path+=** 15set backspace=indent,eol,start completeopt=menuone path+=**
16set foldmethod=syntax foldlevel=99 foldopen= lazyredraw
16set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/vendor,tags,*.o,*.a,*.so 17set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/vendor,tags,*.o,*.a,*.so
18set grepprg=rg\ --vimgrep\ --no-heading\ --smart-case
17colorscheme wildcharm 19colorscheme wildcharm
18 20
21if executable('rg')
22 set grepprg=rg\ --vimgrep\ --smart-case
23 set grepformat=%f:%l:%c:%m
24endif
25
19nnoremap <C-Right> :bnext<CR> 26nnoremap <C-Right> :bnext<CR>
20nnoremap <C-Left> :bprevious<CR> 27nnoremap <C-Left> :bprevious<CR>
21nnoremap <C-q> :copen<CR> 28nnoremap <C-q> :copen<CR>
@@ -28,15 +35,17 @@ nnoremap <Leader>d :bd<CR>
28nnoremap <leader>t :term<CR> 35nnoremap <leader>t :term<CR>
29nnoremap <Leader>q :nohlsearch<CR> 36nnoremap <Leader>q :nohlsearch<CR>
30nnoremap <Leader>e :ALEPopulateQuickfix<CR>:sleep 100m<CR>:copen<CR> 37nnoremap <Leader>e :ALEPopulateQuickfix<CR>:sleep 100m<CR>:copen<CR>
31nnoremap <leader>w :vimgrep /<C-r><C-w>/gj **/*<CR>:copenx<CR> 38" nnoremap <leader>w :vimgrep /<C-r><C-w>/gj **/*<CR>:copen<CR>
39
40nnoremap <leader>w :silent! grep! <cword> \| cwindow \| redraw!<CR>
41
32 42
33nmap <silent> gr :ALEFindReferences -quickfix<CR>:sleep 100m<CR>:copen<CR> 43nmap <silent> gr :ALEFindReferences -quickfix<CR>:sleep 100m<CR>:copen<CR>
34nmap <silent> gd :ALEGoToDefinition<CR> 44nmap <silent> gd :ALEGoToDefinition<CR>
35nmap <silent> re :ALERename<CR> 45nmap <silent> re :ALERename<CR>
36 46
37" let g:ctrlp_use_caching = 0 47let g:ctrlp_use_caching = 0
38" let g:ctrlp_working_path_mode = '' 48" let g:ctrlp_working_path_mode = ''
39
40let g:ctrlp_working_path_mode = 'ra' 49let g:ctrlp_working_path_mode = 'ra'
41let g:ale_hover_to_floating_preview = 1 50let g:ale_hover_to_floating_preview = 1
42let g:ale_detail_to_floating_preview = 1 51let g:ale_detail_to_floating_preview = 1