Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vim settings (mostly for root) #721

Merged
merged 1 commit into from
Oct 12, 2024
Merged

Fix vim settings (mostly for root) #721

merged 1 commit into from
Oct 12, 2024

Conversation

rrotter
Copy link
Member

@rrotter rrotter commented Oct 8, 2024

  • don't set bg=dark, vim automatically sets bg based on termcap
  • create empty /root/.vimrc
    • w/o .vimrc vim loads defaults from /usr/share/vim/vim82/defaults.vim
    • defaults.vim sets mouse=a, overriding /etc/vim/vimrc

- don't set bg=dark, vim automatically sets bg based on termcap
- create empty /root/.vimrc
  - w/o .vimrc vim loads defaults from /usr/share/vim/vim82/defaults.vim
  - defaults.vim sets mouse=a
@rrotter rrotter requested review from daaang and botimer October 8, 2024 23:20
@rrotter
Copy link
Member Author

rrotter commented Oct 8, 2024

I tested the changes to /etc/vim/vimrc with both a white and black background. In each case vim sets bg logically to light/dark.

Discovered what was going on w/ set mouse= getting quashed from this old thread:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864074

@rrotter rrotter requested a review from antmoth October 9, 2024 13:14
@rrotter rrotter merged commit 9284b23 into production Oct 12, 2024
1 check passed
@rrotter rrotter deleted the vim branch October 12, 2024 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants