comment and whitespace plugin updates
This commit is contained in:
@@ -24,6 +24,8 @@ nnoremap <C-s> :w<CR>
|
|||||||
|
|
||||||
|
|
||||||
" Better tabbing
|
" Better tabbing
|
||||||
|
" When indenting, reselect previous selection
|
||||||
|
" if in visual mode
|
||||||
vnoremap < <gv
|
vnoremap < <gv
|
||||||
vnoremap > >gv
|
vnoremap > >gv
|
||||||
|
|
||||||
@@ -57,6 +59,11 @@ autocmd! User GoyoEnter Limelight
|
|||||||
autocmd! User GoyoLeave Limelight!
|
autocmd! User GoyoLeave Limelight!
|
||||||
|
|
||||||
|
|
||||||
|
" Strip whitespace
|
||||||
|
" <l>y - Remove all trailing whitespace
|
||||||
|
nnoremap <silent> <leader>y :StripWhitespace<cr>
|
||||||
|
|
||||||
|
|
||||||
" fzf
|
" fzf
|
||||||
" <l>p - Search files in current workdir
|
" <l>p - Search files in current workdir
|
||||||
" <l>P - Search files in $HOME
|
" <l>P - Search files in $HOME
|
||||||
@@ -80,9 +87,9 @@ nmap <silent> <leader>E :CocCommand explorer --reveal expand('<sfile>')<cr>
|
|||||||
|
|
||||||
|
|
||||||
" coc.nvim
|
" coc.nvim
|
||||||
" <l>c - Open command list
|
|
||||||
" Ctrl-n - Go to previous diagnostic
|
" Ctrl-n - Go to previous diagnostic
|
||||||
" Ctrl-p - Go to next diagnostic
|
" Ctrl-p - Go to next diagnostic
|
||||||
|
" <l>c - Open command list
|
||||||
" <l>d - Jump to definition of current symbol
|
" <l>d - Jump to definition of current symbol
|
||||||
" <l>r - Jump to references of current symbol
|
" <l>r - Jump to references of current symbol
|
||||||
" <l>j - Jump to implementation of current symbol
|
" <l>j - Jump to implementation of current symbol
|
||||||
@@ -91,20 +98,13 @@ nmap <silent> <leader>E :CocCommand explorer --reveal expand('<sfile>')<cr>
|
|||||||
" <l>k - Symbol renaming
|
" <l>k - Symbol renaming
|
||||||
nmap <silent> <C-n> <Plug>(coc-diagnostic-prev)
|
nmap <silent> <C-n> <Plug>(coc-diagnostic-prev)
|
||||||
nmap <silent> <C-p> <Plug>(coc-diagnostic-next)
|
nmap <silent> <C-p> <Plug>(coc-diagnostic-next)
|
||||||
" broken d
|
|
||||||
nmap <silent> <leader>d <Plug>(coc-definition)
|
nmap <silent> <leader>d <Plug>(coc-definition)
|
||||||
nmap <silent> <leader>r <Plug>(coc-references)
|
nmap <silent> <leader>r <Plug>(coc-references)
|
||||||
" broken j
|
|
||||||
nmap <silent> <leader>j <Plug>(coc-implementation)
|
nmap <silent> <leader>j <Plug>(coc-implementation)
|
||||||
nmap <silent> <leader>s :<C-u>CocList -I -N --top symbols<cr>
|
nmap <silent> <leader>s :<C-u>CocList -I -N --top symbols<cr>
|
||||||
nmap <silent> <leader>n <Plug>(coc-rename)
|
nmap <silent> <leader>n <Plug>(coc-rename)
|
||||||
nmap <silent> <leader>c :CocCommand<cr>
|
nmap <silent> <leader>c :CocCommand<cr>
|
||||||
|
|
||||||
" vimspector
|
|
||||||
" <l>D - Start debugger
|
|
||||||
nmap <silent> <leader>D :call vimspector#Launch()<cr>
|
|
||||||
|
|
||||||
|
|
||||||
" Search shorcuts
|
" Search shorcuts
|
||||||
" <l>h - Find and replace
|
" <l>h - Find and replace
|
||||||
" <l>/ - Clear highlighted search terms while preserving history
|
" <l>/ - Clear highlighted search terms while preserving history
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ Plug 'junegunn/rainbow_parentheses.vim'
|
|||||||
let g:rainbow_conf = {'guis': ['bold']}
|
let g:rainbow_conf = {'guis': ['bold']}
|
||||||
" }}}
|
" }}}
|
||||||
Plug 'unblevable/quick-scope'
|
Plug 'unblevable/quick-scope'
|
||||||
|
Plug 'ntpeters/vim-better-whitespace'
|
||||||
|
|
||||||
" better motion
|
" better motion
|
||||||
Plug 'tpope/vim-surround'
|
Plug 'tpope/vim-surround'
|
||||||
|
|||||||
Reference in New Issue
Block a user