https://github.com/nobe4/sansbullshitsans.vim
Leveraging the synergy of conceals from Vim
https://github.com/nobe4/sansbullshitsans.vim
bullshit sansbullshitsans vim vim-plugin
Last synced: 3 months ago
JSON representation
Leveraging the synergy of conceals from Vim
- Host: GitHub
- URL: https://github.com/nobe4/sansbullshitsans.vim
- Owner: nobe4
- License: mit
- Created: 2017-03-26T19:06:27.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-22T09:50:18.000Z (about 8 years ago)
- Last Synced: 2025-01-20T06:41:48.327Z (5 months ago)
- Topics: bullshit, sansbullshitsans, vim, vim-plugin
- Language: Vim script
- Homepage: https://github.com/nobe4/SansBullshitSans.vim/
- Size: 4.38 MB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Huh?
Do you know [SansBullshitSans](http://www.sansbullshitsans.com/)?
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.

# 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:
- [calebsmith/vim-lambdify](https://github.com/calebsmith/vim-lambdify)
- [enomsg/vim-haskellConcealPlus](https://github.com/enomsg/vim-haskellConcealPlus)
- [plasticboy/vim-markdown](https://github.com/plasticboy/vim-markdown#syntax-concealing)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
- [Picture Credits](https://unsplash.com/search/bull?photo=9uOasewOoXc)
- [SansBullshitSans Inspiration](http://www.sansbullshitsans.com/)
- [MIT License for this project](https://github.com/nobe4/SansBullshitSans.vim/blob/master/LICENSE)