diff --git a/vimrc b/vimrc index a8c9096..33f1795 100644 --- a/vimrc +++ b/vimrc @@ -538,35 +538,11 @@ map ]b :call OpenInWebBrowser() "remove search highlight and refresh nnoremap :nohl:syn sync fromstart -map :call ChangeVCS() map :call ToggleHex() " }}} -" FUNCTIONS: usefull functions for all of th files {{{ +" FUNCTIONS: usefull functions for all of the files {{{ " Switch VCSCommand current used VCS system -function ChangeVCS() - echo "" - let l:vcs = ["HG", "SVN", "CVS", "GIT"] - let l:scv = {1: "HG", 2: "SVN", 3: "CVS", 4: "GIT"} - let l:cho = "" - let l:current = 0 - - if exists("VCSCommandVCSTypeExplicitOverride") && - \ index(vcs, g:VCSCommandVCSTypeExplicitOverride) != -1 - let l:current = vcs[g:VCSCommandVCSTypeExplicitOverride] - endif - - let l:choice = confirm('Switch VCS: ', "&" . join(l:vcs, "\n&"), l:current) - execute ':redraw!' - - if has_key(l:scv, l:choice) - let g:VCSCommandVCSTypeExplicitOverride=l:scv[l:choice] - - echohl Statement - echo "Switched to " . g:VCSCommandVCSTypeExplicitOverride - echohl None - endif -endfunction " Simple wrapper for :make command function Make()