Live data from Hacker News

Slap – A Sublime-like terminal-based text editor

github.com

21–30 of 123 posts

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

#21
post #20

Earlier quoted context omitted.

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)

Pressing ctrl-d a couple of times, seeing what will change, and typing something is most of the time easier and faster than thinking about a regex. At least that's how I feel

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

#22

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.

> copying/pasting with OS clipboard support

It is supposed to be in vim, but I always forget how to use it and the few time I tried it just didn't work.

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

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

>Find and replace on steroids

For people who don't know regular expressions...

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

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

emacs-nox (apt install emacs24-nox usually) is also surprisingly feature-full and comfort to work with for emacsers

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

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

You can even control vim with a mouse when its running on a headless machine you're accessing over ssh.

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

#28
post #22

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.

> copying/pasting with OS clipboard support It is supposed to be in vim, but I always forget how to use it and the few time I tried it just didn't work.

"+y / "+p

Is generally what you want (named buffer +).

http://vim.wikia.com/wiki/Accessing_the_system_clipboard

I used to keep forgetting too, and then I started using it a bit (on Windows, where selecting text and shift-insert doesn't work).

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

#30
post #28
post #22

Earlier quoted context omitted.

> copying/pasting with OS clipboard support It is supposed to be in vim, but I always forget how to use it and the few time I tried it just didn't work.

"+y / "+p Is generally what you want (named buffer +). http://vim.wikia.com/wiki/Accessing_the_system_clipboard I used to keep forgetting too, and then I started using it a bit (on Windows, where selecting text and shift-insert doesn't work).

In insert mode you can paste with cmd+V on macOS or ctrl+shift+v on other systems, just like anywhere else in the shell.
Post reply on HN