[LFS Trac] #2694: Install Vim to /bin

LFS Trac trac at linuxfromscratch.org
Sat Jun 19 19:28:07 PDT 2010

#2694: Install Vim to /bin
 Reporter:  robert@…                     |       Owner:  lfs-book@…                   
     Type:  enhancement                  |      Status:  new                          
 Priority:  low                          |   Milestone:  6.7                          
Component:  Book                         |     Version:  SVN                          
 Severity:  minor                        |    Keywords:                               
 It would be nice to have a text editor available when we're in single user
 mode, or when /usr isn't installed. Vim can still be used, it doesn't link
 to anything in /usr/lib. So:
 mv -v /usr/bin/vim /bin
 And then in /etc/vimrc:

 if (isdirectory("/usr/share/vim"))
   syntax on
 And blam! Vim will work with basic functionality when /usr is not mounted,
 and will work normally when /usr is mounted, and it's all

 I remember that at least 1 BLFS package, sudo I think, expects vi(m) to be
 in /usr/bin, but it's configurable.

Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2694>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.

More information about the lfs-book mailing list