Enable list by default and add it to zen mode in vim

This commit is contained in:
Talia 2020-10-28 11:44:24 +01:00
parent 71985ca3af
commit 2f2d6ba7eb
2 changed files with 2 additions and 1 deletions

View File

@ -89,6 +89,7 @@ else
set showbreak=↳\ set showbreak=↳\
end end
set listchars=eol,tab:\│\ ,trail,nbsp:…,space set listchars=eol,tab:\│\ ,trail,nbsp:…,space
set list
" Allows setting vim options in other files " Allows setting vim options in other files
set modeline set modeline

View File

@ -12,7 +12,7 @@ function s:dumpState(state)
return l:newstate return l:newstate
endfun endfun
let s:state = { "&number": "0", "&relativenumber": "0", "&colorcolumn": "0", "&laststatus": "0", "&fillchars": "eob:\\ ", "&showtabline": "0" } let s:state = { "&list": "0", "&number": "0", "&relativenumber": "0", "&colorcolumn": "0", "&laststatus": "0", "&fillchars": "eob:\\ ", "&showtabline": "0" }
function Zen() function Zen()
if exists("g:zenState") if exists("g:zenState")