Skip to content

Commit 092e95b

Browse files
committed
Merge pull request spf13#435 from mikedfunk/vimrc_before
updated documentation and comments for .vimrc.before
2 parents 98f0ee3 + 2783fb3 commit 092e95b

File tree

2 files changed

+25
-14
lines changed

2 files changed

+25
-14
lines changed

.vimrc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090

9191
" Most prefer to automatically switch to the current file directory when
9292
" a new buffer is opened; to prevent this behavior, add the following to
93-
" your .vimrc.bundles.local file:
93+
" your .vimrc.before file:
9494
" let g:spf13_no_autochdir = 1
9595
if !exists('g:spf13_no_autochdir')
9696
autocmd BufEnter * if bufname("") !~ "^\[A-Za-z0-9\]*://" | lcd %:p:h | endif
@@ -117,7 +117,7 @@
117117
set undoreload=10000 " Maximum number lines to save for undo on a buffer reload
118118
endif
119119

120-
" To disable views add the following to your .vimrc.bundles.local file:
120+
" To disable views add the following to your .vimrc.before file:
121121
" let g:spf13_no_views = 1
122122
if !exists('g:spf13_no_views')
123123
" Add exclusions to mkview and loadview
@@ -224,7 +224,7 @@
224224

225225
" The default leader is '\', but many people prefer ',' as it's in a standard
226226
" location. To override this behavior and set it back to '\' (or any other
227-
" character) add the following to your .vimrc.bundles.local file:
227+
" character) add the following to your .vimrc.before file:
228228
" let g:spf13_leader='\'
229229
if !exists('g:spf13_leader')
230230
let mapleader = ','
@@ -235,7 +235,7 @@
235235
" Easier moving in tabs and windows
236236
" The lines conflict with the default digraph mapping of <C-K>
237237
" If you prefer that functionality, add let g:spf13_no_easyWindows = 1
238-
" in your .vimrc.bundles.local file
238+
" in your .vimrc.before file
239239

240240
if !exists('g:spf13_no_easyWindows')
241241
map <C-J> <C-W>j<C-W>_
@@ -251,7 +251,7 @@
251251
" The following two lines conflict with moving to top and
252252
" bottom of the screen
253253
" If you prefer that functionality, add the following to your
254-
" .vimrc.bundles.local file:
254+
" .vimrc.before file:
255255
" let g:spf13_no_fastTabs = 1
256256
if !exists('g:spf13_no_fastTabs')
257257
map <S-H> gT
@@ -545,7 +545,7 @@
545545
" These two lines conflict with the default digraph mapping of <C-K>
546546
" If you prefer that functionality, add
547547
" let g:spf13_no_neosnippet_expand = 1
548-
" in your .vimrc.bundles.local file
548+
" in your .vimrc.before file
549549

550550
if !exists('g:spf13_no_neosnippet_expand')
551551
imap <C-k> <Plug>(neosnippet_expand_or_jump)
@@ -648,7 +648,7 @@
648648
" These two lines conflict with the default digraph mapping of <C-K>
649649
" If you prefer that functionality, add
650650
" let g:spf13_no_neosnippet_expand = 1
651-
" in your .vimrc.bundles.local file
651+
" in your .vimrc.before file
652652

653653
if !exists('g:spf13_no_neosnippet_expand')
654654
imap <C-k> <Plug>(neosnippet_expand_or_jump)

README.markdown

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spf13-vim is a distribution of vim plugins and resources for Vim, Gvim and [MacV
1111

1212
It is a good starting point for anyone intending to use VIM for development running equally well on Windows, Linux, \*nix and Mac.
1313

14-
The distribution is completely customisable using a `~/.vimrc.local` and `~/.vimrc.bundles.local` Vim RC files.
14+
The distribution is completely customisable using a `~/.vimrc.local`, `~/.vimrc.bundles.local`, and `~/.vimrc.before` Vim RC files.
1515

1616
![spf13-vim image][spf13-vim-img]
1717

@@ -151,18 +151,29 @@ For example, to override the default color schemes:
151151
echo colorscheme ir_black >> ~/.vimrc.local
152152
```
153153

154+
### Before File
155+
156+
Create a `~/.vimrc.before` file to define any customizations
157+
that get loaded *before* the spf-13 `.vimrc`.
158+
159+
For example, to prevent autocd into a file directory:
160+
```bash
161+
echo let g:spf13_no_autochdir = 1 >> ~/.vimrc.before
162+
```
163+
154164
### Fork Customization
155165

156166
There is an additional tier of customization available to those who want to maintain a
157167
fork of spf13-vim specialized for a particular group. These users can create `.vimrc.fork`
158168
and `.vimrc.bundles.fork` files in the root of their fork. The load order for the configuration is:
159169

160-
1. `.vimrc.bundles.local` - local user bundle configuration
161-
2. `.vimrc.bundles.fork` - fork bundle configuration
162-
3. `.vimrc.bundles` - spf13-vim bundle configuration
163-
4. `.vimrc` - spf13-vim vim configuration
164-
5. `.vimrc.fork` - fork vim configuration
165-
6. `.vimrc.local` - local user configuration
170+
1. `.vimrc.before` - before user configuration
171+
2. `.vimrc.bundles.local` - local user bundle configuration
172+
3. `.vimrc.bundles.fork` - fork bundle configuration
173+
4. `.vimrc.bundles` - spf13-vim bundle configuration
174+
5. `.vimrc` - spf13-vim vim configuration
175+
6. `.vimrc.fork` - fork vim configuration
176+
7. `.vimrc.local` - local user configuration
166177

167178
See `.vimrc.bundles` for specifics on what options can be set to override bundle configuration. See `.vimrc` for specifics
168179
on what options can be overridden. Most vim configuration options should be set in your `.vimrc.fork` file, bundle configuration

0 commit comments

Comments
 (0)