Live data from Hacker News

Slap – A Sublime-like terminal-based text editor

github.com

11–20 of 123 posts

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

#11
post #9

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.

You can control vim with mouse? Huh, TIL.

Yes. In vim:

set mouse=a

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

#12

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.

Whenever I need nano I'm on a machine where installing stuff is cumbersome, so installing npm on top of it would be overkill. Better learn to use vim (I'm personally an emacs person, but with vim keybindings) and use it when needed.

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

#14
post #9

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.

You can control vim with mouse? Huh, TIL.

If you enable it in .vimrc:

    set mouse=a

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

#15
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.

Same here. That is, until I find out that only vi's there and not full-on vim. While vi is smaller and even more ubiquitous, it pains me that it lacks visual mode.

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

#18
post #17
post #2

No multi cursors? :(

What is the use of multiple cursors? Something that does not boil down to copy-paste programming. UPDATE: From the answers below, I see that the point is the immediate visual feedback it gives.

Find and replace on steroids, meaning the flexibility of moving the cursors around in all instances of a find and making edits near the beginnings and ends of lines, for example.

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

#19
post #17
post #2

No multi cursors? :(

What is the use of multiple cursors? Something that does not boil down to copy-paste programming. UPDATE: From the answers below, I see that the point is the immediate visual feedback it gives.

The ability to use multiple cursors is one of Sublime Text's defining features, so describing an editor as being Sublime-like without that feature is somewhat of a letdown.

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

#20
post #17

Earlier quoted context omitted.

What is the use of multiple cursors? Something that does not boil down to copy-paste programming. UPDATE: From the answers below, I see that the point is the immediate visual feedback it gives.

Find and replace on steroids, meaning the flexibility of moving the cursors around in all instances of a find and making edits near the beginnings and ends of lines, for example.

Not trying to diminish the use of multiple cursors (I have certain fondness for them despite not using them extensively due to my choice of editor), but using regexes you can still do that (i.e. with /^/ and /$/, which I use constantly with vim-style search and replace)
Post reply on HN