Hacker Newsnew | past | comments | ask | show | jobs | submit | markrian's commentslogin

What are referring to, out of interest? Does this apply just to nvim, or vim as well?

In Vim, :! cleans up the tty context and hands it off to the child program, to do whatever it wants, you can open any TUI program and it will work as expected. In Neovim, :! just uses a plain pipe. Actually I believe GVim has the same problem. Since both Vim implementations now have a built in terminal handling stack anyway, I wonder if that could be used to unify the behavior.

Just nvim. Neovim runs :! commands non-interactively, capturing the output in a pipe. vim, on the other hand, suspends itself and runs the command in an external shell.

This isn't a problem, really, for non interactive commands, but causes issues with interactive ones. I personally prefer vim's approach, though not enough to abandon neovim.


Interesting! Do you have a page which compares globstar against other similar tools, like Semgrep, ast-grep, Comby, etc?

For instance, something like https://ast-grep.github.io/advanced/tool-comparison.html#com....


Not at the moment, but we'll put something up soon.

We're focused on keeping globstar light-weight, so a hosted runtime is not in the roadmap (although we'll add support for running Globstar checkers natively on our commercial product DeepSource). You should be able to write any checkers in Globstar that you can write in the other tools you've listed.

Our goal is to make it very easy to write these checkers — so we'd be optimizing the runtime and our Go API for that.


You can install the [python-is-python3][0] package on 20.04, which symlinks /usr/bin/python to python3.

[0]: https://packages.ubuntu.com/focal/python-is-python3


I saw that, but it's not the default setting. You can't just write a python script and expect it to work on Ubuntu without putting python3 in the shebang.


圣诞快乐 from Guangzhou!


耶诞快乐!


One built-in feature (not enabled by default) that I absolutely love is persistent undo. Love it.

Basically, undo trees can be persisted across vim sessions. Have a read via ":help undo-persistence".


Pairing this with undotree[1] is really handy, as it allows you to see your full edit history, branches and all, and jump back and forth.

[1] https://github.com/mbbill/undotree


The closest thing I'm aware of is ":earlier {N}f", which "[Goes] to older text state {N} file writes before.".

So once you're somewhat happy with what you've got, write the file, and then continue editing, repeat, and you can revert back to any previous saved file state.


Awesome, thanks


Indeed it is: http://isup.me/stackoverflow.com

It's surprising how much this hurts my productivity. And as great as archive.org is, it's not a very good substitute in this case[0], as most questions aren't archived.

[0]: https://web.archive.org/web/https://stackoverflow.com


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

Search: