Opened 9 years ago

Closed 9 years ago

#5133 closed bug (fixed)

Vim 7 doesn't try to open config file

Reported by: Adek336 Owned by: siarzhuk
Priority: normal Milestone: R1
Component: Applications/Command Line Tools Version: R1/alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Vim 7 from optional package doesn't try to load /etc/vim/vimrc. That file is shipped by default, used by vim 6 and has valuable contents, like "set nocompatible".

Vim 7 tries to open /boot/common/share/vim/vimrc. The vim6 version could be included as this path in the optional package.

Change History (6)

comment:1 Changed 9 years ago by Adek336

Color syntax highlighting (#2824) should be included too.

comment:2 Changed 9 years ago by siarzhuk

Is /etc/vim/ the standard place to store vim configuration files? The version 7 takes care only for $VIM (fallback to ../share/vim/) and $HOME directories. Note that regarding this ticket http://ports.haiku-files.org/ticket/222 all those dot-files from the home directory must be moved in corresponding folder under B_USER_SETTINGS_DIRECTORY. And AFAIK, it is recommended to avoid using hard-coded things like /etc/... during porting applications to Haiku.

And, vim 6 will be removed from the Haiku source tree soon.

comment:3 Changed 9 years ago by Adek336

I agree, /boot/common/share/vim/vimrc is the good place - the optional package should include that file (with contents as in the vim6's vimrc file).

As for the syntax highlighting, the commands should indeed be put into /boot/common/share/vim/vimrc and not ~/.vimrc.

comment:4 Changed 9 years ago by siarzhuk

Owner: changed from nobody to siarzhuk

Ok, I'll investigate contents of mentioned vimrc and include any useful settings from it into default vimrc.

comment:5 in reply to:  4 Changed 9 years ago by siarzhuk

Replying to siarzhuk:

Ok, I'll investigate contents of mentioned vimrc and include any useful settings from it into default vimrc.

... into default vimrc of my vim 7 port, of course. Sorry... ;-)

comment:6 Changed 9 years ago by scottmc

Resolution: fixed
Status: newclosed

vim has now been removed from Haiku's source, try again with adding vim to your UserBuildProfile and see if the vim optional package takes care of this, if not please open a new ticket over on HaikuPorts. Patches welcome. (Closed as fixed, but if it isn't let's move this over to HaikuPorts)

Note: See TracTickets for help on using tickets.