- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- vi filename- nothing happens
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2006 06:20 AM
12-05-2006 06:20 AM
kernel: 2.6.9-22.EL
when I issue the following command nothing happens
#vi /path/to/filename
or
#vim /path/to/filename
that is simply "vi" or "vim" doesnt execute/run(gedit or cat are working fine), and also after "vi /etc/hosts", "ps ax" also doesnt show about "vi/vim".
Nothing speciall in /var/log/messages.
# rpm -q vim-enhanced
vim-enhanced-6.3.035-3
# rpm -q vim-minimal
vim-minimal-6.3.035-3
# rpm -ql vim-enhanced
/etc/profile.d/vim.csh
/etc/profile.d/vim.sh
/usr/bin/ex
/usr/bin/rvim
/usr/bin/vim
/usr/bin/vimdiff
/usr/bin/vimtutor
/usr/share/man/man1/rvim.1.gz
/usr/share/man/man1/vimdiff.1.gz
/usr/share/man/man1/vimtutor.1.gz
# rpm -ql vim-minimal
/bin/ex
/bin/rvi
/bin/rview
/bin/vi
/bin/view
/etc/vimrc
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2006 08:12 AM
12-05-2006 08:12 AM
Re: vi filename- nothing happens
/bin/vi /etc/hosts
or
/usr/bin/vim /etc/hosts
Check aliases:
alias vi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2006 05:48 AM
12-06-2006 05:48 AM
Re: vi filename- nothing happens
>Can you specify the full path to the command, for example:
>/usr/bin/vim /etc/hosts
#/usr/bin/vim /etc/hosts
nothing happens ;(
>Check aliases:
>alias vi
here is the output of "alias"
#alias vi
alias vi='vim'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2006 05:53 AM
12-06-2006 05:53 AM
Re: vi filename- nothing happens
Also try to reinstall package.
Do you have same error with other editor ?
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2006 07:21 AM
12-06-2006 07:21 AM
Re: vi filename- nothing happens
rpm -V vim-enhanced
rpm -V vim-minimal
ls -la /usr/bin/vim
ls -la /bin/vi
echo $PATH
whereis vi
which vi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 02:38 AM
12-07-2006 02:38 AM
Re: vi filename- nothing happens
try just /usr/bin/vim
without any arguments to see what happens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 07:31 AM
12-07-2006 07:31 AM
Re: vi filename- nothing happens
also try `alias |grep vi`
By nothing happens- you mean that you get the prompt back?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2006 04:56 AM
12-10-2006 04:56 AM
Re: vi filename- nothing happens
Dear Ivan....
# rpm -V vim-minimal ;[nothing happens... simply got the prompt back]
# rpm -V vim-enhanced
S.5....T. /usr/bin/vim
# ls -la /usr/bin/vim
-rwxr-xr-x 1 root root 0 Nov 26 22:05 /usr/bin/vim
# ls -la /bin/vi
-rwxr-xr-x 1 root root 468864 Dec 5 2004 /bin/vi
# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
# whereis vi
vi: /bin/vi /usr/share/man/man1p/vi.1p.gz /usr/share/man/man1/vi.1.gz
# which vi
alias vi='vim'
/usr/bin/vim
Dear George Liu and Alexander
# /usr/bin/vim ;[nothing happens... simply got the prompt back.. and this is the actual prblm]
# alias |grep vi
alias vi='vim'
"nothing happened" means "quit" or "got the prompt back" and/or even "no error" and also nothing relevant/special in /var/log/messages
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2006 05:04 AM
12-10-2006 05:04 AM
Re: vi filename- nothing happens
>Also try to reinstall package.
first I want to resolve/troubleshoot this issue.. this is the last option.
>Do you have same error with other editor ?
no
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2006 03:24 AM
12-12-2006 03:24 AM
Re: vi filename- nothing happens
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2006 05:14 AM
12-12-2006 05:14 AM
Solution# rpm -V vim-enhanced
S.5....T. /usr/bin/vim
Indicates that the vim command was modified since the installation, in this case the Size, the MD5 checksum and the modification time of the file where modified (see man rpm)
# ls -la /usr/bin/vim
-rwxr-xr-x 1 root root 0 Nov 26 22:05 /usr/bin/vim
Indicates that the program has 0 bytes and will never work.
To reinstall use:
rpm -ivh vim-enhanced-version.rpm --force
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2006 05:27 AM
12-12-2006 05:27 AM
Re: vi filename- nothing happens
for me its quite strange...why/how vim became corrupted, because I am the only person who can access this rhel box, and this box is never connected to the internet, virus/worms are not possible.
At the end I hardly accept(since no one can access this machine) that I myself hav done some mistake(edit the vim.. somehow)
Anyhow thanks All
Regards
Maaz