Easily edit spf13-vim configuration #794
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The spf13-vim config is spread across multiple .vimrc files and it can be arduous to track down the location of a particular setting if you want to customize your own instance.
Viewing / Editing .vimrc files
This pull request introduces a new function EditSpf13Config() that opens a new tab containing the following windows:
The following .fork files are also opened if any are detected:
This makes it much simpler to get an overview of and make changes to your spf13-vim configuration.
Sourcing .vimrc
Additionally, a convenience mapping is introduced that applies the configuration to the currently running vim instance so you can make changes and apply them straight away.
Mappings
The default mappings (as suggested by Steve Losh @sjl in Learn Vimscript the Hard Way) are:
<Leader>ev
- "_e_dit ._v_imrc" - open .vimrc files for editing<Leader>sv
- "_s_ource ._v_imrc" - apply .vimrc configurationThese mappings are configurable by setting the following variables in .vimrc.before.local