Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Commit 0e4d792

Browse files
committed
Fix README syntax highlighting
1 parent 521fe86 commit 0e4d792

File tree

1 file changed

+29
-13
lines changed

1 file changed

+29
-13
lines changed

README.md

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,48 +24,64 @@ in a place where Vim will load it:
2424

2525
Vim 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

3032
Vim 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

3741
Copy and modify these default values to your `~/.vimrc` to tweak how Shitespace
3842
works:
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

4652
If you don't want Shitespace on by default, instead activating it with a
4753
keystroke:
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

5462
If 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

5868
If 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

6274
If you don't like spaces used to indent:
6375

64-
let g:shitespaceMatch = '/\s\+$\|^ \+/'
76+
```vim
77+
let g:shitespaceMatch = '/\s\+$\|^ \+/'
78+
```
6579

6680
If 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

Comments
 (0)