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

2014-02-14 Thread Emil Lundberg
On Fri, Feb 14, 2014 at 5:08 PM, Jakub Klinkovský  wrote:
> Sure the symlinks work - but that will not help on the quest of cleaning my
> $HOME folder and totally kills the reason for moving into ~/.config/
>
> --
> jlk

True, I'm afraid I can't help you then. My reason was to enable
versioning my configs with git, not mainly to clean up $HOME.

/Emil


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

2014-02-14 Thread Jakub Klinkovský
On 14.02.14 at 14:36, Emil Lundberg wrote:
> On Fri, Feb 14, 2014 at 3:21 AM, Jakub Klinkovský  wrote:
> > 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
> 
> I moved my vim config in exactly the same way a few days ago, but I
> use symlinks instead of configuration options.
> 
> $ ln -s ~/.config/vim/vimrc ~/.vimrc
> $ ln -s ~/.config/vim ~/.vim
> 
> Works just fine for me.
> 
> /Emil

Sure the symlinks work - but that will not help on the quest of cleaning my
$HOME folder and totally kills the reason for moving into ~/.config/

--
jlk


pgp38KmghwVTo.pgp
Description: PGP signature


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

2014-02-13 Thread Emil Lundberg
On Fri, Feb 14, 2014 at 3:21 AM, Jakub Klinkovský  wrote:
> 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

I moved my vim config in exactly the same way a few days ago, but I
use symlinks instead of configuration options.

$ ln -s ~/.config/vim/vimrc ~/.vimrc
$ ln -s ~/.config/vim ~/.vim

Works just fine for me.

/Emil


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

2014-02-13 Thread Jakub Klinkovský
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


pgpB6WsIMu2N3.pgp
Description: PGP signature