diff options
author | katherine <ageha@airen-no-jikken.icu> | 2019-12-03 17:41:24 -0700 |
---|---|---|
committer | katherine <ageha@airen-no-jikken.icu> | 2019-12-03 17:41:24 -0700 |
commit | 8628d44b1bb497ab3455888e64e75559283607e2 (patch) | |
tree | d8b0559fc92d8161622249089687dfe7de98648b | |
parent | c8146cebc7085677cc9acc751c410192e3bc0ba1 (diff) | |
download | dotfiles-8628d44b1bb497ab3455888e64e75559283607e2.tar.gz |
minor changes to vimrc
-rw-r--r-- | .vimrc | 27 |
1 files changed, 15 insertions, 12 deletions
@@ -127,6 +127,20 @@ call s:Lightline_palette_init() let g:easytags_async = 1 let g:easytags_always_enabled = 1 +"goyo +fun! s:goyo_enter() + set formatoptions+=a +endfun + +fun! s:goyo_leave() + set formatoptions-=a +endfun + +autocmd! User GoyoEnter nested call <SID>goyo_enter() +autocmd! User GoyoLeave nested call <SID>goyo_leave() + +nnoremap <Leader>w :execute "silent Goyo"<CR><C-l> + """""""""""""""""""""" " GENERAL SETTINGS " @@ -235,18 +249,6 @@ endif cnoremap <PageUp> <up> cnoremap <PageDown> <down> -fun! s:goyo_enter() - set formatoptions+=a -endfun - -fun! s:goyo_leave() - set formatoptions-=a -endfun - -autocmd! User GoyoEnter nested call <SID>goyo_enter() -autocmd! User GoyoLeave nested call <SID>goyo_leave() - -nnoremap <Leader>w :execute "silent Goyo"<CR><C-l> """"""""""""""""""""""" @@ -458,6 +460,7 @@ endfun fun! s:settings_mail() "settings setlocal spell + setlocal nojoinspaces "mappings endfun |