Opened 16 years ago

Closed 14 years ago

#2824 closed bug (fixed)

vim: no syntax highlight

Reported by: Adek336 Owned by: axeld
Priority: normal Milestone: R1
Component: Applications/Command Line Tools Version: R1/pre-alpha1
Keywords: Cc: imker@…
Blocked By: Blocking:
Platform: All

Description

on :syntax enable I am told that E484: Can't open file /etc/vim/syntax/syntax.vim

Change History (6)

comment:1 by Adek336, 15 years ago

To fix,

the files

vim-6.4-rt1.tar.gz

vim-6.4-rt2.tar.gz

from http://www.vim.org/download.php are needed.

Extract both to /etc/vim

Create file ~/.vimrc

if &term =~ "xterm"
  if has("terminfo")
    set t_Co=8
    set t_Sf=<Esc>[3%p1%dm
    set t_Sb=<Esc>[4%p1%dm
  else
    set t_Co=8
    set t_Sf=<Esc>[3%dm
    set t_Sb=<Esc>[4%dm
  endif
endif

syntax enable

where Esc is the real Escape, entered with Ctrl+V Esc.

I am not sure if the directory /etc/vim is a good choice, perhaps these files should be located in /boot/common/share/vim (if so, then vim will have to be told the path through environment variables)

comment:2 by Adek336, 15 years ago

Actually, all the files needed are already in the source tree. They could be easily installed right now.
src/bin/vim/runtime/* should be copied to /etc/vim/
and data/etc/vim/vimrc should be copied to /etc/vim/

however vimrc needs to be augmented by the commands from the earlier post to enable syntax highlighting by default.

Also, there are no vim sources under vendor/.

in build/jam/HaikuImage there already are

SEARCH on <etc>vimrc = [ FDirName $(HAIKU_TOP) data etc vim ] ;
AddFilesToHaikuImage beos etc vim : <etc>vimrc ;

but vimrc isn't by default copied to /etc/vim/.

comment:3 by siarzhuk, 15 years ago

Cc: imker@… added

comment:4 by stimut, 14 years ago

Since vim seems to have been updated to 7.2 and the problem doesn't exist anymore (at least for me using the default OptionalPackage), can this ticket be closed?

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

Replying to stimut:

Since vim seems to have been updated to 7.2 and the problem doesn't exist anymore (at least for me using the default OptionalPackage), can this ticket be closed?

This ticket speaks about the version of vim, bounded with Haiku sources. That one still has version 6.3. Probably this ticket is a marker to remove the vim from the sources in the future. ;-)

comment:6 by scottmc, 14 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.

Note: See TracTickets for help on using tickets.