From 2b8692209216a2f99ec7b44feb1c490f1311681b Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 24 Jul 2017 06:48:42 +0200 Subject: pkgs/vim: Wrap lines at 79 chars instead of 80 The reason is that for terminals that have a width of 80 characters, having a line with exactly 80 characters will wrap it. I've wrapped most of my code in 79 characters since a while manually, so it's time to enforce this by the editor. Signed-off-by: aszlig --- pkgs/aszlig/vim/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pkgs/aszlig') diff --git a/pkgs/aszlig/vim/default.nix b/pkgs/aszlig/vim/default.nix index d05e8002..200f217c 100644 --- a/pkgs/aszlig/vim/default.nix +++ b/pkgs/aszlig/vim/default.nix @@ -289,7 +289,7 @@ let set tabstop=4 set softtabstop=4 set shiftwidth=4 - set textwidth=80 + set textwidth=79 set termencoding=ascii set backspace=indent,eol,start set background=dark @@ -337,8 +337,8 @@ let " prevent colorscheme from overriding these highlights au ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red - " highlight everything exceeding 80 characters - au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1) + " highlight everything exceeding 79 characters + au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>79v.\+', -1) ''; misc = '' @@ -346,7 +346,7 @@ let fun! AAMode() highlight clear ExtraWhitespace for m in getmatches() - if m.group == 'ErrorMsg' && m.pattern == '\%>80v.\+' + if m.group == 'ErrorMsg' && m.pattern == '\%>79v.\+' call matchdelete(m.id) endif endfor -- cgit 1.4.1