On 14.03.2012 18:21, Sergey Khorev wrote:
:let&rtp = '~/.vim,' .&rtp

Or even set rtp+=~/.vim or set rtp^=~/.vim :)

But I want to insert the ~/.vim/ dir inside &rtp in the right place before $VIMRUNTIME, and only if it is not included in &rtp already.

For this I need to process every dir in &rtp and compare it with both ~/.vim/ and $VIMRUNTIME. And for this I need the canonical path names.

And by the way, :lcd or :cd do not return the right case in path names either. I had to use

:python print os.path.normcase(os.path.abspath('dirname'))

Adrian Constantin

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to