Thursday, August 11, 2022

Re: New version of vim unsolicitedly sourcing defaults.vim?

On Fri, Aug 12, 2022 at 12:29:24AM +0200, Tony Mechelynck wrote:
> I believe that Vim has a good set of defaults, including (in recent
> versions) sourcing defaults.vim when no user vimrc was found (if you
> have a vimrc, and still want the settings of the defaults.vim, or most
> of them like I do, well, just source it), so a system vimrc is almost
> never necessary, or even useful.

The other settings in defaults.vim don't usually give me much grief, but
having a non-0 'scrolloff' means my usual

{count}H
{count}L

no longer land {count} lines from the top/bottom of the screen,
but rather {count} + &scrolloff lines from the top/bottom.

Additionally a non-empty 'mouse' setting means that my usual "select
some text with the mouse (like I do in every other terminal situation)
and let my xterm/rxvt put it in the X selection buffer" stops
working.

> I don't think a distro should patch the defaults.vim, or any other Vim
> source file for that matter. Vim is good enough as it stands, and if a

Of the two items I found valuable in the FreeBSD tweaks, one was

let g:is_posix = 1 " Our /bin/sh is POSIX, not bash

as detailed at `:help ft-posix-syntax`. It also sounded reasonable
to have a BufNewFile read in a template when creating a new file
under the ports tree, but it feels like this would be better
instituted in some ft-detection section of things rather than in
defaults.vim

> Forking Vim is possible and the license allows it

In this case, it's less of a fork and more of a light patching/tweak
atop the stock distro, allowing it to more easily track the vim
upstream, but this particular change caused unfortunate side-effects.

-tim





--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/YvWgMx7l7LV4R6sL%40thechases.com.

No comments:

Post a Comment