Skip to main content
Topic: Configuring vim (Read 616 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Configuring vim

Hi all :-)

I'm trying to configure vim so that it behaves like on my other (Gentoo and Ubuntu) installations.

Having vim launched when tying vi seems to be done trough a bashrc alias here, no problem.

But when using the mouse in X, vim automatically starts the visual mode. I wanted to turn this off (to be done with "set mouse-=a"), but the configuration seems to be a lot different here:

What I'm used to is to have /etc/vim/vimrc with the default global configuration, and /etc/vim/vimrc.local, where such changes can be added.

Now, here, I only have /etc/vimrc, and inside, there's only "runtime! archlinux.vim". Adding "set mouse-=a" there has no effect?! So how can I do system-wide vim configuration?

Also, adding this line to ~/.vimrc seems to bypass the loading of the default configuration, e.g. syntax highlighting is turned off as soon as this file exists.

So … how do I configure vim on Artix the right way? Thanks for all help!

Re: Configuring vim

Reply #1
Hi all :-)

I'm trying to configure vim so that it behaves like on my other (Gentoo and Ubuntu) installations.

Having vim launched when tying vi seems to be done trough a bashrc alias here, no problem.

But when using the mouse in X, vim automatically starts the visual mode. I wanted to turn this off (to be done with "set mouse-=a"), but the configuration seems to be a lot different here:

What I'm used to is to have /etc/vim/vimrc with the default global configuration, and /etc/vim/vimrc.local, where such changes can be added.

Now, here, I only have /etc/vimrc, and inside, there's only "runtime! archlinux.vim". Adding "set mouse-=a" there has no effect?! So how can I do system-wide vim configuration?

Also, adding this line to ~/.vimrc seems to bypass the loading of the default configuration, e.g. syntax highlighting is turned off as soon as this file exists.

So … how do I configure vim on Artix the right way? Thanks for all help!

>>Adding "set mouse-=a" there has no effect?! So how can I do system-wide vim configuration?

I think you're doing the option wrong. it's set mouse=""

Also that I use /etc/vimrc for configuration, I dunno why it doens't work for you

Re: Configuring vim

Reply #2
Adding set mouse="" also didn't work, but I found it:

Actually, one has to uncomment let skip_defaults_vim=1. After that, one can add additional system-wide configuration.

I still don't get why it's /etc/vimrc here and not /etc/vim/vimrc.* … whatever ;-)

Re: Configuring vim

Reply #3
Adding set mouse="" also didn't work, but I found it:

Actually, one has to uncomment let skip_defaults_vim=1. After that, one can add additional system-wide configuration.

I still don't get why it's /etc/vimrc here and not /etc/vim/vimrc.* … whatever ;-)

>>I still don't get why it's /etc/vimrc here and not /etc/vim/vimrc.* … whatever ;-)

It is the correct way. Why put vimrc in a directory?

 

Re: Configuring vim

Reply #4
Gentoo, Ubuntu and Debian do it like that … so I thought this was the "default" behavior or so …