Opened 23 years ago

Closed 18 years ago

#64 closed defect (fixed)

vim-6.4

Reported by: gerard@… Owned by: Matthew Burgess
Priority: normal Milestone:
Component: Book Version: SVN
Severity: normal Keywords:
Cc: blfs-book@…

Description

Change History (32)

comment:1 by gerard@…, 23 years ago

dependson: 30

comment:2 by gerard@…, 23 years ago

Resolution: fixed
Status: newclosed

Added

comment:3 by gerard@…, 23 years ago

Resolution: fixed
Status: closedreopened
Summary: vim-5.8vim-6.0

comment:4 by gerard@…, 23 years ago

there's some problem with opening .sh files, patch here:

ftp://ftp.surfnet.nl/pub/editors/vim/patches/

perhaps it's sed'able

comment:6 by gerard@…, 23 years ago

As Jeremy Jones (mca) puts it:

Screw patch ;) <start commands> sed '/shUntil\|link shRepeat/{ /shUntil/N //i\

if exists("b:is_kornshell")
exists("b:is_bash")

p /$/i\ endif d }' runtime/syntax/sh.vim > sh.vim.fixed && mv sh.vim.fixed runtime/syntax/sh.vim && continue the commands.. <end commands> sed 101:

  • Match only the lines with either "shUntil" or "link shRepeat" in

  • them.. the { tells sed I have a slew of commands for it, not just one

'/shUntil\|link shRepeat/{

  • If the matched line (from above) contains "shUntil", pull the line

  • directly below it into my buffer too.

/shUntil/N

  • Insert the text after this literal newline at the beginning.

//i\

if exists("b:is_kornshell")
exists("b:is_bash")

  • Print the contents of my buffer

p

  • Insert the text after this literal newline at the end.

/$/i\ endif

  • Delete (don't print) these matched lines.

d

  • End of command sequence, input file

}' runtime/syntax/sh.vim

comment:7 by gerard@…, 23 years ago

From Mark:

I've also just looked at putting vimrc in etc and and the install file in vim60/src recommends this instead: ./configure --prefix=/usr && make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim MAKE="make -e" or the FHS compliant version: ./configure --prefix=/usr --localstatedir=/var/lib/vim && make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim MAKE="make -e"

comment:8 by gerard@…, 23 years ago

Owner: changed from lfs-book@… to gerard@…
Status: reopenedassigned

comment:9 by gerard@…, 23 years ago

vimrc's location is set to /etc (src/auto/pathde.c confirms this) but it's not working. The /etc/vimrc file is ignored, /usr/share/vim/vimrc is accepted.

Still working on a fix, keep ya posted

comment:10 by gerard@…, 23 years ago

New installation instructions, for now, until somebody is able to come up with a fix (see lfs-dev posts, I've tried using CPPFLAGS or editing the Makefile file, or install according to src/INSTALL but neither worked):

echo "#define SYS_VIMRC_FILE \"/etc/vimrc\"" \

src/feature.h &&

make && make install

comment:11 by gerard@…, 23 years ago

make that:

echo "#define SYS_VIMRC_FILE \"/etc/vimrc\"" \

src/feature.h &&

./configure --prefix=/usr && make && make install

comment:12 by gerard@…, 23 years ago

Let's try that patch again, the previous one here in bugzilla had too many line breaks:

sed '/shUntil\|link shRepeat/{ /shUntil/N //i\

if exists("b:is_kornshell")
exists("b:is_bash")

p /$/i\ endif d }' runtime/syntax/sh.vim > sh.vim.fixed && mv sh.vim.fixed runtime/syntax/sh.vim &&

comment:13 by gerard@…, 23 years ago

New vim-6.0 installation. Finally got the CPPFLAGS worked out, here are the final commands as they will go in the book, including the sed:

sed '/shUntil\|link shRepeat/{ /shUntil/N //i\

if exists("b:is_kornshell")
exists("b:is_bash")

p /$/i\ endif d }' runtime/syntax/sh.vim > sh.vim.fixed && mv sh.vim.fixed runtime/syntax/sh.vim && ./configure --prefix=/usr && make CPPFLAGS=-DSYS_VIMRC_FILE=
\"/etc/vimrc
\" && make install

comment:14 by gerard@…, 23 years ago

Resolution: fixed
Status: assignedclosed

comment:15 by markh@…, 22 years ago

Resolution: fixed
Status: closedreopened
Summary: vim-6.0vim-6.1

we'll have to double check but this release *should* allow us to remove that blasted sed from the book.

comment:16 by markh@…, 22 years ago

Owner: changed from gerard@… to markh@…
Status: reopenedassigned

comment:17 by markh@…, 22 years ago

Resolution: fixed
Status: assignedclosed

comment:18 by gerard@…, 22 years ago

Keywords: VERIFIED added

comment:19 by gerard@…, 22 years ago

Keywords: VERIFIED removed

comment:20 by highos@…, 21 years ago

Resolution: fixed
Status: closedreopened
Summary: vim-6.1vim-6.2

Version increment (6.2)

comment:21 by highos@…, 21 years ago

Owner: changed from markh@… to lfs-book@…
Status: reopenednew

comment:22 by gerard@…, 21 years ago

Resolution: fixed
Status: newclosed

comment:23 by gerard@…, 20 years ago

dependson: 30

comment:24 by gerard@…, 20 years ago

Cc: blfs-book@… added

comment:25 by winkie@…, 20 years ago

Resolution: fixed
Status: closedreopened
Summary: vim-6.2vim-6.3

Version increment (6.3)

comment:26 by winkie@…, 20 years ago

Resolution: fixed
Status: reopenedclosed

comment:27 by tushar@…, 19 years ago

Resolution: fixed
Status: closedreopened

Version Increment 6.4.

comment:28 by tushar@…, 19 years ago

Summary: vim-6.3vim-6.4

comment:29 by Matthew Burgess, 19 years ago

Version: 3.0-pre3SVN

comment:30 by Matthew Burgess, 18 years ago

Owner: changed from lfs-book@… to Matthew Burgess
Status: reopenednew

comment:31 by Matthew Burgess, 18 years ago

Status: newassigned

comment:32 by Matthew Burgess, 18 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.