GVim .vimrc Help

5 views
Skip to first unread message

nickatron

unread,
Feb 18, 2011, 12:56:11 PM2/18/11
to v...@vim.org

This is my .vimrc so far:
set nu

filetype indent on
set autoindent

map <F5> :call CompileRunGpp()<CR>
func! CompileRunGpp()
exec "w"
exec "!g++ % -o %<.exe"
exec "!./%<.exe"
endfunc
Is there a way to make my program run in a new terminal window instead of
inside GVim?
--
View this message in context: http://vim.1045645.n5.nabble.com/GVim-vimrc-Help-tp3391470p3391470.html
Sent from the Vim - General mailing list archive at Nabble.com.

Marc Weber

unread,
Feb 18, 2011, 1:56:55 PM2/18/11
to vim_use
Excerpts from nickatron's message of Fri Feb 18 18:56:11 +0100 2011:

> Is there a way to make my program run in a new terminal window instead of
> inside GVim?

Have a look at the documentation of your console. Eg for xterm:
xterm -e watch ls -l

You may want to background it..

Marc Weber

nickatron

unread,
Feb 18, 2011, 4:00:35 PM2/18/11
to v...@vim.org

I have no idea what that does. All it did for me is open a window called
watch and listed items in my home folder. I'm very new to linux and gvim
btw.
--
View this message in context: http://vim.1045645.n5.nabble.com/GVim-vimrc-Help-tp3391470p3391781.html

Marc Weber

unread,
Feb 18, 2011, 6:43:21 PM2/18/11
to vim_use
Excerpts from nickatron's message of Fri Feb 18 22:00:35 +0100 2011:

>
> I have no idea what that does. All it did for me is open a window called
> watch and listed items in my home folder. I'm very new to linux and gvim
> btw.

Yes. You got it. You asked for running an application in an external
terminal, didn't you?

On linux you have to learn about both: man and info.
Eg man xterm then /-e n n will jump to the description of the -e flag.

Marc Weber

Reply all
Reply to author
Forward
0 new messages