Enable visual highlight of trail spaces and tabs

This commit is contained in:
Kenneth Benzie 2017-11-20 21:28:44 +00:00
parent e049445284
commit e292b937d0
2 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,13 @@
scriptencoding 'utf-8'
" Enable all mouse features " Enable all mouse features
set mouse=a set mouse=a
" Enable visually highlighting listchars
set list
" Set visible chars for trailing white space and tabs
set listchars=trail,tab:»»
" TODO: spellcapcheck " TODO: spellcapcheck
" TODO: virtualedit=block " TODO: virtualedit=block
" TODO: whichwrap=b,h,l,s,<,>,[,],~ " TODO: whichwrap=b,h,l,s,<,>,[,],~
@ -32,7 +39,7 @@ if has('writebackup')
endif endif
" Wrap to whole words " Wrap to whole words
set wrap nolist set wrap
if has('linebreak') if has('linebreak')
set linebreak set linebreak
endif endif

3
vimrc
View File

@ -1,4 +1,5 @@
scriptencoding 'utf-8' set encoding=utf-8
scriptencoding 'utf-8'
" Set leader to space " Set leader to space
let g:mapleader = ' ' let g:mapleader = ' '