@@ -24,48 +24,64 @@ in a place where Vim will load it:
2424
2525Vim 8+:
2626
27- mkdir -p ~/.vim/pack/dist/start
28- git clone https://github.com/h3xx/vim-shitespace.git ~/.vim/pack/dist/start/vim-shitespace
27+ ``` sh
28+ mkdir -p ~ /.vim/pack/dist/start
29+ git clone https://github.com/h3xx/vim-shitespace.git ~ /.vim/pack/dist/start/vim-shitespace
30+ ```
2931
3032Vim 7 and older:
3133
32- mkdir -p ~/.vim/plugin
33- wget -O ~/.vim/plugin/shitespace.vim https://raw.githubusercontent.com/h3xx/vim-shitespace/main/plugin/shitespace.vim
34+ ``` sh
35+ mkdir -p ~ /.vim/plugin
36+ wget -O ~ /.vim/plugin/shitespace.vim https://raw.githubusercontent.com/h3xx/vim-shitespace/main/plugin/shitespace.vim
37+ ```
3438
3539## Configuration
3640
3741Copy and modify these default values to your ` ~/.vimrc ` to tweak how Shitespace
3842works:
3943
40- let g:shitespaceDefaultOn = 1
41- let g:shitespaceColor = 'red'
42- let g:shitespaceMatch = '/\s\+$\| \+\ze\t/'
44+ ``` vim
45+ let g:shitespaceDefaultOn = 1
46+ let g:shitespaceColor = 'red'
47+ let g:shitespaceMatch = '/\s\+$\| \+\ze\t/'
48+ ```
4349
4450## Configuration Cookbook
4551
4652If you don't want Shitespace on by default, instead activating it with a
4753keystroke:
4854
49- let g:shitespaceDefaultOn = 0
50- let g:shitespaceShortcut = '<F5>'
55+ ``` vim
56+ let g:shitespaceDefaultOn = 0
57+ let g:shitespaceShortcut = '<F5>'
58+ ```
5159
5260## Alternate Regexes
5361
5462If you don't like mixed spaces-and-tabs, stick this in your ~ /.vimrc:
5563
56- let g:shitespaceMatch = '/\s\+$\| \+\t\+\|\t\+ \+/'
64+ ``` vim
65+ let g:shitespaceMatch = '/\s\+$\| \+\t\+\|\t\+ \+/'
66+ ```
5767
5868If you don't like tabs used to indent (but they're okay elsewhere in the line):
5969
60- let g:shitespaceMatch = '/\s\+$\|^\t\+/'
70+ ``` vim
71+ let g:shitespaceMatch = '/\s\+$\|^\t\+/'
72+ ```
6173
6274If you don't like spaces used to indent:
6375
64- let g:shitespaceMatch = '/\s\+$\|^ \+/'
76+ ``` vim
77+ let g:shitespaceMatch = '/\s\+$\|^ \+/'
78+ ```
6579
6680If you don't like tabs AT ALL:
6781
68- let g:shitespaceMatch = '/\s\+$\|\t\+/'
82+ ``` vim
83+ let g:shitespaceMatch = '/\s\+$\|\t\+/'
84+ ```
6985
7086## Contributing
7187
0 commit comments