Skip to content

Commit 36490cf

Browse files
committed
vimrc.before/after
1 parent 712cdf3 commit 36490cf

File tree

4 files changed

+42
-27
lines changed

4 files changed

+42
-27
lines changed

Changelog

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
* 2012-01-24
2+
- .vimrc.before and .vimrc.after support
3+
- removed .vim_local and .local.vim support
4+
- reprecated .local-before and .local-after
5+
16
* 2012-12-25
27
- 'switch' plugin
38

README.markdown

+16-17
Original file line numberDiff line numberDiff line change
@@ -121,32 +121,31 @@ Check out the 'plugins.vim' and 'after/plugin/bindings.vim' files for more...
121121

122122
For easy upgrades its preferable not to change the dotvim configuration files.
123123
Instead you can add your own local configuration into one of the local override
124-
files. There are several override files supported by dotvim:
124+
files. There are several override files supported by dotvim.
125125

126-
Files loaded **before** the plugins:
126+
They are loaded in the following order:
127127

128-
* `~/.vim_local` - deprecated
129-
* `~/.vim-before.vim`
128+
* base dotvim configuration (global, plugin configurations, bindings, macros)
129+
* `~/.local-before.vim` _[deprecated]_
130+
* `~/.vimrc.before`
131+
132+
Loaded **before** the plugins
130133

131134
This is where you should pre-set various plugin flags, enable/disable options
132-
etc. This is for things you would normally put into yoru vimrc file.
135+
etc. This is for things you would normally put into your vimrc file.
133136

134-
Files loaded **after** the plugins:
137+
* `~/.gvimrc.before` _[when GUI running]_
138+
* vim plugins
139+
* dotvim bindings and overrides (loaded from `~/.vim/after.vim`)
140+
* `.local-after.vim` _[deprecated]_
141+
* `.vimrc.after`
135142

136-
* `~/.local.vim` - deprecated
137-
* `~/.local-after.vim`
143+
Loaded **after** the plugins
138144

139145
This is where you can override settings set by plugins that have no
140-
customization options etc.
141-
142-
Configuration files are loaded in the following order:
146+
customization options.
143147

144-
* dotvim configuration
145-
* .local-before.vim
146-
* plugins
147-
* dotvim bindings and overrides
148-
* .local.vim
149-
* .local-after.vim
148+
* `.gvimrc.after` _[when GUI running]_
150149

151150
<a name=backups>
152151
#### Backups

after.vim

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
source ~/.vim/bindings.vim
55
source ~/.vim/plugins-override.vim
66

7-
if filereadable(expand("~/.vim_local"))
8-
echo "~/.vim_local is deprecated, please move it to ~/.local.vim"
9-
source ~/.vim_local
10-
endif
11-
12-
if filereadable(expand("~/.local.vim"))
13-
echo "~/.local.vim is deprecated, please move it to ~/.local-after.vim or ~/.local-before.vim depending on the content.\nSee 'Local Configuration' section in the README.\n\n"
14-
source ~/.local.vim
15-
endif
16-
177
if filereadable(expand("~/.local-after.vim"))
8+
echo "~/.local-after.vim is deprecated, please move it to ~/.vimrc.after"
189
source ~/.local-after.vim
1910
endif
2011

12+
if filereadable(expand("~/.vimrc.after"))
13+
source ~/.vimrc.after
14+
endif
15+
2116
if has('gui_running')
2217
if filereadable(expand("~/.local-gui.vim"))
18+
echo "~/.local-gui.vim is deprecated, please move it to ~/.gvimrc.after"
2319
source ~/.local-gui.vim
2420
endif
21+
22+
if filereadable(expand("~/.gvimrc.after"))
23+
source ~/.gvimrc.after
24+
endif
2525
end

before.vim

+11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
" this file is loaded BEFORE plugins
22
if filereadable(expand("~/.local-before.vim"))
3+
echo "~/.local-before.vim is deprecated, please move it to ~/.vimrc.before"
34
source ~/.local-before.vim
45
endif
6+
7+
if filereadable(expand("~/.vimrc.before"))
8+
source ~/.vimrc.before
9+
endif
10+
11+
if has('gui_running')
12+
if filereadable(expand("~/.gvimrc.before"))
13+
source ~/.gvimrc.before
14+
endif
15+
endif

0 commit comments

Comments
 (0)