This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
rubocop [2019/10/16 16:49] – vytvořeno david | rubocop [2019/10/16 17:42] – david | ||
---|---|---|---|
Line 15: | Line 15: | ||
syntax on | syntax on | ||
set nu | set nu | ||
+ | set number | ||
+ | set ts=2 | ||
+ | set sw=2 | ||
+ | "set autoread | ||
+ | "set foldmethod=marker | ||
+ | runtime! defaults.vim | ||
+ | let g: | ||
+ | set mouse= | ||
+ | |||
" Load all plugins now. | " Load all plugins now. | ||
" " Plugins need to be added to runtimepath before helptags can be generated. | " " Plugins need to be added to runtimepath before helptags can be generated. | ||
Line 25: | Line 34: | ||
function! RubocopAutocorrect() | function! RubocopAutocorrect() | ||
+ | set autoread | ||
+ | write | ||
execute " | execute " | ||
call SyntasticCheck() | call SyntasticCheck() | ||
+ | set noautoread | ||
endfunction | endfunction | ||