nobe4 / SansBullshitSans.vim

Leveraging the synergy of conceals from Vim

Home Page:https://github.com/nobe4/SansBullshitSans.vim/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

https://github.com/nobe4/SansBullshitSans.vim/blob/master/head.jpg

Huh?

Do you know SansBullshitSans? It changed my life, seriously.

One problem though, this font is not really developer friendly.

Introducing

Sans Bullshit Sans .vim

(that's Sans Bullshit Sans "dot" vim)

This is a concealing plugin that will remove all the bullshit language.

Demo!

How does it work ?

Vim :h conceal allows to hide/replace pattern of texts as part of the syntax definition. This is massively used for enhancing the coding experience on verbose languages:

Here I use it to replace some words by others.

Bare in mind this is not what conceal is used for!

Basically, I create a maching like so:

agile  a g i le
|      | | | |
v      v v v v
b.s.   b . s .

And the following syntax will roughly be applied:

syntax match GroupName1 contained 'a' conceal cchar=b
...
syntax match GroupName4 contained 'le' conceal cchar=.

syn match /agile/ contains=GroupName1,GroupName2,GroupName3,GroupName4

And now when you type 'agile' anywhere, a beautiful 'b.s.' will appear instead.

Help!

If it doesn't work, if it crashes, if emacs launches, ...

This is not what conceal are used for, don't take it too seriously.

Contributing

... Serioulsy? Don't you have anything interesting to do?

(I accept issues and pull requests)

License

About

Leveraging the synergy of conceals from Vim

https://github.com/nobe4/SansBullshitSans.vim/

License:MIT License


Languages

Language:Vim Script 100.0%