"--------------------------------------------------------------------------- " vimrc functions: function! vimrc#on_filetype() abort "{{{ if execute('filetype') =~# 'OFF' " Lazy loading silent! filetype plugin indent on syntax enable filetype detect endif endfunction "}}} function! StrTrim(txt) return substitute(a:txt, '^\n*\s*\(.\{-}\)\n*\s*$', '\1', '') endfunction