From 83041c17533c6c0ef2c2ac999f294834ba53aceb Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Fri, 19 Mar 2021 14:04:23 +0000 Subject: [PATCH] Fit comments within wrap width --- vimrc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/vimrc b/vimrc index c831bb5..a945edf 100644 --- a/vimrc +++ b/vimrc @@ -203,8 +203,8 @@ if !empty($VIMCOC) && has("patch-8.1.1719") && (executable("nodejs") || executab set cmdheight=2 " Use tab for trigger completion with characters ahead and navigate. - " NOTE: Use command ':verbose imap ' to make sure tab is not mapped by - " other plugin before putting this into your config. + " NOTE: Use command ':verbose imap ' to make sure tab is not + " mapped by other plugin before putting this into your config. inoremap \ pumvisible() ? "\" : \ check_back_space() ? "\" : @@ -223,13 +223,14 @@ if !empty($VIMCOC) && has("patch-8.1.1719") && (executable("nodejs") || executab inoremap coc#refresh() endif - " Make auto-select the first completion item and notify coc.nvim to - " format on enter, could be remapped by other vim plugin + " Make auto-select the first completion item and notify coc.nvim + " to format on enter, could be remapped by other vim plugin inoremap pumvisible() ? coc#_select_confirm() \: "\u\\=coc#on_enter()\" " Use `[g` and `]g` to navigate diagnostics - " Use `:CocDiagnostics` to get all diagnostics of current buffer in location list. + " Use `:CocDiagnostics` to get all diagnostics of current buffer in + " location list. nmap [g (coc-diagnostic-prev) nmap ]g (coc-diagnostic-next) @@ -281,7 +282,8 @@ if !empty($VIMCOC) && has("patch-8.1.1719") && (executable("nodejs") || executab nmap qf (coc-fix-current) " Map function and class text objects - " NOTE: Requires 'textDocument.documentSymbol' support from the language server. + " NOTE: Requires 'textDocument.documentSymbol' support from the + " language server. xmap if (coc-funcobj-i) omap if (coc-funcobj-i) xmap af (coc-funcobj-a) @@ -316,8 +318,8 @@ if !empty($VIMCOC) && has("patch-8.1.1719") && (executable("nodejs") || executab command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport') " Add (Neo)Vim's native statusline support. - " NOTE: Please see `:h coc-status` for integrations with external plugins that - " provide custom statusline: lightline.vim, vim-airline. + " NOTE: Please see `:h coc-status` for integrations with external + " plugins that provide custom statusline: lightline.vim, vim-airline. set statusline^=%f\ %{coc#status()}%{get(b:,'coc_current_function','')}%=%l,%c%V\ %P " Mappings for CoCList