[arch-general] Vim configuration: custom runtimepath + ftdetect

Jakub Klinkovský j.l.k at gmx.com
Thu Feb 13 13:21:13 EST 2014


I have moved ~/.vim to ~/.config/vim, the configuration is as follows:

in ~/.profile:
  export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC'

in ~/.config/vim/vimrc:
  set viminfo+=n$XDG_CACHE_HOME/vim/viminfo
  set runtimepath=$XDG_CONFIG_HOME/vim,$XDG_CONFIG_HOME/vim/after,$VIM,$VIMRUNTIME

Now, the thing is that files from ~/.config/vim/ftdetect/ are not respected. On
the other hand, if I create ~/.vim/ftdetect/ (leaving the vimrc and everything
else under ~/.config), the files are correctly sourced.

Is this a bug or am I missing something here? According to ':help ftdetect' the
runtimepath should be respected.

For completeness: I have vim-hg-7.4.179 installed, the PKGBUILD is here:
https://github.com/lahwaacz/archlinux-dotfiles/blob/master/Build/vim-hg/PKGBUILD

Thanks,

--
jlk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20140213/5b5d99a1/attachment.asc>


More information about the arch-general mailing list