From f4caa3d868fb34495f682cc57d933908ddb82283 Mon Sep 17 00:00:00 2001 From: Edward Litherland-Smith Date: Thu, 11 Feb 2021 17:03:29 +0000 Subject: [PATCH] Add `colorcolumn` to highlight lines too long, set `textwidth` for python files --- after/ftplugin/python.vim | 1 + vimrc | 1 + 2 files changed, 2 insertions(+) diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim index 259676c3..f2b8062c 100644 --- a/after/ftplugin/python.vim +++ b/after/ftplugin/python.vim @@ -1,5 +1,6 @@ setlocal shiftwidth=4 setlocal softtabstop=4 +setlocal textwidth=79 let b:ale_linters = ['pylint', 'jedils'] let b:ale_fixers = ['black'] diff --git a/vimrc b/vimrc index eff2b513..753e388d 100644 --- a/vimrc +++ b/vimrc @@ -17,6 +17,7 @@ set list set wrap set linebreak set autoread +set colorcolumn=+1 au BufRead,BufNewFile *.ipynb setlocal filetype=json au BufRead,BufNewFile *.md setlocal spell