Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
rubocop [2019/10/16 16:49] – vytvořeno davidrubocop [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:skip_defaults_vim = 1
 +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 "!rubocop -a " . bufname("%")   execute "!rubocop -a " . bufname("%")
   call SyntasticCheck()   call SyntasticCheck()
 +        set noautoread
 endfunction endfunction
  
 
rubocop.txt · Last modified: 2023/11/03 15:24 by david