Wednesday, July 8, 2015

Re: Is it possible to redirect vim input?

Thanks all. Just took a quick look at clientserver (remote.txt) and netbeans.txt which give a lot info about this kind of integration of vim.

I probably can use them for my goal. I just want to make gdb easier to use, maybe spoiled by windows debugger key bindings but it is just so easier than gdb command line.

My motivation is to make it easy to try rust in a more interactive way: type in lines of code, compile (which is quite fast), run / step through it and display variable values and output. This will not support profound use of gdb easily but should be good enough as a start. Obviously this can apply to other languages as well.

On Monday, July 6, 2015 at 5:51:29 AM UTC-7, Benji Fisher wrote:
> On Sun, Jul 5, 2015 at 9:43 AM, Steve B <b.s...@gmx.com> wrote:
> On 07/03/2015 09:23 PM, GoTouch Go wrote:
>
>
> Hi there,
>
>
>
> I am looking to make vim work with gdb in an easy way I like. I
>
> looked around and does not seem to see a solution. There is gdbmgr
>
> but that means I still need to type in gdb command which is too
>
> long.
>
>
>
> What I prefer is to let vim get input from my program, which sends
>
> editing input to vim so as to show a file, go to specific line, etc.
>
> This way I can press Fn hot keys, send commands to gdb, and move the
>
> cursor in vim as well. I can still edit in vim, and save the change,
>
> recompile and restart gdb.
>
>
>
> So what I am looking to is basically sending input to vim through a
>
> pipe. Do you know a way to do so? vim probably does not get input
>
> from STDIN because reading from STDIN cannot respond to individual
>
> key strokes.
>
>
>
> Thanks for any clue.
>
>
>
>
>
>
> That's not what you asked for but in case of, cgdb is an ncurses interface to GDB modeled after Vim.
>
> https://cgdb.github.io/
>
>
>
> Steve
>
>
> Also not what you asked for, but the client-server functionality was designed for this sort of thing.  Have you read
>
>
> :help remote.txt
>
>
> yet?
>
>
> -- 
> HTH
> Benji Fisher 

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment