non port: editors/vim/files/vimrc |
Number of commits found: 8 |
Saturday, 3 Sep 2022
|
18:03 Adam Weinberger (adamw)
editors/vim: Update to 9.0.0369, and drop the FreeBSD vimrc
Our FreeBSD vimrc has caused a lot of trouble. It seriously mangles
config loading order (see below PR for the 21 comments it took before
I could get my head around it), clobbers defaults, duplicates defaults,
and simply isn't how Vim does things.
In this patch, the system vimrc is dropped entirely. Instead,
$VIMRUNTIME/defaults.vim sources $VIMRUNTIME/defaults_freebsd.vim, which
contains only FreeBSD-specific settings (today, a convenience augroup
for port creation, and a flag to let syntax/sh.vim know that /bin/sh
isn't bash).
There is no perfect solution here, but by not clobbering anything
anymore, we at least don't *prevent* other solutions. You now get Vim's
defaults, and you are free to override them in your ~/.vimrc.
PR: 251420
a058c61 |
Monday, 1 Aug 2022
|
13:47 Adam Weinberger (adamw)
editors/vim: Add some explanatory comments to the vimrc
Our vimrc duplicates settings from $VIMRUNTIME/defaults.vim, which
appears odd.
However, it's actually required because of vim-tiny. vim-tiny installs
an empty defaults.vim stub, meaning that it only gets the settings that
appear in our vimrc.
PR: 265502
8380feb |
Thursday, 2 Jun 2022
|
17:41 Adam Weinberger (adamw)
editors/vim: Update to 8.2.5052 and fix vimrc clobbering
Vim runtime's defaults.vim will clobber global vimrc settings. It's
fine for the settings we provide, but other edits to that file can
get lost.
To work around this, defaults.vim is now directly sourced and a flag
is set to stop that file from getting loaded a second time. Thanks go
to Anton Saietskii for that bit of magic.
PR: 251420
f27ea6b |
Saturday, 1 Jun 2019
|
14:35 adamw
Update to Vim to patchlevel 1439, change default python, improve vimrc
Some big changes in this update:
* Patchlevel 1439
* Default python is now 3.x instead of 2.x [1]
* Expose DEFAULT_VIMRC option (on by default) to vim-tiny
Also, many changes to the default vimrc. Any changes necessarily risk
contention, but then I remembered that I actually maintain editors/vim,
so here we are. The idea here is that Vim, by default, behaves like Vi,
and people who install the Vim port do so because they DON'T just want
Vi. I've enabled features that are basic quality-of-life settings for
me, and that I hope will be ideal for most end-users.
Important changes in the default vimrc:
* Don't install gvimrc at all. gvim should load $ETCDIR/vimrc anyway. I
can't test gvim locally, so someone please let me know if I broke it.
* Turn on autoindent
* Disable console bells entirely. Console bells are terrible.
* Enable incsearch: highlights search results as you type them
* ^L clears search highlights while redrawing the screen
* Assume fast terminal by default
* Explain every setting in comments
Many of these settings are modeled after the defaults in NeoVim, which
really got it right. I want our default vimrc to be usable and ideal,
so please let me know if anything doesn't work for you, or if you have
other settings you'd like to see changed in the default.
In particular, please let me know if I broke gvim by removing the gvimrc!
PR: 235142 [1]
Submitted by: John W. O'Brien [1]
|
Saturday, 28 Mar 2015
|
16:12 sunpoet
- Add "let: g:is_posix = 1" to default vimrc
- Bump PORTREVISION for package change
PR: 198728
Submitted by: <yuri@rawbw.com>
|
Thursday, 4 Dec 2014
|
17:28 bapt
Move the vimrc into ETCDIR to user may have a look at it.
Now install a minimalistic vimrc without all the controversial options (I hope)
Define a template for port Makefiles to vim automatically creates it in case of
opening a new one
|
Sunday, 16 Nov 2014
|
22:55 alfred
Use vimrc from distribution.
Suggested by: many.
|
02:32 alfred
A nice default vimrc for new users.
Otherwise users get "vi compat mode" which gives very old and
unfriendly vi defaults that breaks arrow keys and backspace as well
as no color.
Expert users can disable this default vimrc via "make config".
Approved by: delphij
|
Number of commits found: 8 |