4 ms·
Ctrl-z is useful to be sure but nowadays (n)vim has terminal emulators built-in. I use this plugin: https://github.com/akinsho/toggleterm.nvim https://github.
by recuter 4y ago
Ctrl-z is useful to be sure but nowadays (n)vim has terminal emulators built-in.
I use this plugin:
https://github.com/akinsho/toggleterm.nvim https://github.com/akinsho/toggleterm.nvim
Nvim also has a new --listen flag (if you ever tried nvr this is now built in). So no matter where you are the file will open in your main nvim instance.
No need to exit.
- calvinmorrison 4y agoIts not exiting, its suspended. But yeah
- artificialLimbs 4y agoYo dawg, I heard you like terminals...
- behnamoh 4y agoIf you're using zsh with plugins, then your shell startup time is already high. Ctrl+z drops you back to an existing shell, but toggleterm spawns a new shell which can be annoying.
- recuter 4y agoI do but this plugin is a vim one. Both my vim and zsh start instantly (<100ms).
- qu4z-2 4y agoWhy on earth would I want to open a terminal emulator in vim when I'm already in a terminal emulator?
- cerved 4y agoto use visual mode on the terminal, yank, paste etc.