Opened 15 years ago

Closed 15 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:
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 by Adek336, 15 years ago

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

comment:2 by siarzhuk, 15 years ago

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 by Adek336, 15 years ago

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 by siarzhuk, 15 years ago

Owner: changed from nobody to siarzhuk

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

in reply to:  4 comment:5 by siarzhuk, 15 years ago

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 by scottmc, 15 years ago

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.