Say I have more than one buffer opened in different window.
How can I execute an external command with a specific buffer as a argument?
Say I want to execute
:!g++ "buffer no"
How to do so?
Your external command won't be able to do anything with a buffer number, you'll need to pass it a file name as argument. You can use
Note that, due to different things (your