Re: [PATCH] Trim trailing whitespace in vim and emacs - Mailing list pgsql-hackers

From Teodor Sigaev
Subject Re: [PATCH] Trim trailing whitespace in vim and emacs
Date
Msg-id 5785dc47-2b79-2990-1412-d93e78f539d6@sigaev.ru
Whole thread Raw
In response to Re: [PATCH] Trim trailing whitespace in vim and emacs  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: [PATCH] Trim trailing whitespace in vim and emacs
List pgsql-hackers
> I once tried to have vim highlight trailing whitespace, spaces before
> tabs, and overlength lines (>80 chars), and while I could do each thing
> in isolation, I wasn't able to get it to highlight the three of them at
> the same time.  If you have a recipe for that, I welcome it.

I use FileStly plugin to vim [1]. But I slightly modify it,  see in attachment.
And addition in .vimrc:

if expand('%:e') == "c" ||  expand('%:e') == "h" || expand('%:e')  == "cpp" || 
expand('%:e')  == "m" || expand('%:e') == "hpp" || expand('%:e') == "pl" || 
expand('%:e') == "pm" ||  expand('%:e') == "y" ||  expand('%:e') == "l"
else
let g:filestyle_plugin = 1
endif


[1]  https://www.vim.org/scripts/script.php?script_id=5065
-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/

Attachment

pgsql-hackers by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: POC: GROUP BY optimization
Next
From: Teodor Sigaev
Date:
Subject: Re: [PATCH] Trim trailing whitespace in vim and emacs