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 , 15 years ago
comment:2 by , 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 , 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.
follow-up: 5 comment:4 by , 15 years ago
Owner: | changed from | to
---|
Ok, I'll investigate contents of mentioned vimrc and include any useful settings from it into default vimrc.
comment:5 by , 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 , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
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)
Color syntax highlighting (#2824) should be included too.