Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-06-2006, 08:58 PM   #1
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Vim: run shell command without acknowledgement

I've been playing around with some mapping in vim, and I'd like a few to run a command in a shell without opening a window at the bottom that requires pressing ENTER to close. In other words, I'd like to do something like ":!xterm &" without having to press return before I can go back to the file--I just want to launch an external program without confirmation.
Old 02-25-2006, 09:40 PM   #2
Valdis Grinbergs
Registered: Dec 2005
Distribution: Debian
Posts: 30

Rep: Reputation: 25

This worked for me to map function key 6 to open a separate xterm:
:map <F6> :!xterm&<CR><CR>
The shell flashed up for a split-second, but the second carriage return quickly brought back vim.
Old 02-25-2006, 09:52 PM   #3
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
It seems strange I hadn't tried that before, but seems to work fine (although I still wonder if there's a better way to do it). Thanks.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
my database export shell script run from command line but not form crontab saifee Linux - General 11 01-29-2012 10:24 AM
run shell command with php varunbihani Programming 5 12-06-2005 01:25 AM
run shell command inside of c code? khucinx Programming 2 05-17-2004 11:04 AM
how to run shell command in java? u4u Linux - General 3 03-02-2004 10:08 AM
How to run a shell command containing awk, and grep within a C program Linh Programming 3 06-05-2003 08:05 PM

All times are GMT -5. The time now is 10:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration