Mon, 10 Jul 2017 19:23:03 -0400
simplify auto session
.vim/autoload/vimrc.vim | file | annotate | diff | comparison | revisions | |
.vimrc | file | annotate | diff | comparison | revisions |
--- a/.vim/autoload/vimrc.vim +++ b/.vim/autoload/vimrc.vim @@ -24,10 +24,7 @@ endfunc func! vimrc#AutoSessionConfig() abort if strlen(v:servername) > 0 && match(v:servername, 'VIM') == -1 - let g:unite_source_session_default_session_name = tolower(v:servername) - let g:unite_source_session_enable_auto_save = 1 - - UniteSessionLoad + exec 'UniteSessionLoad ' . tolower(v:servername) endif endfunc