Live data from Hacker News

Slap – A Sublime-like terminal-based text editor

github.com

51–60 of 123 posts

Re: Slap – A Sublime-like terminal-based text editor

#51
post #6

The best feature of vim is its ubiquity; I feel at home on almost any computer. I find myself shying away from anything too specialized that could become a crutch, maybe to my detriment.

How often are you in situations where you can't run the editor/IDE you want? I haven't encountered this for years except the rare times I'm forced to do some editing over SSH (which is far too low-level for server management than I'd like).

Re: Slap – A Sublime-like terminal-based text editor

#52

Earlier quoted context omitted.

Because becoming fluent has a cost value trade off, and I think there are a lot of people who simply don't think time invested in that is worth it. I touch a terminal a lot, and I don't value vim enough to become fluent. I certainly know how to use it, and I know a fair bit of the commands, but it's nowhere close to my preferred workflow. Plus, there's a huge array of tools out there to allow me to work with files in…

I can see where you're coming from when it comes to comfort with the mouse, though I don't think you should emphasize it too much if you've never experienced some kind of "never leave the keyboard" system that you're fluent in. It may or may not be faster than a mouse, but it's faaaaar more precise and for me feels very satisfying in a tactile sense. Though in my experience, once you go all in, you start trying to ge…

yeah, i recently downloaded intellij idea for the first time (i generally eschew IDEs) to try my hand at kotlin, and when the "use vim keybindings? " option popped up during setup i was like "(very satisfied and refreshed) ahhhh..." works well too for a slim .vimrc user like myself.

Re: Slap – A Sublime-like terminal-based text editor

#53
post #50
post #49

Earlier quoted context omitted.

> It's a trade-off: Do I use a bit of mental power, and save some finger movement? hammerandtongs already suggested this: it's not a trade-off, you just didn't get to learn Vim appropriately (you say yourself that you're "part time vim user"). Vim is so convenient for its regular users not because it saves them keystrokes, but because it saves them this mental power you talk about. I don't think what commands I want…

>I don't think what commands I want to execute. I think where I want to get in the file or what should the text look like, and then the logic behind the structure of vi/Vim commands takes me there. this is gibberish unless vim comes with some sort of spinal cord dongle. either it's muscle memory or thinking but you still have to have practiced the keystrokes.

Muscle memory is not using some brain power as the GP says. Once you are used to it (2-3 weeks), it feels very natural, I think "Oh I need to change the end of this sentence" and my fingers will take me there. It really is an extension of touch typing.

Re: Slap – A Sublime-like terminal-based text editor

#54
post #50
post #49

Earlier quoted context omitted.

> It's a trade-off: Do I use a bit of mental power, and save some finger movement? hammerandtongs already suggested this: it's not a trade-off, you just didn't get to learn Vim appropriately (you say yourself that you're "part time vim user"). Vim is so convenient for its regular users not because it saves them keystrokes, but because it saves them this mental power you talk about. I don't think what commands I want…

>I don't think what commands I want to execute. I think where I want to get in the file or what should the text look like, and then the logic behind the structure of vi/Vim commands takes me there. this is gibberish unless vim comes with some sort of spinal cord dongle. either it's muscle memory or thinking but you still have to have practiced the keystrokes.

[deleted]

Re: Slap – A Sublime-like terminal-based text editor

#55
post #37

This looks interesting, but the last commit is 5 months ago. Is the project still in active development?

Someone else asked the same a month ago, still no answer: https://github.com/slap-editor/slap/issues/393

the author did confirm it's a question, so that clears that up

Re: Slap – A Sublime-like terminal-based text editor

#56
post #49

Earlier quoted context omitted.

I think the benefit is exactly the keybindings. And the fact that it is non-modal. It works like a text field in a desktop GUI, there is almost no state. You can't mess the state up. Contrast it to vim, where I got into the habbit of bashing ESC three times to be sure I'm not in a mode. Or emacs, which is nice until it's abstractions leak, and you accidentially start editing a configurations pane or something. I am a…

> It's a trade-off: Do I use a bit of mental power, and save some finger movement? hammerandtongs already suggested this: it's not a trade-off, you just didn't get to learn Vim appropriately (you say yourself that you're "part time vim user"). Vim is so convenient for its regular users not because it saves them keystrokes, but because it saves them this mental power you talk about. I don't think what commands I want…

Saves mental power? These regular vim users must be some kind of super humans to autopilot some of these incantations.

http://deliberate-software.com/vim-refactoring-patterns/

Re: Slap – A Sublime-like terminal-based text editor

#57
post #6

The best feature of vim is its ubiquity; I feel at home on almost any computer. I find myself shying away from anything too specialized that could become a crutch, maybe to my detriment.

How often are you in situations where you can't run the editor/IDE you want? I haven't encountered this for years except the rare times I'm forced to do some editing over SSH (which is far too low-level for server management than I'd like).

If you have to edit over SSH then you can do an sshfs mount instead.

    sshfs @: ≤mountpt≥

Re: Slap – A Sublime-like terminal-based text editor

#58
post #56
post #49

Earlier quoted context omitted.

> It's a trade-off: Do I use a bit of mental power, and save some finger movement? hammerandtongs already suggested this: it's not a trade-off, you just didn't get to learn Vim appropriately (you say yourself that you're "part time vim user"). Vim is so convenient for its regular users not because it saves them keystrokes, but because it saves them this mental power you talk about. I don't think what commands I want…

Saves mental power? These regular vim users must be some kind of super humans to autopilot some of these incantations. http://deliberate-software.com/vim-refactoring-patterns/

Which ones? All I see is just a handful of distinct commands. Those commands take arguments, and they are called with those arguments over and over again, but there's very little magic in the article. And, in fact, very little of the commands available to and regularly used by Vim user were shown. (And I think this was the point of the article.)

It's like you were arguing that printf("foo\n") and printf("bar\n") were some fundamentally different magic incantations in C that you need to remember separately.

Re: Slap – A Sublime-like terminal-based text editor

#59
post #37

Earlier quoted context omitted.

Someone else asked the same a month ago, still no answer: https://github.com/slap-editor/slap/issues/393

the author did confirm it's a question, so that clears that up

It's mit so if it's good roll with it

Re: Slap – A Sublime-like terminal-based text editor

#60

Every one of the listed features is also available in Vim. I fail to see how this is either Sublime-like besides the keybindings (since a file pane is available on both Emacs and Vim) or will cause me to leave Vim or Emacs behind. That said, I can definitely see this replacing Nano for some folks.

I think the benefit is exactly the keybindings. And the fact that it is non-modal. It works like a text field in a desktop GUI, there is almost no state. You can't mess the state up. Contrast it to vim, where I got into the habbit of bashing ESC three times to be sure I'm not in a mode. Or emacs, which is nice until it's abstractions leak, and you accidentially start editing a configurations pane or something. I am a…

"Or emacs, which is nice until it's abstractions leak, and you accidentially start editing a configurations pane or something."

I've been using emacs for decades and I don't think I've never done this. I've written my own elisp functions, packages etc (nothing too fancy, mostly text-oriented transformations) I guess I'm curious what you mean by 'editing a configuration panel'.

Post reply on HN