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
|
|
@ -49,8 +49,11 @@ autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTr
|
|||
"set colored brackets via rainbow"
|
||||
let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle"
|
||||
|
||||
"set indentLine to nvim colorscheme
|
||||
"let g:indentLine_setColors = 0
|
||||
" set indentLine to nvim colorscheme
|
||||
" let g:indentLine_setColors = 0
|
||||
|
||||
set listchars=eol:↵,trail:·
|
||||
set list
|
||||
|
||||
"enable AutoSave on start
|
||||
let g:auto_save = 1
|
||||
|
|
@ -260,6 +263,20 @@ function! s:show_documentation()
|
|||
endif
|
||||
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
|
||||
autocmd CursorHold * silent call CocActionAsync('highlight')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue