Live data from Hacker News

SpaceVim – Like Spacemacs, but for Vim

spacevim.org

81–90 of 186 posts

Re: SpaceVim – Like Spacemacs, but for Vim

#81
post #16

Oh, yeah! Good old curl | sh via HTTP. Fucking awesome. I wonder how many people get unknowingly pwned while executing such curl | sh instructions. It's not hard at all to MitM HTTP, detect if shellcode is being transmitted, then add your own instructions to it. Or you can just compile a list of known sources that encourage to execute curl | sh and MitM only them if you want to make your exploits even more discreet.…

I'm so exhausted with the top comment being some off topic rant that doesn't contribute anything to the actual discussion but attracts a lot of reactions because it's easy to say something about it...

And yes, I am aware of the irony of this being completely off topic. ;)

Re: SpaceVim – Like Spacemacs, but for Vim

#82

Earlier quoted context omitted.

I wish people stopped calling a shared config a 'distribution' In both Spacemacs and Spacevim, all that's being provided is a config. No runtime, no package manager, no changes to the actual binaries of either app. It's hyperbole.

I disagree. Using and customizing SpaceMacs is considerably different from using plain emacs. They use their own config system, their own plugin system (aka layers), and the user experience is very different, right from the start. Of course it's emacs underneath, and you can still do much as with plain emacs, but it's different enough for it to be more than "just a config for emacs".

It's just a config for emacs. Sure it has some functions and life-cycle hooks for you to change a few things here and there, but in the end it's a glorified config. You delete .emacs.d and you're back to default emacs.

Re: SpaceVim – Like Spacemacs, but for Vim

#83

> Like spacemacs, but for vim. This is one of the most obtuse project descriptions I've seen. If you're making a...whatever this is...aimed at Vim users, why would you expect them to be familiar with a something-or-other for Emacs?

Not to mention that (IIRC) Spacemacs involves installing evil-mode, which makes Emacs interactions similar to Vim interactions. Taking that into account, this can be interpreted as "It makes Vim work more like Vim."

The main difference is that in Spacemacs, you hit the space bar and you get suggestions of commands to use, then you can narrow those down by navigating those groups. For example, if you want search your project for a file, you would hit the space bar then type "p" (for project). At that point a number of choices appears, e.g. "f" (IIRC) is to find files in your project.

After a while it becomes sort of second nature:

SPC f s - file save

SPC m t f - mode test file (e.g. if you're in a go file it'd know how to run tests for go files).

Another nice thing is that `SPC ?` brings up a prompt that lets you search for commands: you type a keyword for example and you get all the editor commands that match your keyword, so it's easy to navigate your editor shortcuts. That was useful for me, since every result came with the "spacemacs" shortcut, and the Emacs shortcut, so I ended up learning Emacs for free (I was coming from Vim).

Note: I've also tried Spacevim and the only thing it has in common with Spacemacs is the mnemonic key bindings. It doesn't seem to be discoverable (at least not with SPC ?) and it also doesn't seem to be consistent (I couldn't "guess" what certain things were, in spacemacs it's consistent enough that you can guess). Those are the main core pillars imho: http://spacemacs.org/doc/DOCUMENTATION.html#core-pillars

Re: SpaceVim – Like Spacemacs, but for Vim

#84
post #82

Earlier quoted context omitted.

I disagree. Using and customizing SpaceMacs is considerably different from using plain emacs. They use their own config system, their own plugin system (aka layers), and the user experience is very different, right from the start. Of course it's emacs underneath, and you can still do much as with plain emacs, but it's different enough for it to be more than "just a config for emacs".

It's just a config for emacs. Sure it has some functions and life-cycle hooks for you to change a few things here and there, but in the end it's a glorified config. You delete .emacs.d and you're back to default emacs.

It's not just a config, it's plenty of code.

In emacs, thanks to Elisp, you can't really distinguish between a config and a plugin, because most 'configs' use actual code to (often extensively) alter the editors behaviour.

Re: SpaceVim – Like Spacemacs, but for Vim

#85

Tried Spacemacs 3-4 times because of org mode. Most specifically inline code block execution, through org-babel. Still not ready to change over from vim, though. What I haven't done is check neovim. Any comments regarding the potential for inline code execution?

Org-mode comes standard with plain emacs (no need for all the extra bells and whistles that come with spacemacs, necessarily). Since you're a vim user, try installing evil as a first plugin, and only adding additional ones as you see fit. I found that spacemacs did too much and preferred vanilla emacs + evil + a few python plugins. Still, I mostly use vim for smaller scripts. Emacs is better as an IDE in my opinion.

In my experience, you really can't beat Org-mode when it comes to inline code execution. You can preview LaTex and plotting inline as well. Plus, you can of course export the document into a variety of formats (HTML, PDF, etc.), which are quite customizable thereafter. Here is a document I put together with Org-mode for a short C++ seminar [1]. All the code is executable while editing the document in Org, which is nice for a number of reasons. I also added some custom CSS/JS for the HTML export.

[1]: https://htmlpreview.github.io/?https://github.com/notmatthan...

Re: SpaceVim – Like Spacemacs, but for Vim

#86

I don't get Spacemacs hype. I tried it, and never felt comfortable using it. Started with blank .emacs.d, yeah I completely cleard whole configuration two or three times until I hit sweetspot. Now I'm sitting on ~250 loc config on vanilla emacs (including evil), and eveything works like a charm. Plus I learned a lot about elisp. I never liked those bundles and distributions. They always felt redundant, but I can unde…

I would probably spend more than 100 hours until I got to a point of equivalence with SpaceMacs, starting from a plain emacs. Especially since I use quite a few different languages. Ain't nobody got time for that...

The OP's point was not "equivalence", it was a "sweet spot". Even with "quite a few different languages", if the standard Emacs modes are close enough to the sweet spot, you don't need Spacemacs.

Re: SpaceVim – Like Spacemacs, but for Vim

#87
post #82

Earlier quoted context omitted.

It's just a config for emacs. Sure it has some functions and life-cycle hooks for you to change a few things here and there, but in the end it's a glorified config. You delete .emacs.d and you're back to default emacs.

It's not just a config, it's plenty of code. In emacs, thanks to Elisp, you can't really distinguish between a config and a plugin, because most 'configs' use actual code to (often extensively) alter the editors behaviour.

If you're suggesting that config files don't have actual code then by that reasoning your .vimrc is in fact also not a config.

Re: SpaceVim – Like Spacemacs, but for Vim

#89

I started using Spacemacs recently for its out-of-the-box IDE-like features but the layers' functionality seems to be fairly hit-or-miss and overall the impression is one of a bug-infested nightmare. Every time I try to set up my environment on a new machine, I get some new set of problems that I have no idea how to solve (disappearing powerline, broken neotree, weird projectile caching behavior totally breaking my w…

I had the same experience with spacemacs, but it made me realize what I was missing with vim. Currently trying to build up an emacs/evil config from scratch.

Re: SpaceVim – Like Spacemacs, but for Vim

#90
post #16

Oh, yeah! Good old curl | sh via HTTP. Fucking awesome. I wonder how many people get unknowingly pwned while executing such curl | sh instructions. It's not hard at all to MitM HTTP, detect if shellcode is being transmitted, then add your own instructions to it. Or you can just compile a list of known sources that encourage to execute curl | sh and MitM only them if you want to make your exploits even more discreet.…

curl sh is no more dangerous than running any script you haven't read, or binary you haven't decompiled for that matter. The odds of mitm are exactly the same.

No.

https://jordaneldredge.com/blog/one-way-curl-pipe-sh-install...

Post reply on HN