dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

vimrc.vim (393B) [raw]


      1 " autoload/vimrc.vim -- functions to be called in vimrc
      2 "
      3 " See `:h autoload-functions` for explanation of autoloading and performance
      4 function! vimrc#ToggleColorColumn() abort
      5     if &colorcolumn == ""
      6         if &textwidth > 0
      7             exe "set colorcolumn=" . &textwidth
      8         else
      9             set colorcolumn=80
     10         endif
     11     else
     12         set colorcolumn=""
     13     endif
     14 endfunction