LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-06-2006, 07:58 PM   #1
jrdioko
Member
 
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, 08:40 PM   #2
Valdis Grinbergs
Member
 
Registered: Dec 2005
Distribution: Debian
Posts: 30

Rep: Reputation: 25
jrdioko,

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, 08:52 PM   #3
jrdioko
Member
 
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.
 
  


Reply


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 09:24 AM
run shell command with php varunbihani Programming 5 12-06-2005 12:25 AM
run shell command inside of c code? khucinx Programming 2 05-17-2004 10:04 AM
how to run shell command in java? u4u Linux - General 3 03-02-2004 09:08 AM
How to run a shell command containing awk, and grep within a C program Linh Programming 3 06-05-2003 07:05 PM


All times are GMT -5. The time now is 04:41 AM.

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