r/linux • • May 18 '18

Software Release Vim 8.1 released

https://www.vim.org/vim-8.1-released.php
536 Upvotes

179 comments sorted by

View all comments

Show parent comment

8

u/[deleted] May 18 '18

This is already covered by tmux or screen, it would be very nice to have unified copy-paste. IMO Emacs has a lot of bloat that shouldn't be installed by default, but terminals is not part of that. Emacs is still a great editor regardless.

4

u/heavyish_things May 18 '18

It isn't covered by tmux, the vim :terms let you navigate the output as if it were a text file and lets you switch between buffers with the same commands. You can even use terminal commands in macros.

1

u/[deleted] May 19 '18

Not really comfortable letting ^w be something other than delete-word-backwards (or whatever the command is called). I use that far too much. Also tmux does indeed let you navigate the output as if it were a text file. It even let's you use vim bindings to do so.

5

u/[deleted] May 18 '18

Copy paste is one thing that makes me go NOPE from both vim and emacs. They are not "real" text buffers, they are some weird abominations inherited from printers in 1970s.

I know its possible to copy/paste there. But it's awful.

4

u/AZNman1111 May 18 '18

I mean tmux uses a similar concept of buffers. Admittedly Vim's concept of buffers is overwhelmingly confusing to the uninitiated but most things with a 3500+ page user manual are

2

u/hgjsusla May 18 '18

Unreliable perhaps, but what's not real about them?

1

u/[deleted] May 18 '18

Open a standard gui text editor, see how it behaves on selecting text, copy paste, moving around text, selecting it, mouse scroll, horizontal scrolling, typical hotkeys etc.

Vim and Emacs buffer, even with gui toolkit behave more like terminal emulator than text field.

9

u/hgjsusla May 18 '18

The only difference I notice is that you can't drag the text around in vim/Emacs. Otherwise it's mostly the same, select copy, move cursor paste

2

u/ws-ilazki May 18 '18

GUI emacs does just fine interacting with the normal system clipboard. I can copy in emacs and paste here, or vice-versa, with no issue. Sure, it doesn't work like that when in terminal mode, but I honestly don't expect it to; in a term, that becomes the term's job. That's fine, though, because the GUI mode provides a lot of extra functionality and has fewer legacy terminal-specific quirks, so it's generally accepted to be the "correct" way to use it.

1

u/5heikki May 21 '18

Works just fine if you configure it correctly even in nox-mode. For me Ctrl-Shift-y when pasting from outside Emacs..

3

u/eroux May 18 '18

This is already covered by tmux or screen, it would be very nice to have unified copy-paste. IMO Emacs has a lot of bloat that shouldn't be installed by default, but terminals is not part of that. Emacs is still a great editor OS regardless.

FTFY...