Re:The values of Emacs, the Neovim revolution, and the VSCod...
by didibus on Sunday January 17, 2021 @01:11PM
(#25813151)
Emacs buffers don't need to be associated with open files.
Basically menus, project trees, terminal tabs, etc. Are all just text buffers. So you can navigate them like they were a file opened in a regular text buffer.
Re:The values of Emacs, the Neovim revolution, and the VSCod...
by u801e on Sunday January 17, 2021 @01:40PM
(#25813488)
The netrw plugin that comes with the default installation of vim on many distros allows you to navigate the directory listing like a file, but it won't let you edit the text. The terminal buffer is similar, but you have to enter a special normal mode (ctrl-w N) in order to navigate the scrollback like a conventional buffer, but you can't change the contents of the buffer.
Re:The values of Emacs, the Neovim revolution, and the VSCod...
by simias on Sunday January 17, 2021 @01:14PM
(#25813203)
Yeah quickfix pane is a big annoyance of mine, but you also have things like :message that dumps a bunch of text to stdout that you can't meaningfully use directly. Compare that to Emacs' permanent Messages buffer that is just like any other buffer.
Vim is not the worst offender by any mean, but it's definitely a lot less uniform than Emacs.
Re:The values of Emacs, the Neovim revolution, and the VSCod...
by runiq on Sunday January 17, 2021 @04:37PM
(#25815217)
You can redirect stuff to a register with the following dance:
:redir "a :messages :redir END
Then, you can just paste from that register using "ap.
Re:The values of Emacs, the Neovim revolution, and the VSCod...
by u801e on Sunday January 17, 2021 @01:37PM
(#25813460)
I've been using vim for decades, but was not aware of the messages command. If it's anything like the version command or the K key for displaying the man page for a keyword under the cursor, that's also an annoyance of mine. It's also why I will redirect man page output to a standard buffer by running :r !man whatever in a new split window.
> It frustrates me endlessly that this one simple, almost self-evident piece of Emacs wisdom failed to gain traction almost everywhere else. Even the venerable Vim drops the ball hard here, with the various "widgets" it uses in its interface which have slightly different semantics and behaviours.
Perhaps I don't understand emacs well enough, but I know that every file loaded in vim can be accessed via its buffer number. How it's displayed depends on the window and tab layout. Quickfix, help, and terminal buffers behave differently, but the vast majority of buffers are just associated with open files.