Commits

Andrei Sosnin  committed 646a7f3

Add keybinds to switch between standard and wide line widths for Python development

  • Participants
  • Parent commits bafe0a1

Comments (0)

Files changed (1)

 filetype plugin indent on
 " vim: set ft=vim :
 "
-if exists('+colorcolumn')
-  set colorcolumn=110
-else
-  au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
-  highlight OverLength ctermbg=darkred ctermfg=white guibg=#FFD9D9
-  match OverLength /\%>80v.\+/
-endif
-set textwidth=109
+nnoremap <F9> :set colorcolumn=110<CR>:set textwidth=109<CR>
+nnoremap <F8> :set colorcolumn=80<CR>:set textwidth=79<CR>