The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - Newcomers (http://hintsforums.macworld.com/forumdisplay.php?f=15)
-   -   Vim Question? (http://hintsforums.macworld.com/showthread.php?t=25789)

fvs 07-15-2004 01:51 PM

Vim Question?
 
I just downloaded vim 6.1 with fink and when I go to edit with vim, I get no such command.
I can't launch it as I used to with old vi, Also I tried to locate it and found that it was in
/usr/local/bin/rvim
/usr/local/bin/vim
/usr/local/bin/vimdiff
/usr/local/bin/vimtutor
/usr/local/share/man/man1/evim.1
/usr/local/share/man/man1/rvim.1
/usr/local/share/man/man1/vim.1
/usr/local/share/man/man1/vimdiff.1
/usr/local/share/man/man1/vimtutor.1
/usr/local/share/vim
When launching it gives me a Thu:15 % cd /usr/local/share
Thu:15 % ls
Eterm aclocal ghostscript gimp-print info locale man vim
Thu:15 % vim
vim: Permission denied.
Thu:15 % sudo vim
Password:
sudo: vim: command not found
How can I get it to work?

yellow 07-15-2004 01:59 PM

./vim

or

sudo ./vim

Please provide the output from:

echo $PATH

sao 07-15-2004 02:33 PM

fvs,

If you installed the vim package with Fink, it should be in:

Code:

[pm @ Sao: ~] % which vim
/sw/bin/vim

Please, check that your PATH environment variable is set properly. Or read and follow the information here.

fvs 07-15-2004 03:06 PM

I guess I don't have it,
Thu:15 % ./vim
./vim: Permission denied.
Thu:15 % sudo ./vim
Password:
sudo: ./vim: command not found
Thu:15 % which vim
vim: Command not found.
Thu:15 % /sw/bin/vim
/sw/bin/vim: Command not found.
Thu:15 %
Maybe i should just down load from vim and remove this one.

yellow 07-15-2004 03:11 PM

I guess I should have been more specific.. When you are in the same directory as where vim is supposedly installed, and that directory is not in your path, you should invoke vim with ./vim, which means you are telling your shell to look here (./) in my current working directory for vim, ignore my PATH.

For me, vim lives in /usr/bin/.

fvs 07-15-2004 03:32 PM

I tried everything I know up to this point, I can't launch it no way. It must be corupt so I'll remove it and reinstall it. Maybe this version 6.1 is not suited for my OS X 2.6 and I only have Dec 2002 Developer Tools. But I down loaded gcc 3.3. Ok if you can give me any more ideas I'll take a shot.
Thu:15 % cd /usr/local/share
Thu:15 % ls
Eterm aclocal ghostscript gimp-print info locale man vim
Thu:15 % vim
vim: Permission denied.
Thu:15 % sudo vim
Thanks for the help.

yellow 07-15-2004 03:33 PM

OK, when you're in the same directory as vim, you need to use ./vim to launch it. Or the absolute path:

/usr/local/share/vim

As sao said, any fink installs are built and installed in /sw.

fvs 07-15-2004 03:53 PM

It's not here.
Thu:15 % cd /sw/bin
Thu:15 % ls
822-date dpkg-buildpackage gtar sensible-pager
apt-cache dpkg-checkbuilddeps gunzip tack
apt-cdrom dpkg-deb gzcat tar
apt-config dpkg-distaddfile gzexe tic
apt-extracttemplates dpkg-genchanges gzip toe
apt-get dpkg-gencontrol iconv tput
apt-sortpkgs dpkg-name infocmp tset
bunzip2 dpkg-parsechangelog infotocap unzip
bzcat dpkg-query init.csh unzipsfx
bzcmp dpkg-scanpackages init.sh which
bzdiff dpkg-scansources md5sum xgettext
bzegrep dpkg-shlibdeps msgcmp zcat
bzfgrep dpkg-source msgcomm zcmp
bzgrep dpkg-split msgfmt zdiff
bzip2 dselect msgmerge zforce
bzip2recover editor msgunfmt zgrep
bzless fink ngettext zipgrep
bzmore fink-virtual-pkgs pager zipinfo
captoinfo funzip pathsetup.sh zless
clear gettext reset zmore
dpkg gettextize savelog znew
dpkg-architecture gnutar sensible-editor
Thu:15 % vi
vi: Command not found.
Thu:15 %
Imust have corupted it some how.

yellow 07-15-2004 03:57 PM

Code:

yellow% fink list vim
Information about 1623 packages read in 1 seconds.
    vim              6.1-16      Improved version of the editor "vi"
    vim-nox          6.1-14      Improved version of the editor "vi"

If it was installed via fink, there would be an "i" next to vim. Like this:

Code:

yellow% fink list nmap
Information about 1623 packages read in 1 seconds.
 i  nmap            3.00-3      Network exploration utility (X11 support)
    nmap-nox        3.00-2      Network exploration utility

I have nmap installed. Does your vim have an "i" next to it from the fink interface?

fvs 07-15-2004 04:54 PM

It doesn't show it here, but when I use locate vim | more command it shows it in
Thu:15 % fink list vim
Information about 1291 packages read in 2 seconds.
vim 6.1-15 Improved version of the editor "vi"
vim-nox 6.1-12 Improved version of the editor "vi"
Thu:15 % cd
Thu:15 % locate vim | more
/Applications/AppleWorks 6/AppleWorks 6.app/Contents/Resources/AppleWorks Help/pt/pgs/ptmvimg.htm
/Developer/Documentation/QuickTime/qtdevdocs/APIREF/SOURCESI/cdseqequivimagedescs.htm
/Library/Receipts/vim-6.1-jaguar.pkg
/Library/Receipts/vim-6.1-jaguar.pkg/Contents
/Library/Receipts/vim-6.1-jaguar.pkg/Contents/Archive.bom
/Library/Receipts/vim-6.1-jaguar.pkg/Contents/Info.plist
/Library/Receipts/vim-6.1-jaguar.pkg/Contents/PkgInfo
/Library/Receipts/vim-6.1-jaguar.pkg/Contents/Resources
/Library/Receipts/vim-6.1-jaguar.pkg/Contents/Resources/Description.plist
/Library/Receipts/vim-6.1-jaguar.pkg/Contents/Resources/vim-6.1-jaguar.loc
/Users/franksoranno/.viminfo
/Users/franksoranno/Download Bin/vim-6.1-jaguar.pkg
/Users/franksoranno/Download Bin/vim-6.1-jaguar.pkg/Contents
/Users/franksoranno/Download Bin/vim-6.1-jaguar.pkg/Contents/Archive.bom
/Users/franksoranno/Download Bin/vim-6.1-jaguar.pkg/Contents/Archive.pax.gz
/Users/franksoranno/Download Bin/vim-6.1-jaguar.pkg/Contents/Info.plist
/Users/franksoranno/Download Bin/vim-6.1-jaguar.pkg/Contents/PkgInfo
/Users/franksoranno/Download Bin/vim-6.1-jaguar.pkg/Contents/Resources
/Users/franksoranno/Download Bin/vim-6.1-jaguar.pkg/Contents/Resources/Description.plist
/usr/local/bin/rvim
/usr/local/bin/vim
/usr/local/bin/vimdiff
/usr/local/bin/vimtutor
/usr/local/share/man/man1/evim.1
/usr/local/share/man/man1/rvim.1
/usr/local/share/man/man1/vim.1
/usr/local/share/man/man1/vimdiff.1
/usr/local/share/man/man1/vimtutor.1
/usr/local/share/vim
/usr/local/share/vim/vim61
/usr/local/share/vim/vim61/bugreport.vim
/usr/local/share/vim/vim61/colors
/usr/local/share/vim/vim61/colors/blue.vim
/usr/local/share/vim/vim61/colors/darkblue.vim
/usr/local/share/vim/vim61/colors/default.vim
/usr/local/share/vim/vim61/colors/elflord.vim
/usr/local/share/vim/vim61/colors/evening.vim
/usr/local/share/vim/vim61/colors/koehler.vim
/usr/local/share/vim/vim61/colors/morning.vim
/usr/local/share/vim/vim61/colors/murphy.vim
/usr/local/share/vim/vim61/colors/pablo.vim
/usr/local/share/vim/vim61/colors/peachpuff.vim
/usr/local/share/vim/vim61/colors/README.txt
/usr/local/share/vim/vim61/colors/ron.vim
/usr/local/share/vim/vim61/colors/shine.vim
/usr/local/share/vim/vim61/colors/torte.vim
/usr/local/share/vim/vim61/colors/zellner.vim
/usr/local/share/vim/vim61/compiler
/usr/local/share/vim/vim61/compiler/ant.vim
/usr/local/share/vim/vim61/compiler/bcc.vim
/usr/local/share/vim/vim61/compiler/irix5_c.vim
/usr/local/share/vim/vim61/compiler/irix5_cpp.vim
/usr/local/share/vim/vim61/compiler/jikes.vim
/usr/local/share/vim/vim61/compiler/mipspro_c89.vim
/usr/local/share/vim/vim61/compiler/mipspro_cpp.vim
/usr/local/share/vim/vim61/compiler/mips_c.vim
/usr/local/share/vim/vim61/compiler/msvc.vim
/usr/local/share/vim/vim61/compiler/README.txt
/usr/local/share/vim/vim61/compiler/splint.vim
/usr/local/share/vim/vim61/compiler/tex.vim
/usr/local/share/vim/vim61/compiler/tidy.vim
/usr/local/share/vim/vim61/delmenu.vim
/usr/local/share/vim/vim61/doc
/usr/local/share/vim/vim61/doc/autocmd.txt
/usr/local/share/vim/vim61/doc/change.txt
/usr/local/share/vim/vim61/doc/cmdline.txt
/usr/local/share/vim/vim61/doc/debugger.txt
/usr/local/share/vim/vim61/doc/develop.txt
/usr/local/share/vim/vim61/doc/diff.txt
/usr/local/share/vim/vim61/doc/digraph.txt
/usr/local/share/vim/vim61/doc/editing.txt
/usr/local/share/vim/vim61/doc/eval.txt
/usr/local/share/vim/vim61/doc/farsi.txt
/usr/local/share/vim/vim61/doc/filetype.txt
/usr/local/share/vim/vim61/doc/fold.txt
/usr/local/share/vim/vim61/doc/gui.txt
/usr/local/share/vim/vim61/doc/gui_w16.txt
/usr/local/share/vim/vim61/doc/gui_w32.txt
/usr/local/share/vim/vim61/doc/gui_x11.txt
/usr/local/share/vim/vim61/doc/hangulin.txt
/usr/local/share/vim/vim61/doc/help.txt
/usr/local/share/vim/vim61/doc/howto.txt
/usr/local/share/vim/vim61/doc/if_cscop.txt
/usr/local/share/vim/vim61/doc/if_ole.txt
/usr/local/share/vim/vim61/doc/if_perl.txt
/usr/local/share/vim/vim61/doc/if_pyth.txt
/usr/local/share/vim/vim61/doc/if_ruby.txt
/usr/local/share/vim/vim61/doc/if_sniff.txt
/usr/local/share/vim/vim61/doc/if_tcl.txt
/usr/local/share/vim/vim61/doc/indent.txt
more


Thu:15 % fink list vim
Information about 1291 packages read in 2 seconds.
vim 6.1-15 Improved version of the editor "vi"
vim-nox 6.1-12 Improved version of the editor "vi"

yellow 07-15-2004 05:03 PM

It doesn't look to me like vim was installed via fink.
But you do have (what looks like) a copy of vim installed.
Possibly at:

/usr/local/bin/vim

To find out if this is the one you compiled, use:

/usr/local/bin/vim --version

And when using ls, you should use some flags to help determine file from directory from executable.
Flags like -l:

Code:

yellow % ls -l /usr/bin/vim
-rwxr-xr-x    1 root    wheel      967284 Jul 14 15:53 /usr/bin/vim*


vancenase 07-15-2004 05:26 PM

also, 'vi' is linked to 'vim' (i believe by default) ... so try typing 'vi':
Code:

[server:~] user% ls -l /usr/bin/vi
lrwxr-xr-x    1 root    wheel          3 Oct 27  2003 /usr/bin/vi -> vim*


fvs 07-15-2004 05:30 PM

Hi Yellow, Thanks for keeping in touch with me through this ordeal, I just went back to fink and started a new download of vim 6.1, That was the only one listed. I hope that this one works. I want to thank you for your kind work. Yours truly, Frank

yellow 07-15-2004 05:38 PM

I believe you already have vim 6.1 installed. Don't waste your time installing it again. Find out which version of the one you have is:

/usr/local/bin/vim --version

Otherwise in fink you should be doing:

fink install vim

fvs 07-15-2004 06:42 PM

Yellow, I can't resolve it.
I'm having trouble to get vim 6.1 going, I downloaded it with fink and yet I can't launch it in the terminal. The first time I loaded it , It gave me a whole discourse and then when I quit and open it to edit a script it repeated the same thing, Also it wont open as a default editor. I reset all my .cshrc .tcshrc .login .bash_profile, To default vim and it wont act like the old vi, I used to just type on the command line vi myscript and up popped the editor, Now I can't .HELP!

fvs 07-15-2004 06:46 PM

Yellow, Check this out,
Thu:15 % vim --version
vim: Command not found.
Thu:15 % cd /sw/bin
Thu:15 % vim --version
VIM - Vi IMproved 6.1 (2002 Mar 24, compiled Jul 15 2004 17:38:40)
Compiled by root@Frank-Sorannos-Computer.local.
Big version without GUI. Features included (+) or not (-):
+autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+cryptv +cscope +dialog_con +diff +digraphs -ebcdic +emacs_tags +eval +ex_extra
+extra_search +farsi +file_in_path +find_in_path +folding -footer +fork()
-gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap
+libcall +linebreak +lispindent +listcmds +localmap +menu +mksession
+modify_fname +mouse -mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm
+mouse_netterm +mouse_xterm +multi_byte +multi_lang -osfiletype +path_extra
-perl +postscript +printer -python +quickfix +rightleft -ruby +scrollbind
+signs +smartindent -sniff +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title
-toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
+vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim
-xterm_clipboard -xterm_save
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/sw/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -I/sw/include -g -O2
Linking:
gcc -L/sw/lib -L/usr/local/lib -o vim -lncurses -liconv -ldl
Thu:15 %

yellow 07-15-2004 06:53 PM

For fink to work, this line MUST be in your .tcshrc:

source /sw/bin/init.csh

Put it in there and then:

source ~/.tcshrc

Then try using vim from the same shell.

fvs 07-15-2004 07:06 PM

alias cp cp -i \!\*
alias mv mv -i \!\*
alias trash mv \!\* ~/.Trash
alias print="lpr -P"
set path = ( $path /Developer/Tools )
setenv VISUAL vim
setenv DISPLAY :0
set path=( $path ~/bin )
alias rm rm -i \!\*
find . -name $1 -print
set prompt='%d:%D %# '
umask 022

source /sw/bin/init.csh

It was in there already.

yellow 07-15-2004 07:16 PM

Strange that vim cannot be found in your path then..
What is the output of:

echo $PATH

fvs 07-15-2004 07:29 PM

Thu:15 % echo $PATH
/Users/franksoranno/bin:/user/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:.:/Developer/Tools
Thu:15 %

yellow 07-15-2004 07:40 PM

1) Something is wrong, the fink hierarchy is not in your path. Open a new terminal window and do "echo $PATH" again. You should see /sw/bin & /sw/sbin in it.

2) Having . (current working directory) as part of your path is not a good idea. I can be used to exploit and compromise your UNIX box.

vancenase 07-15-2004 07:43 PM

fvs ... are you using TCSH? if you are using BASH, adding those lines to the .tcshrc will not help (might go in .bashrc?)

yellow 07-15-2004 07:45 PM

Quote:

Originally Posted by fvs
Thu:15 % echo $PATH
/Users/franksoranno/bin:/user/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:.:/Developer/Tools
Thu:15 %

Looks to me like tcsh, though he did declare his own prompt, so I be getting fooled. But he did mention he was using Jaguar.
If so, like vancenase said, that source source /sw/bin/init.csh needs to go into your .bashrc.

sao 07-15-2004 10:40 PM

Quote:

fvs wrote:
hu:15 % echo $PATH
/Users/franksoranno/bin:/user/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:.:/Developer/Tools
You could have avoided such a 'long' exercise if you would have posted the result of 'echo $PATH' as yellow asked you to do in his first post, or read and follow the info at the link I suggested to set your PATH environment variable following Fink guidelines.

Anyhow, run in Terminal.app and post the result of:

sw_vers
fink -V
echo $SHELL
echo $0

Then, check to see if you have in the /sw/bin directory "pathsetup.command" or "pathsetup.sh" . If you have the first one, run from Terminal.app:

open /sw/bin/pathsetup.command

If you have the second one, run from Terminal.app:

/sw/bin/pathsetup.sh

When done, run in Terminal.app and post the result of:

echo $PATH

fvs 07-16-2004 06:44 AM

Sao, Here are results

clear infocmp xgettext
dpkg infotocap xxd
dpkg-architecture init.csh zcat
dpkg-buildpackage init.sh zcmp
dpkg-checkbuilddeps md5sum zdiff
dpkg-deb msgcmp zforce
dpkg-distaddfile msgcomm zgrep
dpkg-genchanges msgfmt zipgrep
dpkg-gencontrol msgmerge zipinfo
dpkg-name msgunfmt zless
dpkg-parsechangelog ngettext zmore
dpkg-query pager znew
dpkg-scanpackages pathsetup.sh
Fri:16 % open /sw/bin/pathsetup.sh
2004-07-16 06:37:48.916 open[421] LSOpenFromURLSpec() returned -10814 for application (null) path /sw/bin/pathsetup.sh.
2004-07-16 06:37:48.918 open[421] Couldn't open file: /sw/bin/pathsetup.sh
Fri:16 % echo $PATH
/Users/franksoranno/bin:/user/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:.:/Developer/Tools
Fri:16 %
Fri:16 % cd Terminal.app/
Fri:16 % echo $PATH
/Users/franksoranno/bin:/user/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:.:/Developer/Tools
Fri:16 %

fvs 07-16-2004 07:05 AM

Sao, Yellow and Vancense I'm running:
Fri:16 % echo $SHELL
/bin/tcsh
Fri:16 %
ri:16 % env
HOME=/Users/franksoranno
SHELL=/bin/tcsh
USER=franksoranno
LANG=en_US
PATH=/Users/franksoranno/bin:/user/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:.:/Developer/Tools
__CF_USER_TEXT_ENCODING=0x1F5:0:0
TERM=vt100
TERMCAP=����
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=81
LOGNAME=franksoranno
HOSTTYPE=macintosh
VENDOR=apple
OSTYPE=darwin
MACHTYPE=powerpc
SHLVL=1
PWD=/Users/franksoranno
GROUP=staff
HOST=Frank-Sorannos-Computer.local.
VISUAL=vim
DISPLAY=:0
MANPATH=/sw/share/man:/usr/share/man
INFOPATH=/sw/share/info:/sw/info:/usr/share/info
PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin
EDITOR=vim
Fri:16 %

I really appreciate all the help, Your the greatest bunch. Maybe I need to start from scratch?
Is there away to clean up my present terminal and start all over? Frank

fvs 07-16-2004 07:15 AM

Yellow I did notice this reply:
2) Having . (current working directory) as part of your path is not a good idea. I can be used to exploit and compromise your UNIX box.

How am I supposed to have my path set without the current working directory, Can you show me.
Thanks for all the help. Frank

sao 07-16-2004 08:02 AM

fvs,

Let's not waste time! You obviously did not read my previous post correctly. Re-read it 3~4 times until you understand it.

First, you didn't post the result of running in Terminal.app the following:

sw_vers
fink -V
echo $SHELL
echo $0


Second, what is this...???
Code:

clear infocmp xgettext
 dpkg infotocap xxd
 dpkg-architecture init.csh zcat
 dpkg-buildpackage init.sh zcmp
 dpkg-checkbuilddeps md5sum zdiff
 dpkg-deb msgcmp zforce
 dpkg-distaddfile msgcomm zgrep
 dpkg-genchanges msgfmt zipgrep
 dpkg-gencontrol msgmerge zipinfo
 dpkg-name msgunfmt zless
 dpkg-parsechangelog ngettext zmore
 dpkg-query pager znew
 dpkg-scanpackages pathsetup.sh


Third, you ran the following, which is wrong!
Code:

Fri:16 % open /sw/bin/pathsetup.sh
Again, re-read my previous post and follow my instructions correctly. If you found in the /sw/bin/ folder the file "pathsetup.sh" then run in Terminal.app :

/sw/bin/pathsetup.sh

This command will set your PATH environment variable in order for you to use the software installed in Fink's directory hierarchy.

When done, run 'echo $PATH'.

fvs 07-16-2004 08:24 AM

Fri:16 % cd /Applications/Utilities/Terminal.app/
Fri:16 % /sw/bin/pathsetup.sh

Fri:16 % pwd
/Applications/Utilities/Terminal.app
Fri:16 % sw_ver
sw_ver: Command not found.
Fri:16 % fink -V
fink: Command not found.
Fri:16 % echo $SHELL
/bin/tcsh
Fri:16 % echo $0
-tcsh
Fri:16 % Fri:16 % cd /Applications/Utilities/Terminal.app/
Fri:16: Command not found.
Fri:16 % /sw/bin/pathsetup.sh

Fri:16 % Fri:16 % /sw/bin/pathsetup.sh
Fri:16: Command not found.
Fri:16 %
Fri:16 % echo $path
/Users/franksoranno/bin /user/local/sbin /usr/sbin /sbin /usr/local/bin /usr/bin /bin . /Developer/Tools
Fri:16 %

sao 07-16-2004 08:40 AM

fvs,

Ok. Let's quickly start again. Open a finder window, do you see a /sw folder?

fvs 07-16-2004 08:49 AM

I can't see it in finder window. Not in my Home.

sao 07-16-2004 08:52 AM

fvs,

No, not in your home directory, look at the / level of your HD.

fvs 07-16-2004 09:01 AM

I was in my desktop HD franksoranno Home.

sao 07-16-2004 09:04 AM

fvs,

Open a finder window, click once in your HD icon, you will should see inside the following folders:

Applications
Developer
Library
System
sw
Users

Do you see the sw folder?

fvs 07-16-2004 09:08 AM

Yes its there, Sorry

sao 07-16-2004 09:22 AM

fvs,

Great! Now, put the finder window in column view and select the folder sw, do you see now a bin folder?

If you see a bin folder, select it and now look inside for either one of these two files:

pathsetup.command

or

pathsetup.sh

Which one do you see?

fvs 07-16-2004 10:23 AM

pathsetup.sh

sao 07-16-2004 10:50 AM

fvs,

Ok. That was to confirm which file you had.

After you ran in Terminal.app the script "/sw/bin/pathsetup.sh", did you typed 'rehash' or closed/open Terminal.app ?

You PATH should look like this:
Code:

[pm @ Sao: ~] % echo $PATH
/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/pm:/Users/pm/bin:/usr/X11R6/bin:/Developer/Tools

If the command "/sw/bin/pathsetup.sh" didn't work, you can set your PATH environment variable manually.

Do you have a ~/.cshrc or ~/.tcshrc file? What's the result of:

ls -a

fvs 07-16-2004 11:15 AM

I did as you asked and got an error message that it could not set the path and to look in .tcshrc file.
Here it is;

UW PICO(tm) 4.6 File: .tcshrc

alias cp cp -i \!\*
alias mv mv -i \!\*
alias trash mv \!\* ~/.Trash
alias print="lpr -P"
set path = ( $path /Developer/Tools )
setenv VISUAL vim
setenv DISPLAY :0
set path=( $path ~/bin )
alias rm rm -i \!\*
find . -name $1 -print
set prompt='%d:%D %# '
umask 022


source /sw/bin/init.csh

sao 07-16-2004 11:58 AM

fvs,

Ok, write the line:

source /sw/bin/init.csh

as the first line in the beginning of your ~/.tcshrc file.

Then close and save the file and type 'rehash' or close/open Terminal.app.

Finally, run again:

echo $PATH

fvs 07-16-2004 12:17 PM

Here it is:


source /sw/bin/init.csh

alias cp cp -i \!\*
alias mv mv -i \!\*
alias trash mv \!\* ~/.Trash
alias print="lpr -P"
set path = ( $path /Developer/Tools )
setenv VISUAL vim
setenv DISPLAY :0
set path = ( $path ~/bin )
alias rm rm -i \!\*
find . -name $1 -print
set prompt='%d:%D %# '
umask 022
Fri:16 % rehash
Fri:16 % cd /Applications/Utilities/Terminal.app/
Fri:16 % echo $PATH
/Users/franksoranno/bin:/user/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:.:/Developer/Tools
Fri:16 %

fvs 07-16-2004 12:29 PM

Sao, Thanks for trying to help. I must be helpless with this problem, I'm just not going to use vim for now and stick to pico for the time being. I feel very guilty for taking up so much of your time with this thread.
I sure appreciate this forum. It's Great. Thanks once more. Frank

sao 07-16-2004 12:39 PM

fvs,

I understand...but one more thing you could try is to mv your ~/.tcshrc away and create a new one with only 'source /sw/bin/init.csh' to see if it works.

First run:

cd (to go to your home directory)

Then:

mv .tcshrc .tcshrc_bak

Then:

pico .tcshrc (to open the text editor Pico, and create a file named .tcshrc)

When the text editor open, type:

source /sw/bin/init.csh

at the end of the line press Return once.

Then press Control-O, Return, and control-X

to save the file and return to the prompt.

Now you should type rehash or close-open the terminal window.

Open Terminal.app again and run:

echo $PATH

yellow 07-16-2004 12:45 PM

Quote:

Originally Posted by fvs
Yellow I did notice this reply:
2) Having . (current working directory) as part of your path is not a good idea. I can be used to exploit and compromise your UNIX box.

How am I supposed to have my path set without the current working directory, Can you show me.
Thanks for all the help. Frank

Please read (look for the header "Stealing Superuser"):
http://www.busan.edu/~nic/networking/puis/ch04_03.htm

You don't need your current working directory as part of your path. If you're trying to run an application/binary that is in the same directory as you, simply append ./ to it. For example:

If I am in the /usr/local/bin directory, and that directory isn't part of my path, and I need to run "foo.binary", all I have to do is type ./foo.binary and it will run. The "./" means, look for the following command in the current working directory.

fvs 07-16-2004 01:06 PM

Chris,This is all I get,
Fri:16 % cd /Applications/Utilities/Terminal.app/
Fri:16 % sw_vers
ProductName: Mac OS X
ProductVersion: 10.2.6
BuildVersion: 6L60
Fri:16 % fink -V
fink: Command not found.
Fri:16 % echo $SHELL
/bin/tcsh
Fri:16 % echo $0
-tcsh
Fri:16 %

yellow 07-16-2004 01:16 PM

Quote:

Originally Posted by fvs
Chris,This is all I get,
Fri:16 % cd /Applications/Utilities/Terminal.app/

Fvs, there's no need to type the above part.

Try this to get the fink version:

/sw/bin/fink -V

After that, try sao's post above about moving and replacing yout .tcshrc with a fresh clean copy.

fvs 07-16-2004 01:56 PM

Yellow, I did what sao told me only to get an error message with 101 eroors. here is what you asked for.
/sw/bin/fink -V
Package manager version: 0.18.4
Distribution version: 0.6.3

Copyright (c) 2001 Christoph Pfisterer
Copyright (c) 2001-2003 The Fink Package Manager Team
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
I personaly think something in my terminal is corrupt or I screwed up something in the terminal, Any way to start a new clean terminal? Did you see Chris results from his Terminal.app and then look at mine, Their not the same in detail. Hey guys thanks this is beating me. Frank

yellow 07-16-2004 02:13 PM

Please post the results of:

ls -laF ~

Also, your fink installation is quite out of date. Current is:

yellow% fink -V
Package manager version: 0.20.5
Distribution version: 0.7.0.cvs

But we'll get to that when we get to that.

fvs 07-16-2004 06:48 PM

ls -laF ~
total 288
drwxr-xr-x 50 franksor staff 1700 Jul 16 14:02 ./
drwxrwxr-t 5 root wheel 170 Dec 16 2003 ../
-rwxr-xr-x 1 franksor staff 15364 Jul 16 14:02 .DS_Store*
-rw-r--r-- 1 franksor staff 0 Dec 16 2003 .MCXLC
drwx------ 3 franksor staff 102 Jul 15 19:28 .Trash/
-rw-r--r-- 1 franksor staff 0 Jul 8 13:31 .addressbook
-rw------- 1 franksor staff 2285 Jul 8 13:31 .addressbook.lu
-rw------- 1 franksor staff 5173 Jul 16 14:00 .bash_history
-rw-r--r-- 1 franksor staff 206 Jul 15 13:24 .bash_profile
-rwxr-xr-x 1 franksor staff 94 Jul 16 14:02 .bashrc*
-rw-r--r-- 1 franksor staff 77 Jul 15 17:55 .cshrc
-rw------- 1 franksor staff 71 Jun 24 08:13 .cvspass
drwxr-xr-x 3 franksor staff 102 Jul 14 07:03 .emacs.d/
-rw-r--r-- 1 franksor staff 59 Jul 4 15:54 .exrc
-rw-r--r-- 1 franksor staff 257 Jul 15 18:02 .login
-rw-r--r-- 1 franksor staff 20 Jul 16 09:03 .lpoptions
-rw------- 1 franksor staff 11816 Jul 13 15:36 .pine-debug1
-rw------- 1 franksor staff 11465 Jul 8 14:32 .pine-debug2
-rw------- 1 franksor staff 16330 Jul 8 14:28 .pine-debug3
-rw------- 1 franksor staff 15935 Jul 8 14:22 .pinerc
-rwxr--r-- 1 franksor staff 65 Jul 13 17:51 .profile*
-rw-r--r-- 1 franksor staff 1204 Dec 27 2003 .rmprops
-rw-r--r-- 1 franksor staff 25 Jul 16 13:34 .tcshrc
-rwxr-xr-x 1 franksor staff 269 Jul 16 12:30 .tcshrc_bak*
-rw------- 1 franksor staff 2744 Jul 16 13:44 .viminfo
-rw-r--r-- 1 franksor staff 24 Jul 15 19:15 .vimrc
drwxrwxrwx 10 franksor staff 340 Jul 14 13:34 Advanced FileMaker/
drwx------ 8 franksor staff 272 Jun 13 18:16 BU Documents/
drwxr--r-- 4 franksor staff 136 Jul 1 19:21 Business AW6/
drwxr--r-- 4 franksor staff 136 Jul 14 13:34 Business Fp5/
drwxr--r-- 5 franksor staff 170 Jun 19 15:29 CAP Jobs/
drwxr-xr-x 9 franksor staff 306 Jul 16 18:35 Desktop/
drwxr--r-- 10 franksor staff 340 Jul 6 08:34 Documents/
drwxr-xr-x 10 franksor staff 340 Jul 15 19:28 Download Bin/
drwxr--r-- 8 franksor staff 272 Jun 13 18:16 Family & Library FP5/
drwxrwxrwx 3 franksor staff 102 Apr 12 22:20 FinkCommander.app/
drwxrwxrwx 20 franksor staff 680 Jul 6 16:19 Frank Soranno???s Movie/
drwx------ 41 franksor staff 1394 Jul 12 13:32 Library/
drwx------ 6 franksor staff 204 Jun 10 07:10 Music/
drwx------ 5 franksor staff 170 Jul 6 16:14 Pictures/
drwxr-xr-x 5 franksor staff 170 Jun 19 15:29 Public/
drwxr--r-- 6 franksor staff 204 Jan 12 2004 Sites/
drwxrwxrwx 16 franksor staff 544 Jun 10 19:23 VTC movies/
drwxr--r-- 6 franksor staff 204 May 9 11:56 Year 2003 File/
drwxr--r-- 7 franksor staff 238 Jul 16 14:02 bin/
drwxr--r-- 16 franksor staff 544 Jul 15 11:25 filebin/
-rwxr-xr-x 1 franksor staff 347 Jul 13 16:08 greeting*
drwx------ 5 franksor staff 170 Jul 8 14:28 mail/
drwxr--r-- 11 franksor staff 374 Jul 5 08:03 safety/
-rwxrw-rw- 1 franksor staff 23 Jul 1 18:23 sfind*
[Frank-Sorannos-Computer:~] franksoranno%

yellow 07-16-2004 09:40 PM

Are you an admin on this computer?

fvs 07-17-2004 06:55 AM

Single user and admin

yellow 07-17-2004 09:37 AM

OK.

Do these steps one at a time to clean up your account:

mv .bash_profile .bash_profile.bak

mv .bashrc .bashrc.bak

mv .cshrc .cshrc.bak

mv .tcshrc .tcshrc.bak

mv .login .login.bak

Quit Terminal.app (or whatever terminal application you're using) and then ReOpen it.

Post back when you're done with all that.

fvs 07-17-2004 07:47 PM

It's done. Frank

yellow 07-18-2004 02:47 PM

Now,

pico ~/.login

And put in:

setenv PATH "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
source /sw/bin/init.csh


Save and close it. Quit Terminal.app, then reopen Terminal.app. Then in the new window:

echo $PATH

And post that back here.

fvs 07-18-2004 03:53 PM

Last login: Sun Jul 18 15:40:14 on tty??
Welcome to Darwin!
[Frank-Sorannos-Computer:~] franksoranno% echo $PATH
/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
[Frank-Sorannos-Computer:~] franksoranno%

Hi Yellow, I looks good, I removed vim-nox and just want my old vi back, How can I get the old version back? I remove all of vim* and theirs not a trace in my terminal. Can you give me some direction. Thanks Frank

yellow 07-18-2004 04:27 PM

Quote:

Originally Posted by fvs
Last login: Sun Jul 18 15:40:14 on tty??
Welcome to Darwin!
[Frank-Sorannos-Computer:~] franksoranno% echo $PATH
/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
[Frank-Sorannos-Computer:~] franksoranno%

your path is now correct for using fink. I think now you should tell fink to update itself to the latest version. Try this:

fink selfupdate

fvs 07-18-2004 04:59 PM

I did the fink selfupdate, In fink list I only see vim 6.1 and vim-nox 6.1, the first down load I pick vim-nox because I'm not running X and to down load vim /with all other 12 programs takes forever, I'm on dialup modem and it takes forever. I just want vi editor simple. Don't need all the extras.
Can you show me the way? Frank

yellow 07-18-2004 09:34 PM

fink install vim-nox

fvs 07-19-2004 07:48 AM

Quote:

Originally Posted by yellow
fink install vim-nox

Yellow, I downloaded vin-nox from fink sucessfully and went to /sw/bin. tried to launch vim, to no avail;
[Frank-Sorannos-Computer:~] franksoranno% ~/.vim
/Users/franksoranno/.vim: Command not found.
[Frank-Sorannos-Computer:~] franksoranno% cd /sw/bin
[Frank-Sorannos-Computer:/sw/bin] franksoranno% ls
822-date dpkg-deb gzexe tic
apt-cache dpkg-distaddfile gzip toe
apt-cdrom dpkg-genchanges iconv tput
apt-config dpkg-gencontrol infocmp tset
apt-extracttemplates dpkg-name infotocap unzip
apt-get dpkg-parsechangelog init.csh unzipsfx
apt-sortpkgs dpkg-query init.sh view
bunzip2 dpkg-scanpackages md5sum vim
bzcat dpkg-scansources msgcmp vimdiff
bzcmp dpkg-shlibdeps msgcomm vimtutor
bzdiff dpkg-source msgfmt which
bzegrep dpkg-split msgmerge xgettext
bzfgrep dselect msgunfmt xxd
bzgrep editor ngettext zcat
bzip2 ex pager zcmp
bzip2recover fink pathsetup.sh zdiff
bzless fink-virtual-pkgs reset zforce
bzmore funzip rview zgrep
captoinfo gettext rvim zipgrep
clear gettextize savelog zipinfo
dpkg gnutar sensible-editor zless
dpkg-architecture gtar sensible-pager zmore
dpkg-buildpackage gunzip tack znew
dpkg-checkbuilddeps gzcat tar
[Frank-Sorannos-Computer:/sw/bin] franksoranno% vim
vim: Command not found.
[Frank-Sorannos-Computer:/sw/bin] franksoranno%
check results? What next? Frank

fvs 07-19-2004 07:59 AM

Checked fink list of installed packages;
i file-spec-pm 0.82-1 Perform operations on file names
i fink 0.20.5-1 The Fink package manager
i fink-mirrors 0.20.2.1-1 Mirror infrastructure
i fink-prebinding 0.7.1-2 Tools for enabling prebinding in Fink
i gcc2 2.95.2-1 [virtual package representing the gcc 2.95.2 compiler]
i gcc2.95 2.95.2-1 [virtual package representing the gcc 2.95.2 compiler]
i gcc3.1 3.1-1 [virtual package representing the gcc 3.1 compiler]
i gcc3.3 3.3-1 [virtual package representing the gcc 3.3 compiler]
i gettext 0.10.40-18 Message localization support
i gettext-bin 0.10.40-18 Executables for gettext package
i gettext-dev 0.10.40-18 Developer files for gettext package
i gzip 1.2.4a-6 The gzip file compressor
i libiconv 1.9.1-11 Character set conversion library
i libiconv-bin 1.9.1-11 Executables for libiconv package
i libiconv-dev 1.9.1-11 Developer files for libiconv package
i macosx 10.2.6-1 [virtual package representing the system]
i ncurses 5.3-12 Full-screen ascii drawing library
i ncurses-dev 5.3-12 Shared libraries for ncurses package
i ncurses-shlibs 5.3-12 Shared libraries for ncurses package
i storable-pm 1.0.14-6 Placeholder for versioned Storable packages
i storable-pm560 1.0.14-3 Perl module for persistent data structures, v. 5.6.0
i system-java13 1.3.1-1 [virtual package representing Java 1.3.1]
i system-java13-dev 1.3.1-1 [virtual package representing Java 1.3.1 development headers]
i system-perl 5.6.0-1 [virtual package representing perl]
i tar 1.13.25-12 GNU tar - tape archiver
i test-harness-pm 2.26-2 Run perl test scripts with statistics
i test-simple-pm 0.47-1 Basic utilities for writing tests
i unzip 5.50-4 Decompression compatible with pkunzip
i vim-nox 6.1-12 Improved version of the editor "vi"
[Frank-Sorannos-Computer:/sw/bin] franksoranno%
It's in there.

chris_on_hints 07-19-2004 08:47 AM

hi frank

the "~/.vim" file will be the preferences file for vim. this goes for most files beginning with "." in your home directory (~/). when you try to run them, the shell will spot that they are not executable files and give a "command not found" error.

when you tried to run vim, you did a "cd /sw/bin" and then "vim". NOTE that this will NOT work. you should have typed "./vim" or been really specific and typed "/sw/bin/vim". unless "." (ie the current directory) is in your $PATH, the shell will not look there. (and its not, cos i have read the previous posts)

the "fink list" that you ran shows that vim was installed. and you can find it in /sw/bin. thats good.

when you install a new program, you need to tell your shell (tcsh or bash etc) that the new program is there. in tcsh, you can type "rehash" and hit enter. you can do something similar in bash - but i cant remember what the command is. The easiest way to do it is to start a new shell: Quit Terminal.app (not just close the window) and then re-start it. The new terminal window will have found your new program.

to check that it can find the correct program, type:

which vim

this should reply with something like "/sw/bin/vim".
if it still says it can't find it, then check that /sw/bin is in your path:

echo $PATH

good luck!!!

you are nearly there!!

in fact, you are probably already there!!

yellow 07-19-2004 09:40 AM

Just type vim at the prompt. The bin directory for fink is already in your path, so it will automatically look there.

fvs 07-19-2004 11:20 AM

Quote:

Originally Posted by yellow
Just type vim at the prompt. The bin directory for fink is already in your path, so it will automatically look there.

Why do I get all this?
[Frank-Sorannos-Computer:~] franksoranno% vim .login

--- Options ---
aleph=224 equalalways keymodel= rulerformat= notextauto
noallowrevins equalprg= keywordprg=man scroll=15 notextmode
noaltkeymap noerrorbells langmap= noscrollbind textwidth=0
autoindent noesckeys langmenu= scrolljump=1 thesaurus=
noautoread eventignore= laststatus=1 scrolloff=0 notildeop
noautowrite noexpandtab nolazyredraw nosecure timeout
noautowriteall noexrc nolinebreak selectmode= timeoutlen=1000
background=light fileencoding= lines=31 shell=/bin/tcsh notitle
backspace= fileformat=unix nolisp shellcmdflag=-c titlelen=85
nobackup fileformats= nolist shellpipe=| tee titlestring=
backupcopy=yes filetype= listchars=eol:$ shellquote= nottimeout
backupext=~ nofkmap loadplugins shellredir=> ttimeoutlen=-1
backupskip=/tmp/* foldclose= magic shellxquote= ttybuiltin
nobinary foldcolumn=0 makeef= noshiftround ttyfast
nobomb foldenable makeprg=make shiftwidth=8 ttymouse=
bufhidden= foldexpr=0 matchtime=5 shortmess= ttyscroll=999
buflisted foldignore=# maxfuncdepth=100 noshortname ttytype=vt100
buftype= foldlevel=0 maxmapdepth=1000 showbreak= undolevels=1000
cdpath=,, foldlevelstart=-1 maxmem=3072 noshowcmd updatecount=200
cedit= foldmethod=manual maxmemtot=3072 noshowfulltag updatetime=4000
charconvert= foldminlines=1 menuitems=25 noshowmatch verbose=0
nocindent foldnestmax=20 nomodeline showmode viminfo=
cinoptions= formatoptions=vt modelines=5 sidescroll=0 virtualedit=
cmdheight=1 formatprg= modifiable sidescrolloff=0 novisualbell
cmdwinheight=7 nogdefault nomodified nosmartcase warn
columns=100 helpheight=20 nomore nosmartindent noweirdinvert
compatible nohidden mouse= nosmarttab whichwrap=
noconfirm history=0 mousemodel=extend softtabstop=0 wildchar=^E
cscopepathcomp=0 nohkmap mousetime=500 nosplitbelow wildcharm=0
cscopeprg=cscope nohkmapp nonumber nosplitright wildignore=
nocscopetag nohlsearch nopaste startofline nowildmenu
cscopetagorder=0 noicon pastetoggle= statusline= wildmode=full
nocscopeverbose iconstring= patchexpr= suffixesadd= winheight=1
debug= ignorecase patchmode= swapfile winminheight=1
nodelcombine iminsert=0 previewheight=12 swapsync=fsync winminwidth=1
dictionary= imsearch=0 nopreviewwindow switchbuf= winwidth=20
nodiff includeexpr= printdevice= syntax= wrap
diffexpr= noincsearch printfont=courier tabstop=8 wrapmargin=0
diffopt=filler indentexpr= printoptions= tagbsearch wrapscan
nodigraph noinfercase noreadonly taglength=0 write
display= noinsertmode remap notagrelative nowriteany
eadirection=both isprint=@,161-255 report=2 tagstack writebackup
noedcompatible joinspaces norevins term=vt100 writedelay=0
encoding=latin1 key= norightleft termencoding=
endofline keymap= noruler noterse
backupdir=.,~/tmp,~/
breakat= ^I!@*-+;:,./?
cinkeys=0{,0},0),:,0#,!^F,o,O,e
cinwords=if,else,while,do,for,switch
comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
commentstring=/*%s*/
complete=.,w,b,u,t,i
cpoptions=aAbBcCdDeEfFgijJkKlLmnoOprsStuwWxy$!%*<
define=^#\s*define
directory=.,~/tmp,/var/tmp,/tmp
errorfile=errors.err
errorformat=%*[^"]"%f"%*\D%l: %m,"%f"%*\D%l: %m,%-G%f:%l: (Each undeclared identifier is reported
only once,%-G%f:%l: for each function it appears in.),%f:%l:%m,"%f"\, line %l%*\D%c%*[^ ] %m,%D%*\a[
%*\d]: Entering directory `%f',%X%*\a[%*\d]: Leaving directory `%f',%DMaking %*\a in %f
fileencodings=ucs-bom
fillchars=vert:|,fold:-
foldmarker={{{,}}}
foldopen=block,hor,mark,percent,quickfix,search,tag,undo
foldtext=foldtext()
grepformat=%f:%l:%m,%f:%l%m,%f %l%m
grepprg=grep -n $* /dev/null
helpfile=/sw/share/vim/vim61/doc/help.txt
highlight=8:SpecialKey,@:NonText,d:Directory,e:ErrorMsg,i:IncSearch,l:Search,m:MoreMsg,M:ModeMsg,n
:LineNr,r:Question,s:StatusLine,S:StatusLineNC,c:VertSplit,t:Title,v:Visual,V:VisualNOS,w:WarningMsg
,W:WildMenu,f:Folded,F:FoldColumn,A:DiffAdd,C:DiffChange,D:DiffDelete,T:DiffText
include=^#\s*include
indentkeys=0{,0},:,0#,!^F,o,O,e
isfname=@,48-57,/,.,-,_,+,,,#,$,%,~,=
isident=@,48-57,_,192-255
iskeyword=@,48-57,_
lispwords=defun,define,defmacro,set!,lambda,if,case,let,flet,let*,letrec,do,do*,define-syntax,let-
syntax,letrec-syntax,destructuring-bind,defpackage,defparameter,defstruct,deftype,defvar,do-all-symb
ols,do-external-symbols,do-symbols,dolist,dotimes,ecase,etypecase,eval-when,labels,macrolet,multiple
-value-bind,multiple-value-call,multiple-value-prog1,multiple-value-setq,prog1,progv,typecase,unless
,unwind-protect,when,with-input-from-string,with-open-file,with-open-stream,with-output-to-string,wi
th-package-iterator,define-condition,handler-bind,handler-case,restart-bind,restart-case,with-simple
-restart,store-value,use-value,muffle-warning,abort,continue,with-slots,with-slots*,with-accessors,w
ith-accessors*,defclass,defmethod,print-unreadable-object
matchpairs=(:),{:},[:]
nrformats=octal,hex
paragraphs=IPLPPPQPP LIpplpipbp
path=.,/usr/include,,
printexpr=system('lpr' . (&printdevice == '' ? '' : ' -P' . &printdevice) . ' ' . v:fname_in) . de
lete(v:fname_in) + v:shell_error
printheader=%<%f%h%m%=Page %N
runtimepath=~/.vim,/sw/share/vim/vimfiles,/sw/share/vim/vim61,/sw/share/vim/vimfiles/after,~/.vim/
after
scrollopt=ver,jump
sections=SHNHH HUnhsh
selection=inclusive
sessionoptions=blank,buffers,curdir,folds,help,options,winsize
suffixes=.bak,~,.o,.h,.info,.swp,.obj
tags=./tags,./TAGS,tags,TAGS
titleold=Thanks for flying Vim
viewdir=~/.vim/view
viewoptions=folds,options,cursor
Hit ENTER or type command to continue

fvs 07-19-2004 11:22 AM

Quote:

Originally Posted by chris_on_hints
hi frank

the "~/.vim" file will be the preferences file for vim. this goes for most files beginning with "." in your home directory (~/). when you try to run them, the shell will spot that they are not executable files and give a "command not found" error.

when you tried to run vim, you did a "cd /sw/bin" and then "vim". NOTE that this will NOT work. you should have typed "./vim" or been really specific and typed "/sw/bin/vim". unless "." (ie the current directory) is in your $PATH, the shell will not look there. (and its not, cos i have read the previous posts)

the "fink list" that you ran shows that vim was installed. and you can find it in /sw/bin. thats good.

when you install a new program, you need to tell your shell (tcsh or bash etc) that the new program is there. in tcsh, you can type "rehash" and hit enter. you can do something similar in bash - but i cant remember what the command is. The easiest way to do it is to start a new shell: Quit Terminal.app (not just close the window) and then re-start it. The new terminal window will have found your new program.

to check that it can find the correct program, type:

which vim

this should reply with something like "/sw/bin/vim".
if it still says it can't find it, then check that /sw/bin is in your path:

echo $PATH

good luck!!!

you are nearly there!!

in fact, you are probably already there!!

Chris, did you see the results I posted to Yellow, Why all that ? It does every launch?

yellow 07-19-2004 11:25 AM

Quote:

Originally Posted by fvs
Why do I get all this?
[Frank-Sorannos-Computer:~] franksoranno% vim .login

I know nothing about vim. I use pico, emacs, and vi when I must.

fvs 07-19-2004 11:37 AM

Quote:

Originally Posted by yellow
I know nothing about vim. I use pico, emacs, and vi when I must.

Thanks Yellow, I like to thank all of you that replied, especially Yellow for staying with me.
If anyone can please tell me how to launch vim without the introduction it would be appreciated Frank

yellow 07-19-2004 11:53 AM

Strange. I just installed vim-nox via fink, and did vim ~/.login and got:

Code:

# Local .login

setenv PATH "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/tripwire/bin"
source /sw/bin/init.csh


fvs 07-19-2004 12:01 PM

Quote:

Originally Posted by yellow
Strange. I just installed vim-nox via fink, and did vim ~/.login and got:

Code:

# Local .login

setenv PATH "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/tripwire/bin"
source /sw/bin/init.csh


Yellow, Do you think this version is too buggy? Is there another vim that's more stable?, or is there something I'm missing? I almost think that I should stick to pico as my editor and forget vim. Frank

yellow 07-19-2004 12:08 PM

I don't think it's buggy.. it's version 6.1. It's very hard to say what is going on. Try this:

vim ~/TESTVIM

Does it open a new blank file in vim?

fvs 07-19-2004 12:40 PM

Quote:

Originally Posted by yellow
I don't think it's buggy.. it's version 6.1. It's very hard to say what is going on. Try this:

vim ~/TESTVIM

Does it open a new blank file in vim?

Yellow it worked, I just have to work my way through the new help pages. Thanks again. Frank

yellow 07-19-2004 12:46 PM

It's quote possible something is misconfigured in your ~/.viminfo and/or ~/.vimrc. Go ahead and quit vim, and remove those 2 files:

rm ~/.vimrc ~/.viminfo

Then do:

vim ~/TESTVIM

And see if it opens as normal. It should. And it will recreate the ~/.viminfo file.


All times are GMT -5. The time now is 10:36 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.