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

These options are just wrong: set bomb binary nobackup noswapfile #306

Carpetsmoker opened this Issue Mar 14, 2019 · 0 comments


None yet
1 participant
Copy link

Carpetsmoker commented Mar 14, 2019

There are some very surprising settings:

set bomb
set binary
set nobackup
set noswapfile

There are plenty of other things in this vimrc that are ... unwise to put in there for new people without explanation, but these really stand out.

set nobackup noswapfile means people will have no backup in case of crashes (Vim, OS, terminal emulator, power outage, whatnot). Why disable this? Vim doesn't do this just for the craic.

set bomb means all files will be saved with a BOM, which can cause a lot of confusion; e.g. #!/bin/sh will no longer work. PHP will break. Endless diff noise in git, etc. It's not even needed to utf-8, it's a utf-16 thing.

set binary has loads of side-effects. It's intended for editing binary text. See the help page. Frankly including it here is just spectacularly wrong.

cassiobotaro added a commit that referenced this issue Mar 14, 2019

Merge pull request #307 from avelino/issue/306
Fix #306: remove 'wrong' configs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.