Timothy Madden wrote:
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.
set rtp+= ... will not append if already ... is already present
set rtp^= ... will prepend, but will not prepend if ... is already present
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.
Are you worried about whether or not ~/.vim is already in $VIMRUNTIME?
$VIMRUNTIME has already been expanded, so if ~/.vim duplicates one of
the $VIMRUNTIME entries, it won't prepend with ^= and won'tappend with += .
Regards,
Chip Campbell
--
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