Updated vimrc

This commit is contained in:
amix committed 2015-07-13 11:22:46 +01:00
1 parent 9a2843c2a5
commit d7752b59ae
301 files changed
+4699 -7969

No files matched your search

@@ -27,9 +27,11 @@ function! s:check_mixed_indent()
" spaces before or between tabs are not allowed
let t_s_t = '(^\t* +\t\s*\S)'
" <tab>(<space> x count)
" count of spaces at the end of tabs should be less then tabstop value
" count of spaces at the end of tabs should be less than tabstop value
let t_l_s = '(^\t+ {' . &ts . ',}' . '\S)'
return search('\v' . t_s_t . '|' . t_l_s, 'nw')
elseif s:indent_algo == 2
return search('\v(^\t* +\t\s*\S)', 'nw')
else
return search('\v(^\t+ +)|(^ +\t+)', 'nw')
endif