added markings for carriage returns and trailing white spaces
This commit is contained in:
parent
abe257072d
commit
4a78d846b7
1 changed files with 40 additions and 23 deletions
|
|
@ -52,6 +52,9 @@ let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowTo
|
||||||
" set indentLine to nvim colorscheme
|
" set indentLine to nvim colorscheme
|
||||||
" let g:indentLine_setColors = 0
|
" let g:indentLine_setColors = 0
|
||||||
|
|
||||||
|
set listchars=eol:↵,trail:·
|
||||||
|
set list
|
||||||
|
|
||||||
"enable AutoSave on start
|
"enable AutoSave on start
|
||||||
let g:auto_save = 1
|
let g:auto_save = 1
|
||||||
|
|
||||||
|
|
@ -260,6 +263,20 @@ function! s:show_documentation()
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
" function to remove trailing white spaces from document, simply type
|
||||||
|
" :StripTrailingWhitespace when in Normal mode
|
||||||
|
command! -nargs=? -range=% -complete=custom,s:StripCompletionOptions
|
||||||
|
\ StripTrailingWhitespace <line1>,<line2>call s:StripTrailingWhitespace(<f-args>)
|
||||||
|
|
||||||
|
function! s:StripTrailingWhitespace(...) abort
|
||||||
|
let confirm = a:0
|
||||||
|
execute a:firstline . ',' . a:lastline . 's/\s\+$//e' . (confirm ? 'c' : '')
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:StripCompletionOptions(A,L,P) abort
|
||||||
|
return "-confirm"
|
||||||
|
endfunction
|
||||||
|
|
||||||
" Highlight symbol under cursor on CursorHold
|
" Highlight symbol under cursor on CursorHold
|
||||||
autocmd CursorHold * silent call CocActionAsync('highlight')
|
autocmd CursorHold * silent call CocActionAsync('highlight')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue