Skip to content

Edit entry_path for current dir#145

Closed
kovetskiy wants to merge 1 commit intomhinz:masterfrom
kovetskiy:master
Closed

Edit entry_path for current dir#145
kovetskiy wants to merge 1 commit intomhinz:masterfrom
kovetskiy:master

Conversation

@kovetskiy
Copy link
Copy Markdown

Startify edit files using an absolute path in every time.
But it's wrong, for current directory startify should edit files using an entry_path (otherwise current directory changes to %:p:h because edit an absolute path).

@mhinz
Copy link
Copy Markdown
Owner

mhinz commented Jan 15, 2015

Could you please provide steps for reproducing the problem? Is there an actual error happening?

@kovetskiy
Copy link
Copy Markdown
Author

vim-startify show files in current directory, for example:
now getcwd() it's something like a ~/.vim/bundle/vim-startify/

   [0]  plugin/startify.vim                                                     
   [1]  autoload/startify.vim

moving cursor to [1],
okay, file startify.vim has been opened. but now getcwd() is ~/.vim/bundle/vim-startify/autoload/.
And when I try create file 'test.vim', he will be created as ~/.vim/bundle/vim-startify/autoload/test.vim, but should be ~/.vim/bundle/vim-startify/test.vim

@mhinz
Copy link
Copy Markdown
Owner

mhinz commented Jan 15, 2015

See :h g:startify_change_to_dir. It's enabled by default. If you don't want it to switch directory, put this in your vimrc:

let g:startify_change_to_dir = 0

@mhinz
Copy link
Copy Markdown
Owner

mhinz commented Jan 30, 2015

Please reopen this, if the issue isn't resolved by what I said above.

@mhinz mhinz closed this Jan 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants