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