Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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

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.



Yo dawg, I heard you like terminals...


Why on earth would I want to open a terminal emulator in vim when I'm already in a terminal emulator?


to use visual mode on the terminal, yank, paste etc.


If 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.


I do but this plugin is a vim one. Both my vim and zsh start instantly (<100ms).


Its not exiting, its suspended. But yeah




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: