slackware 13.1 doesnt not recognize vim
here is my /etc/profile file:
Code:
# /etc/profile: This file contains system-wide defaults used by export EDITOR="/usr/bin/vim" , nothing, everytime i invoke vim , i just get vi which sucks really hard. the only time i am able to call the real vim,is by: Code:
$ /usr/bin/vim $ echo $EDITOR i get: /usr/bin/vim so why doesnt slackware calls vim??? it just defaults to the really wacky vi. Note: i downloaded the tar.gz package vim, and did :configure, make , make install, all went well. what else can i do ? |
Post the output of
Code:
$ which vim |
Quote:
Code:
$ which vim Code:
$ alias vim Code:
$ echo $PATH Code:
$ ls -l /usr/bin/vim not when i editing a system file like fstab su-c 'vim /etc/fstab' does not calls vim, just vi |
Hi
<snip> > so why doesnt slackware calls vim??? what does this mean ? Is there a specific application you are talking about ? Some apps use $VISUAL instead of $EDITOR <snip> regards, John |
Quote:
for example su -c 'vim /etc/fstab' does not calls vim, just vi, eventhough with what i have in profile and .bashrc |
You have a copy of vim (which may just be vi) in /usr/local/bin, which is run instead of vim in /usr/bin (according to your PATH). Why do you have a duplicate copy of vim installed in /usr/local?
|
Quote:
that can't be vi because vi doesnt have colored syntax, and it doesnt even show "INSERT" at the bottom. i have VIM on /usr/bin/vim /usr/local/bin/vim is vi /usr/bin/vim is VIM i just tested it |
problem solved found in another LQ question forum.
what i just did was Code:
rm /usr/local/bin/vim Code:
ln -s /usr/bin/vim /usr/local/bin/vim /usr/bin/vim is vim what would another solution for this problem be other than deleting the vi link and then making a soft link to where vim is ? |
You shouldn't need the symlink at all...it should look in /usr/bin if vim is not found in /usr/local/bin. In a default Slackware install vim is already included, and there is no vim in /usr/local/bin. If you downloaded vim from its official site and installed it, it placed another copy of vim (with different configure options) in /usr/local/bin. The 'solution' was not to install vim into /usr/local in the first place (ie stick to Slackware's vim instead of downloading and installing vim separately), but removing all traces of vim from /usr/local/bin should be enough to solve your problem. I don't know how you installed vim (`./configure; make; make install`?), but uninstalling it (aside from just deleting everything vim-related in /usr/local) would depend on how you installed it (`make uninstall` in the source directory, perhaps?).
|
Quote:
in my install of slackware 13.1 ( about 5GB) when i called vim , it called vi , i mean for example i called vim .bashrc it created the file but no colors, no indication below that i was in INSERT mode or command mode, also when i try to go up or down instead it printed weird letters ^A , B ... etc. that is why i downloaded vim from the official site and configured , make, make install, but still it called vi. when i called vim from /usr/bin/vim , then i was able to see INSERT, and i didnt print weird characters when i pressed the up key or down key. that is vim , not vi. so i dont think slackware ships with vim, even though gvim is installed by default, which makes it even more confusing. note: i deleted /usr/local/bin/vim ,and this is what is get : Code:
bash: /usr/local/bin/vim: No such file or directory |
Quote:
Code:
/var/log/packages/vim-7.2.416-x86_64-1 Quote:
Code:
$ which vim [edit] Just as a thought, bash's hash table could be remembering /usr/local/bin/vim. Try issuing Code:
hash -d vim [/edit] |
after deleting /usr/local/bin/vim and invoking vim again i got:
Code:
bash: /usr/local/bin/vim: No such file or directory the ouput of $ which vim Code:
/usr/local/bin/vim Code:
/usr/bin/vim: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), Code:
bash: hash: vim: not found still hash -d vim shows nothing and then if i execute again , it shows hash:vim not found anyways i learned a lot of new things today. :) |
Hi molossus,
in a default Slackwareinstallation you'll only have to Code:
cp /usr/share/vim/vim73/vimrc_example.vim ~/.vimrc Explanation: the colors are devined in the .vimrc in your homedirectory. The default vimrc is found as vimrc_example.vim in the /usr/share/vim/vim73 directory. Markus |
All times are GMT -5. The time now is 04:22 PM. |