diff options
Diffstat (limited to 'plug-config')
-rw-r--r-- | plug-config/coc.vim | 2 | ||||
-rw-r--r-- | plug-config/commentary.vim | 3 | ||||
-rw-r--r-- | plug-config/fzf.vim | 1 | ||||
-rw-r--r-- | plug-config/nerd-commenter.vim | 28 | ||||
-rw-r--r-- | plug-config/rnvimr.vim | 2 | ||||
-rw-r--r-- | plug-config/signify.vim | 8 |
6 files changed, 35 insertions, 9 deletions
diff --git a/plug-config/coc.vim b/plug-config/coc.vim index 428230d1..647bab73 100644 --- a/plug-config/coc.vim +++ b/plug-config/coc.vim @@ -129,6 +129,6 @@ let g:coc_explorer_global_presets = { \ } \ } "nmap <silent> <space>e :CocCommand explorer<CR> -nnoremap <silent> <leader>e :CocCommand explorer<CR> +" nnoremap <silent> <leader>e :CocCommand explorer<CR> " nmap <space>f :CocCommand explorer --preset floatingRightside<CR> autocmd BufEnter * if (winnr("$") == 1 && &filetype == 'coc-explorer') | q | endif diff --git a/plug-config/commentary.vim b/plug-config/commentary.vim deleted file mode 100644 index 8bf021d8..00000000 --- a/plug-config/commentary.vim +++ /dev/null @@ -1,3 +0,0 @@ - -nnoremap <space>/ :Commentary<CR> -vnoremap <space>/ :Commentary<CR> diff --git a/plug-config/fzf.vim b/plug-config/fzf.vim index c715dab5..f02d279c 100644 --- a/plug-config/fzf.vim +++ b/plug-config/fzf.vim @@ -9,6 +9,7 @@ let g:fzf_action = { " previous-history instead of down and up. If you don't like the change, " explicitly bind the keys to down and up in your $FZF_DEFAULT_OPTS. let g:fzf_history_dir = '~/.local/share/fzf-history' +let g:fzf_buffers_jump = 1 " map <C-f> :Files<CR> " map <leader>b :Buffers<CR> diff --git a/plug-config/nerd-commenter.vim b/plug-config/nerd-commenter.vim new file mode 100644 index 00000000..8b054e34 --- /dev/null +++ b/plug-config/nerd-commenter.vim @@ -0,0 +1,28 @@ + +" nnoremap <space>/ :Commentary<CR> +" vnoremap <space>/ :Commentary<CR> + +let g:NERDCreateDefaultMappings = 0 +" Add spaces after comment delimiters by default +let g:NERDSpaceDelims = 1 + +" Use compact syntax for prettified multi-line comments +let g:NERDCompactSexyComs = 1 + +" Align line-wise comment delimiters flush left instead of following code indentation +let g:NERDDefaultAlign = 'left' + +" Set a language to use its alternate delimiters by default +let g:NERDAltDelims_java = 1 + +" Add your own custom formats or override the defaults +let g:NERDCustomDelimiters = { 'c': { 'left': '/**','right': '*/' } } + +" Allow commenting and inverting empty lines (useful when commenting a region) +let g:NERDCommentEmptyLines = 1 + +" Enable trimming of trailing whitespace when uncommenting +let g:NERDTrimTrailingWhitespace = 1 + +" Enable NERDCommenterToggle to check all selected lines is commented or not +let g:NERDToggleCheckAllLines = 1 diff --git a/plug-config/rnvimr.vim b/plug-config/rnvimr.vim index 86582c7c..53f468e8 100644 --- a/plug-config/rnvimr.vim +++ b/plug-config/rnvimr.vim @@ -9,7 +9,7 @@ let g:rnvimr_pick_enable = 1 " Make Neovim to wipe the buffers corresponding to the files deleted by Ranger let g:rnvimr_bw_enable = 1 -nmap <leader>r :RnvimrToggle<CR> +" nmap <leader>r :RnvimrToggle<CR> let g:rnvimr_ranger_cmd = 'ranger --cmd="set column_ratios 1,1" \ --cmd="set draw_borders separators"' diff --git a/plug-config/signify.vim b/plug-config/signify.vim index 5206a650..6e04012b 100644 --- a/plug-config/signify.vim +++ b/plug-config/signify.vim @@ -15,10 +15,10 @@ let g:signify_sign_show_text = 1 " Jump though hunks -nmap <leader>j <plug>(signify-next-hunk) -nmap <leader>k <plug>(signify-prev-hunk) -nmap <leader>gJ 9999<leader>gj -nmap <leader>gK 9999<leader>gk +" nmap <leader>j <plug>(signify-next-hunk) +" nmap <leader>k <plug>(signify-prev-hunk) +" nmap <leader>gJ 9999<leader>gj +" nmap <leader>gK 9999<leader>gk " If you like colors instead |