[OpenWrt-Devel] Convincing vim on Fedora to highlight 'bad' whitespace

Hartmut Knaack knaack.h at gmx.de
Sun Jan 10 10:22:34 EST 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Daniel Dickinson schrieb am 10.01.2016 um 16:01:
> Hi all,
> 
> While not strictly an OpenWrt topic, in the interests of helping other 
> with the style guidelines, here's a snipped for your $HOME/.vimrc
> 
> The following is mostly from John Crispin, with one additional regex 
> (for lines beginning with any number of sets of 8 spaces prior to 
> non-whitespace text).

I think such information should go into a wiki article at dev.openwrt.org.
Anybody starting development would more likely look there for information
than searching through the mailing list (at least that is how I did it).

> 
> Also note that on Fedora vim-minimal is install by default as vi.  If 
> you do not set up and alias or similar, when you type vi you get 
> vim-minimal (which doesn't have the required functionality) instead of 
> vim-enhanced (assuming you've installed it), for which you must use the 
> command vim.
> 
> [below here goes in $HOME/.vimrc]
> 
> highlight link localWhitespaceError Error
> 
> highlight link localWhitespaceError Error
> autocmd Syntax * syn match localWhitespaceError /\( \{8\}\)\+\ze[^\s]/ 
> display
> autocmd Syntax * syn match localWhitespaceError /\(\zs\%#\|\s\)\+$/ display
> autocmd Syntax * syn match localWhitespaceError / \ze\t/ display
> 
> 
> [above here goes in $HOME/.vimrc]
> 
> Regards,
> 
> Daniel
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWknc2AAoJEANoShj6yJFIPNEQAKIRlt5fIvQnSy1FjfZjHUxK
U5HCvTjnMH8xN75R0zJ6MIsKtCwDcIuMUUNcvQerfFYodOhppXEf05W9FwLQoLB4
PSYltqVLsnjUnzZt75F03fy5ZZFLSerZun4zEXXTUq1/aTuWpDtngt490RsWRgfM
2eSu0r1CXUrmgXhi75q4BuA9DkAo3CIvmiwDuM+qOSvf3CSOTt8WCsNAKB9mFzW8
bKESPFi+xiY7rxpL3ubQ+Ybn96CTTZYlnswDo1FJVPYdlOKe29fC8jKWRXBcsTGF
dSfhMVZT7W8/fyURTazYNdsyI6TL7y7NhGPaTIBEZYgHEUiNPaSHmIAeddQtAIma
QqjiTsK5E7yNGSauKHCIWFqreDlNB97Wb78jrTK34syaM4f5w6hHL6bcU80BHr4i
4PNCn64appMIo4XP+fP6CfKtVebj+eUFgH5kxf7RQYw7a9lC3lY1MjIIQxZijyxT
K4vEsF6wDtEfAZCTJZEj/FFzjQ9VZuR9KZ2UvUee1hOjy0zzc6mgHU5ADuMXAywi
uDc3UAxWDRRIXnRefQh1tjYGU9scIw53/uMEPZxCNXMqpOS9yc8TwIPQTJMpoaHT
zif/6cvAbHdN7r0sXBnd7eP0gD4b5EU6abdxCwGr8qqjOb9RFo/Rkl2mKcRrMo+J
h3Ybc4wmY0YnHHim7g4h
=f+wK
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xFAC89148.asc
Type: application/pgp-keys
Size: 3104 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20160110/73d01994/attachment.bin>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list