diff options
author | aszlig <aszlig@redmoonstudios.org> | 2017-07-24 06:48:42 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2017-07-24 06:48:42 +0200 |
commit | 2b8692209216a2f99ec7b44feb1c490f1311681b (patch) | |
tree | d72aac66731f68ff86b8d16179ecf1021b613148 /pkgs/aszlig/vim | |
parent | 4da0515a35e8cb01467e24296758f3b884c8c9a1 (diff) |
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 <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/aszlig/vim')
-rw-r--r-- | pkgs/aszlig/vim/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
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 |