Re: [PATCH] Trim trailing whitespace in vim and emacs

Поиск
Список
Период
Сортировка
От Teodor Sigaev
Тема Re: [PATCH] Trim trailing whitespace in vim and emacs
Дата
Msg-id 5785dc47-2b79-2990-1412-d93e78f539d6@sigaev.ru
обсуждение исходный текст
Ответ на Re: [PATCH] Trim trailing whitespace in vim and emacs  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: [PATCH] Trim trailing whitespace in vim and emacs  (Teodor Sigaev <teodor@sigaev.ru>)
Список 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/

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: Re: POC: GROUP BY optimization
Следующее
От: Teodor Sigaev
Дата:
Сообщение: Re: [PATCH] Trim trailing whitespace in vim and emacs