File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.
6062To ensure that this plugin works well with [ Tim Pope's fugitive] [ ] , use the
6163following patterns array:
6264
63- let g:EditorConfig_exclude_patterns = ['fugitive://.*']
65+ ``` viml
66+ let g:EditorConfig_exclude_patterns = ['fugitive://.*']
67+ ```
6468
6569If 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
6975Of 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
7583You might want to override some project-specific EditorConfig rules in global
7684or local vimrc in some cases, e.g., to resolve conflicts of trailing whitespace
7785trimming 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
8191You are able to disable any supported EditorConfig properties.
8292
You can’t perform that action at this time.
0 commit comments