On Wed, Jul 10, 2019 at 11:25 AM Mathieu Roux <[email protected]> wrote: > > Thanks for your answer. > > I love aliases since i am a child! i am absolutely fascinated by them! > i dream of them every night :-) > > Hmmmm in fact aliases was the best way i found to do what i want. Just > a ligne in ~/.bashrc, so simple. And just to type "bar" in my terminal > to access the file. > > So, I tried to create one file with shebang (in one directory in my > $PATH, ~/bin is not my path). > > But when i do "c-w n" in vim, and then :!bar, the file is open in > another vim, not in my window i have just created!
That is because your alias invokes a new instance of Vim. See :help clientserver to make a new shell talk to an existing instance of Vim. Best regards, Tony. -- -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXsJZPmm6G9uzNyT9xWrLgx_gQCrz5Q_7Nxik3vt%2Bd8KxA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
