dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 8653a137d6c3b794862a7954fa5a2540143cb3f9
parent 67d7642daf8f9225b5219a846f3c4fb134ff658c
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Sun,  5 Jan 2020 12:54:24 +0100

Enable goyo for writing in mutt

Diffstat:
Mvim/vimrc | 11+++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/vim/vimrc b/vim/vimrc @@ -51,7 +51,7 @@ set statusline+=%1*\ %<%F\ "Filename set statusline+=%2*\ %y\ "FileType set statusline+=%3*\ %{''.(&fenc!=''?&fenc:&enc).''} "Encoding set statusline+=%3*\ %{(&bomb?\",BOM\":\"\")}\ "Encoding2 -set statusline+=%4*\ %{&ff}\ "FileFormat (dos/unix..) +set statusline+=%4*\ %{&ff}\ "FileFormat (dos/unix..) set statusline+=%5*\ %{&spelllang}\ "Spellanguage set statusline+=%8*\ %=\ %l:%v\ "Rownr:Colnr set statusline+=%0*\ \ %m%r%w\ %P\ \ "Modified? Readonly? Top/bot. @@ -59,6 +59,10 @@ set statusline+=%0*\ \ %m%r%w\ %P\ \ "Modified? Readonly? T " Show tabs set listchars=tab:>- +" automatically deletes all trailing whitespace on save +autocmd BufWritePre * %s/\s\+$//e + + " run programs silently command! -nargs=* RunSilent \ | execute ':silent !'.'<args>' @@ -73,7 +77,7 @@ nmap <Leader>mk :RunSilent make<CR> " Create commands for activating customized write and code modes command Normalmode set background=dark | colorscheme nord | Goyo! | set nolinebreak | set norelativenumber | set nospell -command Writemode set background=light | colorscheme solarized | set linebreak | set spell | Goyo 70 +command Writemode set background=light | colorscheme solarized | set linebreak | set spell | Goyo 80 command Codemode set background=dark | colorscheme obsidian | Goyo! | set nolinebreak | set nospell nmap <Leader>nm :Normalmode<CR> nmap <Leader>wm :Writemode<CR> @@ -81,3 +85,6 @@ nmap <Leader>cm :Codemode<CR> " Macro for inserting current date nmap <Leader>d "=strftime("%Y-%m-%d")<CR>P + +" autocmds +autocmd BufRead,BufNewFile ~/.mutt/temp/mutt* :Goyo 80 | set linebreak | set spell