7 ms·
I'm still using classic vim. Should I move over?
by qz2 6y ago
I'm still using classic vim. Should I move over?
- sojournerc 6y agowhat got me to switch was being able to run terminal commands in a buffer... https://neovim.io/doc/user/nvim_terminal_emulator.html https://neovim.io/doc/user/nvim_terminal_emulator.html
- gnubison 6y agoI don't use it that often (I just open up another terminal), but you can also use ^Z to put vi in the background. It would be more useful if I didn't always forget and open up a new vi which would refuse to write to the file :)
- sojournerc 6y agoI honestly do both. When I'm running something I want the output from (some to yank), I'll run in a buffer. If doing file manipulation, CLI, etc. etc. I'll ctrl-z out. I do the opposite of you pretty often too, always trying to `fg` a non-existent vim
- gnubison 6y agoHmmm. I hadn't thought about being able to yank output from a command... That's a really good point. (Honestly I would probably use 'xsel -bi' and ':r !xsel -bo', but that's pretty ugly.)
- coliveira 6y agoYou can use :terminal in vim.
- sojournerc 6y agoit's optional for the build: https://vimhelp.org/terminal.txt.html https://vimhelp.org/terminal.txt.html
- garmaine 6y agoSerious question: why not just open another terminal?
- AdamGibbins 6y agoThe integration is nice, it behaves as a normal buffer. So you can use all the standard modes and motions, splits, copy output to another buffer easier etc.
- garmaine 6y agoBut modern terminals can do all that, with an editing mode that is tailored to terminal use rather than editing text. Sorry I just don't understand why I'd want to use a text editor as my command line.
- AdamGibbins 6y agoThey can't though, a modern terminal cannot behave as a vim buffer. You can't have 25% of your terminal as a shell and the other 75% vim, they can't split like that. I'm not aware of any terminal that allows integration with vim registers or use vim motions.
- renewiltord 6y agoYou can use it as a normal buffer. Run command, switch to visual, go copy and paste. Way nicer than `:r !command`.
- chapium 6y agoOnly if you want very specific plugins.
- ComputerGuru 6y agoNot really. vi doesn’t have some very basic motions that are supported by (n)vim out of the box.