From db80027544fdb56160b2e4bef16a98bdc1da76c8 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 10 May 2020 19:23:44 -0400 Subject: updates --- plug-config/coc.vim | 2 +- plug-config/commentary.vim | 3 --- plug-config/fzf.vim | 1 + plug-config/nerd-commenter.vim | 28 ++++++++++++++++++++++++++++ plug-config/rnvimr.vim | 2 +- plug-config/signify.vim | 8 ++++---- 6 files changed, 35 insertions(+), 9 deletions(-) delete mode 100644 plug-config/commentary.vim create mode 100644 plug-config/nerd-commenter.vim (limited to 'plug-config') 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 e :CocCommand explorer -nnoremap e :CocCommand explorer +" nnoremap e :CocCommand explorer " nmap f :CocCommand explorer --preset floatingRightside 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 / :Commentary -vnoremap / :Commentary 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 :Files " map b :Buffers 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 / :Commentary +" vnoremap / :Commentary + +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 r :RnvimrToggle +" nmap r :RnvimrToggle 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 j (signify-next-hunk) -nmap k (signify-prev-hunk) -nmap gJ 9999gj -nmap gK 9999gk +" nmap j (signify-next-hunk) +" nmap k (signify-prev-hunk) +" nmap gJ 9999gj +" nmap gK 9999gk " If you like colors instead -- cgit v1.2.3