diff options
Diffstat (limited to '.vimrc')
| -rw-r--r-- | .vimrc | 12 |
1 files changed, 7 insertions, 5 deletions
| @@ -3,13 +3,14 @@ filetype plugin on | |||
| 3 | 3 | ||
| 4 | call plug#begin() | 4 | call plug#begin() |
| 5 | Plug 'tpope/vim-commentary' | 5 | Plug 'tpope/vim-commentary' |
| 6 | Plug 'tpope/vim-fugitive' | ||
| 6 | Plug 'mitjafelicijan/sniper.vim' | 7 | Plug 'mitjafelicijan/sniper.vim' |
| 7 | Plug 'ctrlpvim/ctrlp.vim' | 8 | Plug 'ctrlpvim/ctrlp.vim' |
| 8 | Plug 'dense-analysis/ale' | 9 | Plug 'dense-analysis/ale' |
| 9 | call plug#end() | 10 | call plug#end() |
| 10 | 11 | ||
| 11 | 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 |
| 12 | set number autoindent cursorline ignorecase hlsearch incsearch | 13 | set number autoindent cursorline ignorecase hlsearch incsearch signcolumn=yes |
| 13 | set hidden nowrap nobackup noswapfile noundofile autoread updatetime=300 | 14 | set hidden nowrap nobackup noswapfile noundofile autoread updatetime=300 |
| 14 | set backspace=indent,eol,start completeopt=menuone | 15 | set backspace=indent,eol,start completeopt=menuone |
| 15 | set path+=** wildignore+=tags,*.o,*.a,*.so | 16 | set path+=** wildignore+=tags,*.o,*.a,*.so |
| @@ -17,16 +18,17 @@ colorscheme wildcharm | |||
| 17 | 18 | ||
| 18 | nnoremap <C-Right> :bnext<CR> | 19 | nnoremap <C-Right> :bnext<CR> |
| 19 | nnoremap <C-Left> :bprevious<CR> | 20 | nnoremap <C-Left> :bprevious<CR> |
| 20 | nnoremap <C-q> :CtrlPQuickfix<CR> | 21 | nnoremap <C-q> :copen<CR> |
| 21 | nnoremap <C-b> :CtrlPBuffer<CR> | 22 | nnoremap <C-b> :CtrlPBuffer<CR> |
| 22 | nnoremap <C-k> :ALEHover<CR> | 23 | nnoremap <C-k> :ALEHover<CR> |
| 23 | nnoremap <C-j> :ALEDetail<CR> | 24 | nnoremap <C-j> :ALEDetail<CR> |
| 24 | nnoremap <Leader>d :bd<CR> | 25 | nnoremap <Leader>d :bd<CR> |
| 26 | nnoremap <leader>t :term<CR> | ||
| 25 | nnoremap <Leader>q :nohlsearch<CR> | 27 | nnoremap <Leader>q :nohlsearch<CR> |
| 26 | nnoremap <Leader>e :ALEPopulateQuickfix<CR>:sleep 100m<CR>:CtrlPQuickfix<CR> | 28 | nnoremap <Leader>e :ALEPopulateQuickfix<CR>:sleep 100m<CR>:copen<CR> |
| 27 | nnoremap <leader>w :vimgrep /<C-r><C-w>/gj **/*<CR>:CtrlPQuickfix<CR> | 29 | nnoremap <leader>w :vimgrep /<C-r><C-w>/gj **/*<CR>:copenx<CR> |
| 28 | 30 | ||
| 29 | nmap <silent> gr :ALEFindReferences -quickfix<CR>:sleep 100m<CR>:CtrlPQuickfix<CR> | 31 | nmap <silent> gr :ALEFindReferences -quickfix<CR>:sleep 100m<CR>:copen<CR> |
| 30 | nmap <silent> gd :ALEGoToDefinition<CR> | 32 | nmap <silent> gd :ALEGoToDefinition<CR> |
| 31 | nmap <silent> re :ALERename<CR> | 33 | nmap <silent> re :ALERename<CR> |
| 32 | 34 | ||
