Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep current directory to the directory runs vim #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions plugin/srcexpl.vim
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ endfunction " }}}
function! g:SrcExpl_UpdateTags()

" Go to the current work directory
silent! exe "cd " . expand('%:p:h')
silent! exe "cd " . `pwd`
" Get the amount of all files named 'tags'
let l:tmp = len(tagfiles())

Expand Down Expand Up @@ -1490,8 +1490,6 @@ function! <SID>SrcExpl_Init()
\ g:SrcExpl_colorSchemeList[matchstr(reltimestr(reltime()),
\ '\v\.@<=\d+')[1:] % len(g:SrcExpl_colorSchemeList)]

" Auto change current work directory
exe "set autochdir"
" Let Vim find the possible tags file
exe "set tags=tags;"
" Set the actual update time according to user's requirement
Expand Down