On 15 June 2014 11:14, Arup Rakshit <[email protected]> wrote:
> Is there any settings so that I can make this debugging and coding in Vim > itself in parallel without hopping between Vim and terminal shell. Hi Arup, This is something that I had previously wanted to do and I spent some time working on a solution. The following steps worked for me: " Open a new window. :new " I personally prefer a vertical window openging to the right: :set splitright :vertical new " This new window is essentially a temporary scratch buffer. " You can make sure that a swapfile isn’t created for it " or that the buffer isn’t associated with a file. " See http://vim.wikia.com/wiki/Vim_buffer_FAQ :setlocal buftype=nofile :setlocal bufhidden=hide :setlocal noswapfile " read input from the shell command using the alternate file. :r!ruby # If you want to do this regularly, the above commands could easily be turned into a function and run with a keyboard mapping -- or you could add a BufWritePost autocommand to have it run automatically whenever you write to the file you're working on. I ended up writing a function that accepted any command but I don't want to overcomplicate the solution for you. Regards, Anthony -- -- 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.
