On Saturday, July 4, 2015 at 1:54:11 AM UTC-5, 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.
If you are writing some sort of toplevel command program, you can send commands to Vim using the "netbeans" interface. From :help netbeans-intro: > The NetBeans interface was initially developed to integrate Vim into the > NetBeans Java IDE, using the external editor plugin. This NetBeans plugin no > longer exists for recent versions of NetBeans but the protocol was developed > in such a way that any IDE can use it to integrate Vim. > The NetBeans protocol of Vim is a text based communication protocol, over a > classical TCP socket. There is no dependency on Java or NetBeans. Any language > or environment providing a socket interface can control Vim using this > protocol. There are existing implementations in C, C++, Python and Java. The > name NetBeans is kept today for historical reasons. -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
