Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
01-02-2015, 10:15 PM
|
#1
|
LQ Newbie
Registered: Dec 2014
Distribution: Fedora 20
Posts: 8
Rep: 
|
Fedora shows 'man vim' but when execute 'vim' got "bash: vim: command not found..." ?
Fedora shows 'man vim' info, but when execute 'vim' I got "bash: vim: command not found..." Why?
|
|
|
01-03-2015, 01:40 AM
|
#2
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
Quote:
Originally Posted by flash_os
Fedora shows 'man vim' info, but when execute 'vim' I got "bash: vim: command not found..." Why?
|
Hi:
Welcome to Linux Questions.
It could be that vim isn't installed.
Open your terminal and ("as root") run:
To learn how to use vim just type vimtutor and the terminal will take you through a series of lessons to
teach you how to use it. (if you haven't already)
|
|
|
01-03-2015, 01:56 AM
|
#3
|
Member
Registered: Apr 2014
Distribution: Slackware
Posts: 92
Rep: 
|
Well, to answer the question as posed, different paths are used to find man pages and to find executables (PATH for the latter and possibly MANPATH for the former). However, I'm not sure why you'd have the man page for vim without having the executable!
Last edited by ndc85430; 01-03-2015 at 02:06 AM.
|
|
|
01-03-2015, 08:41 AM
|
#4
|
LQ Newbie
Registered: Dec 2014
Distribution: Fedora 20
Posts: 8
Original Poster
Rep: 
|
Quote:
Originally Posted by Ztcoracat
Hi:
Welcome to Linux Questions.
It could be that vim isn't installed.
Open your terminal and ("as root") run:
To learn how to use vim just type vimtutor and the terminal will take you through a series of lessons to
teach you how to use it. (if you haven't already)
|
Still I get:
[root@localhost ~]# vim
bash: vim: command not found...
|
|
|
01-03-2015, 08:43 AM
|
#5
|
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
|
Quote:
Originally Posted by flash_os
Still I get:
[root@localhost ~]# vim
bash: vim: command not found...
|
Have you successfully installed it as suggested above? Can you post the exact output of the command:
|
|
1 members found this post helpful.
|
01-03-2015, 09:34 AM
|
#6
|
Senior Member
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187
|
|
|
|
01-03-2015, 10:14 AM
|
#7
|
LQ Newbie
Registered: Dec 2014
Distribution: Fedora 20
Posts: 8
Original Poster
Rep: 
|
Quote:
Originally Posted by sycamorex
Have you successfully installed it as suggested above? Can you post the exact output of the command:
|
Code:
[root@localhost ~]# yum install vim -y
Loaded plugins: langpacks, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package vim-enhanced.x86_64 2:7.4.475-2.fc20 will be installed
--> Processing Dependency: vim-common = 2:7.4.475-2.fc20 for package: 2:vim-enhanced-7.4.475-2.fc20.x86_64
--> Processing Dependency: libgpm.so.2()(64bit) for package: 2:vim-enhanced-7.4.475-2.fc20.x86_64
--> Running transaction check
---> Package gpm-libs.x86_64 0:1.20.7-3.fc20 will be installed
---> Package vim-common.x86_64 2:7.4.475-2.fc20 will be installed
--> Processing Dependency: vim-filesystem for package: 2:vim-common-7.4.475-2.fc20.x86_64
--> Running transaction check
---> Package vim-filesystem.x86_64 2:7.4.475-2.fc20 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
vim-enhanced x86_64 2:7.4.475-2.fc20 updates 1.0 M
Installing for dependencies:
gpm-libs x86_64 1.20.7-3.fc20 fedora 32 k
vim-common x86_64 2:7.4.475-2.fc20 updates 5.9 M
vim-filesystem x86_64 2:7.4.475-2.fc20 updates 12 k
Transaction Summary
================================================================================
Install 1 Package (+3 Dependent packages)
Total size: 7.0 M
Installed size: 23 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction (shutdown inhibited)
Installing : gpm-libs-1.20.7-3.fc20.x86_64 1/4
Installing : 2:vim-filesystem-7.4.475-2.fc20.x86_64 2/4
Installing : 2:vim-common-7.4.475-2.fc20.x86_64 3/4
Installing : 2:vim-enhanced-7.4.475-2.fc20.x86_64 4/4
Verifying : 2:vim-enhanced-7.4.475-2.fc20.x86_64 1/4
Verifying : 2:vim-filesystem-7.4.475-2.fc20.x86_64 2/4
Verifying : gpm-libs-1.20.7-3.fc20.x86_64 3/4
Verifying : 2:vim-common-7.4.475-2.fc20.x86_64 4/4
Installed:
vim-enhanced.x86_64 2:7.4.475-2.fc20
Dependency Installed:
gpm-libs.x86_64 0:1.20.7-3.fc20 vim-common.x86_64 2:7.4.475-2.fc20
vim-filesystem.x86_64 2:7.4.475-2.fc20
Complete!
[root@localhost ~]#
|
|
|
01-03-2015, 10:16 AM
|
#8
|
LQ Newbie
Registered: Dec 2014
Distribution: Fedora 20
Posts: 8
Original Poster
Rep: 
|
Quote:
Originally Posted by Head_on_a_Stick
|
Code:
$ whereis vim
vim: /usr/bin/vim /usr/share/vim /usr/share/man/man1/vim.1.gz
|
|
|
01-03-2015, 10:33 AM
|
#9
|
Senior Member
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187
|
What is your $PATH?
Can you start it when you declare the full path?
|
|
|
01-03-2015, 10:39 AM
|
#10
|
LQ Newbie
Registered: Dec 2014
Distribution: Fedora 20
Posts: 8
Original Poster
Rep: 
|
Quote:
Originally Posted by Head_on_a_Stick
What is your $PATH?
Can you start it when you declare the full path?
|
Yes.
But maybe I need to restart the system?
What command for Terminal to restart the system?
Last edited by flash_os; 01-03-2015 at 10:41 AM.
|
|
|
01-03-2015, 10:52 AM
|
#11
|
Senior Member
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187
|
|
|
|
01-03-2015, 10:58 AM
|
#12
|
LQ Newbie
Registered: Dec 2014
Distribution: Fedora 20
Posts: 8
Original Poster
Rep: 
|
Thanks.
Now it's work.
|
|
|
01-03-2015, 11:03 AM
|
#13
|
Senior Member
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187
|
Good stuff!
You should mark the thread as "[SOLVED]" using the forum tools.
Not sure how to do that exactly -- I don't start threads, I finish them!

|
|
|
01-03-2015, 11:15 AM
|
#14
|
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
|
Thread Tools in the top right-hand corner just above the first post on the page = > Mark as solved.
Quote:
I don't start threads, I finish them!
|
Smooth 
|
|
|
01-03-2015, 02:44 PM
|
#15
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
|
It's up to the OP to mark thread as solved.
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 01:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|