Phase out gitgutter
7b60308ae05740a2fdbd80b46a32b3e4866fc10c
1 parent
4117747c
.vimrc
+6 -13
| 77 | 77 | set ttyfast |
|
| 78 | 78 | set t_Co=256 |
|
| 79 | 79 | endif |
|
| 80 | 80 | ||
| 81 | 81 | let mapleader = "\<Space>" |
|
| 82 | - | let g:gitgutter_sign_column_always = 1 |
|
| 83 | - | let g:gitgutter_grep_command = 'ag -g' |
|
| 84 | - | let g:gitgutter_map_keys = 0 |
|
| 85 | - | let g:gitgutter_eager = 1 |
|
| 86 | - | let g:gitgutter_realtime = 0 |
|
| 87 | 82 | ||
| 88 | 83 | let $NVIM_TUI_ENABLE_CURSOR_SHAPE=1 |
|
| 89 | 84 | ||
| 90 | 85 | " Deoplete (autocomplete) |
|
| 91 | 86 | if has("nvim") |
| 178 | 173 | ||
| 179 | 174 | nnoremap <Leader>n :cnext<CR> |
|
| 180 | 175 | nnoremap <Leader>p :cprev<CR> |
|
| 181 | 176 | ||
| 182 | 177 | " Git |
|
| 183 | - | nnoremap <Leader>gg :GitGutterToggle<CR> |
|
| 184 | - | nnoremap <Backspace> :GitGutterUndoHunk<CR> |
|
| 185 | - | nnoremap <Return> :GitGutterStageHunk<CR> |
|
| 178 | + | cnoreabbrev gw Gwrite |
|
| 179 | + | cnoreabbrev gwa Git add -u |
|
| 180 | + | cnoreabbrev gc Gcommit -v |
|
| 181 | + | cnoreabbrev gca gwa <Bar> gc |
|
| 186 | 182 | ||
| 187 | - | cnoreabbrev gw Gwrite |
|
| 188 | - | cnoreabbrev gc Gcommit -v |
|
| 189 | - | cnoreabbrev gn GitGutterNextHunk |
|
| 190 | - | cnoreabbrev gp GitGutterPrevHunk |
|
| 183 | + | autocmd BufRead fugitive\:* xnoremap <buffer> dp :diffput<CR> |
|
| 184 | + | autocmd BufRead fugitive\:* xnoremap <buffer> do :diffget<CR> |
|
| 191 | 185 | ||
| 192 | 186 | " Select recently pasted text |
|
| 193 | 187 | nnoremap <leader>p V`] |
|
| 194 | 188 | ||
| 195 | 189 | " Switch buffers easily |
| 262 | 256 | return '' |
|
| 263 | 257 | endfunction |
|
| 264 | 258 | ||
| 265 | 259 | call plug#begin() |
|
| 266 | 260 | ||
| 267 | - | Plug 'airblade/vim-gitgutter' |
|
| 268 | 261 | Plug 'tpope/vim-fugitive' |
|
| 269 | 262 | Plug 'tpope/vim-commentary' |
|
| 270 | 263 | Plug 'mileszs/ack.vim' |
|
| 271 | 264 | Plug 'eagletmt/neco-ghc' |
|
| 272 | 265 | Plug 'shougo/deoplete.nvim' |