1. Nicola Paolucci
  2. cfg

Commits

Nicola Paolucci  committed c2b839c

[vim] adding ,0 to toggle writing environment

  • Participants
  • Parent commits d1083eb
  • Branches master

Comments (0)

Files changed (1)

File .vimrc

View file
 nmap <leader>pr :%s/\`\([^`]\+\)`/\<span class=\"text codecolorer\"\>\1<\/span>/p<cr>:set nohlsearch<CR>
 nmap <leader>pu :%s/<span.\{-}>\(.\{-}\)<\/span>/`\1`/p<cr>:set nohlsearch<CR>
 " }}}
+" Writing environment {{{
+nnoremap <silent> <leader>0 :call ToggleWritingEnvironment()<CR>
+let g:writing_environment_on = 0
+function! ToggleWritingEnvironment()
+  set fuopt=maxvert
+  if g:writing_environment_on
+    set noantialias|set gfn=Terminus:h14|set co=80
+"    set foldcolumn=0
+    let g:writing_environment_on = 0
+  else
+    set antialias|set gfn=Inconsolata:h22|set co=180
+"    set foldcolumn=12
+    let g:writing_environment_on = 1
+  endif
+endfunction
+" }}}
 " End Keyboard Shortcuts}}}
 " Theme and Color {{{