|
Re: Stuck & confused: msg#00029editors.vim.mac
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 13-Mar-07, at 11:42 AM, M.C wrote: The problem is I want to be able to launch vim and then use this window to IIUC, you want to run a shell command and 'capture the output' in vim. To run a command inside vim you preface it with :! :!ls will list your current directory, then prompt you to hit enter to go back to using vim To read in external files you use :r :r addMe.txt will add the file to your current document To run a command inside vim and read in the output you combine the commands (very vimmish) :r!ls will add the directory listing to the bottom of your document So, you should be able to do something like :r!mysql -e help or whatever - the sql I leave to you. HTH Brian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin) Comment: Verify this email or encrypt your email for free - see gnupg.org iD8DBQFF9snMGnOmb9xIQHQRAstWAJ9MKA/ieYfOObBVIY0xbkcRj78JPQCeLdZt 0MTOwGrib/WatFSX9BnYw4c= =cFXu -----END PGP SIGNATURE----- |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Stuck & confused: 00029, M.C |
|---|---|
| Next by Date: | Financial report ICCF available: 00029, Bram Moolenaar |
| Previous by Thread: | Stuck & confusedi: 00029, M.C |
| Next by Thread: | Re: Stuck & confused: 00029, Benji Fisher |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |