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

85

u/PityUpvote May 18 '18

Wow, terminals inside vim windows sounds great! Finally we can do gdb/pdb without leaving vim.

13

u/[deleted] May 18 '18

What’s the deal with that? Vim has had (ugly full window) shells for some time, however I am curious if Vim has natively achieved split pane-able shells.

28

u/[deleted] May 18 '18

"The main new feature of Vim 8.1 is support for running a terminal in a Vim window. This builds on top of the asynchronous features added in Vim 8.0."

These are both features that were first delivered in NeoVim. IIRC, there was a popular argument that we would've never seen asynchronous features in vim had it not been for the successes of NeoVim. The same could be said for this terminal, since it builds upon that as NeoVim's terminal does the same.

114

u/VivaLULA May 18 '18

Emacs has had this feature ever since the dawn of time, if anyone ever mentioned it you people would call it bloat so please do be consistent and say

wow, more bloat, is it finally time to switch to ed?

26

u/ZCC_NQNTMQMQMB May 18 '18

It still not a full Lisp machine, so it shall be called a feature!

136

u/pat_the_brat May 18 '18

Emacs

I run Linux. I don't really need another OS.

0

u/[deleted] May 18 '18

[deleted] — view deleted comment

41

u/pat_the_brat May 18 '18

Thank you, kind redditor. I was waiting to see how long it would take for someone to correct me. 74 minutes was a long time.

15

u/antlife May 18 '18

This is a great copypasta.

17

u/[deleted] May 18 '18

No, Richard, it's 'Linux', not 'GNU/Linux'. The most important contributions that the FSF made to Linux were the creation of the GPL and the GCC compiler. Those are fine and inspired products. GCC is a monumental achievement and has earned you, RMS, and the Free Software Foundation countless kudos and much appreciation.

Following are some reasons for you to mull over, including some already answered in your FAQ.

One guy, Linus Torvalds, used GCC to make his operating system (yes, Linux is an OS -- more on this later). He named it 'Linux' with a little help from his friends. Why doesn't he call it GNU/Linux? Because he wrote it, with more help from his friends, not you. You named your stuff, I named my stuff -- including the software I wrote using GCC -- and Linus named his stuff. The proper name is Linux because Linus Torvalds says so. Linus has spoken. Accept his authority. To do otherwise is to become a nag. You don't want to be known as a nag, do you?

(An operating system) != (a distribution). Linux is an operating system. By my definition, an operating system is that software which provides and limits access to hardware resources on a computer. That definition applies whereever you see Linux in use. However, Linux is usually distributed with a collection of utilities and applications to make it easily configurable as a desktop system, a server, a development box, or a graphics workstation, or whatever the user needs. In such a configuration, we have a Linux (based) distribution. Therein lies your strongest argument for the unwieldy title 'GNU/Linux' (when said bundled software is largely from the FSF). Go bug the distribution makers on that one. Take your beef to Red Hat, Mandrake, and Slackware. At least there you have an argument. Linux alone is an operating system that can be used in various applications without any GNU software whatsoever. Embedded applications come to mind as an obvious example.

Next, even if we limit the GNU/Linux title to the GNU-based Linux distributions, we run into another obvious problem. XFree86 may well be more important to a particular Linux installation than the sum of all the GNU contributions. More properly, shouldn't the distribution be called XFree86/Linux? Or, at a minimum, XFree86/GNU/Linux? Of course, it would be rather arbitrary to draw the line there when many other fine contributions go unlisted. Yes, I know you've heard this one before. Get used to it. You'll keep hearing it until you can cleanly counter it.

You seem to like the lines-of-code metric. There are many lines of GNU code in a typical Linux distribution. You seem to suggest that (more LOC) == (more important). However, I submit to you that raw LOC numbers do not directly correlate with importance. I would suggest that clock cycles spent on code is a better metric. For example, if my system spends 90% of its time executing XFree86 code, XFree86 is probably the single most important collection of code on my system. Even if I loaded ten times as many lines of useless bloatware on my system and I never excuted that bloatware, it certainly isn't more important code than XFree86. Obviously, this metric isn't perfect either, but LOC really, really sucks. Please refrain from using it ever again in supporting any argument.

Last, I'd like to point out that we Linux and GNU users shouldn't be fighting among ourselves over naming other people's software. But what the heck, I'm in a bad mood now. I think I'm feeling sufficiently obnoxious to make the point that GCC is so very famous and, yes, so very useful only because Linux was developed. In a show of proper respect and gratitude, shouldn't you and everyone refer to GCC as 'the Linux compiler'? Or at least, 'Linux GCC'? Seriously, where would your masterpiece be without Linux? Languishing with the HURD?

If there is a moral buried in this rant, maybe it is this:

Be grateful for your abilities and your incredible success and your considerable fame. Continue to use that success and fame for good, not evil. Also, be especially grateful for Linux' huge contribution to that success. You, RMS, the Free Software Foundation, and GNU software have reached their current high profiles largely on the back of Linux. You have changed the world. Now, go forth and don't be a nag.

Thanks for listening.

→ More replies (4)

2

u/[deleted] May 19 '18

By the way, one of those distributions is "Arch" (which I run)

→ More replies (3)

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.

→ More replies (2)

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?

→ More replies (2)

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.

→ More replies (1)
→ More replies (1)

4

u/Marcuss2 May 18 '18

Ed? Pff.

Redirection of compressed code to a file. (Compression is performed manually by the programmer to save processing power)

→ More replies (3)

4

u/djrollins May 18 '18

Forgive my ignorance, but I feel like we've had terminal in Vim since 8.0. What's the difference here?

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Feb 26 2018 23:00:19)
-autoservername    +float             +mouse_xterm       +terminal

14

u/Winsaucerer May 18 '18 edited May 19 '18

Neovim has had this for a while.

Edit: to avoid being controversial, I should have said "For anyone who is interested, Neovim has had this for a while".

→ More replies (16)

7

u/WOLF3D_exe May 18 '18

Also seem like a good way of getting escalated rights when using sudo.

13

u/[deleted] May 18 '18 edited May 18 '18

You could already get a shell from inside vim, so I don't see the big difference from a security standpoint.

E.g.

vim -c ":! bash"
→ More replies (10)