Explorar o código

Use :lcd when changing to VCS root

Marco Hinz %!s(int64=6) %!d(string=hai) anos
pai
achega
26f2ffcdf4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      autoload/startify.vim

+ 1 - 1
autoload/startify.vim

@@ -901,7 +901,7 @@ function! s:cd_to_vcs_root(path) abort
   for vcs in [ '.git', '.hg', '.bzr', '.svn' ]
     let root = finddir(vcs, dir .';')
     if !empty(root)
-      execute 'cd '. fnameescape(fnamemodify(root, ':h'))
+      execute 'lcd' fnameescape(fnamemodify(root, ':h'))
       return 1
     endif
   endfor