From ddcfcbd11368f369be95f5d601c3d289443eea7a Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Tue, 28 Mar 2017 08:30:43 -0500 Subject: [PATCH] Add option to show trailing whitespace and CRLF endings. Remove boilerplate header from template config --- .vimrc | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.vimrc b/.vimrc index 61a9855..9a0330a 100644 --- a/.vimrc +++ b/.vimrc @@ -1,14 +1,3 @@ -" An example for a vimrc file. -" -" Maintainer: Bram Moolenaar -" Last change: 2015 Mar 24 -" -" To use it, copy it to -" for Unix and OS/2: ~/.vimrc -" for Amiga: s:.vimrc -" for MS-DOS and Win32: $VIM\_vimrc -" for OpenVMS: sys$login:.vimrc - " When started as "evim", evim.vim will already have done these settings. if v:progname =~? "evim" finish @@ -117,3 +106,11 @@ let g:vimwiki_list = [{ \ 'template_path': '$HOME/vimwiki/html-template', \ 'template_default': 'index', \ 'template_ext': '.html'}] + +" Show trailing whitespace +let c_space_errors = 1 + +" Only use unix mode, and show DOS line endings as ^M +" This can be disabled with :e ++ff=dos +set fileformats=unix +