Skip to content

Commit cf84bc0

Browse files
authored
Add syntax highlighting to the readme file
1 parent 53c56fc commit cf84bc0

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ OR
2424

2525
- Use [Vundle][] by adding to your `.vimrc` Vundle plugins section:
2626

27-
Plugin 'editorconfig/editorconfig-vim'
27+
```viml
28+
Plugin 'editorconfig/editorconfig-vim'
29+
```
2830

2931
Then remember to call `:PluginInstall`.
3032

@@ -60,23 +62,31 @@ need to execute `:helptags ALL` so that Vim is aware of editorconfig.txt.
6062
To ensure that this plugin works well with [Tim Pope's fugitive][], use the
6163
following patterns array:
6264

63-
let g:EditorConfig_exclude_patterns = ['fugitive://.*']
65+
```viml
66+
let g:EditorConfig_exclude_patterns = ['fugitive://.*']
67+
```
6468

6569
If you wanted to avoid loading EditorConfig for any remote files over ssh:
6670

67-
let g:EditorConfig_exclude_patterns = ['scp://.*']
71+
```viml
72+
let g:EditorConfig_exclude_patterns = ['scp://.*']
73+
```
6874

6975
Of course these two items could be combined into the following:
7076

71-
let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
77+
```viml
78+
let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
79+
```
7280

7381
#### Disable rules
7482

7583
You might want to override some project-specific EditorConfig rules in global
7684
or local vimrc in some cases, e.g., to resolve conflicts of trailing whitespace
7785
trimming and buffer autosaving.
7886

79-
let g:EditorConfig_disable_rules = ['trim_trailing_whitespace']
87+
```viml
88+
let g:EditorConfig_disable_rules = ['trim_trailing_whitespace']
89+
```
8090

8191
You are able to disable any supported EditorConfig properties.
8292

0 commit comments

Comments
 (0)