My personal ViM Configuration files
The easiestland probably only-way to get this distribution is by using git
. Since the Vundle is a submodule of this repository, it is recommended that you clone recursively
git clone --recursive https://github.com/jlconlin/ViMConfig.git ~/.vim
Included with these configuration files are
vimrc
gvimrc
To use these files—without copying them—create a file ~/.vimrc
with this as the contents
if filereadable(expand("\~/.vim/vimrc"))
source \~/.vim/vimrc
endif
"
if has("gui\_running") && filereadable(expand("\~/.vim/gvimrc"))
source ~/.vim/gvimrc
endif
if filereadable(expand("\~/.vim/vimrc.local"))
source \~/.vim/vimrc.local
endif
Then create a link from $HOME/.vimrc
to $HOME/.gvimrc
. Doing this will make ViM see these configuration files and you will be happy. Cloning my distribution, will not automatically get the plugins. However, the Vundle plugin can do that anyway. Simply do this:
My configuration uses a few custom directories to store temporary and backup files.
~/.vimbackup
~/.vimswap
~/.vimundo
If these files are not present, then there will be some minor errors when opening up a file as it won't know what directory to look in for backup, swap, and undos.
Plugins are managed by Vundle. If you cloned recursively then this should be available automatically.
Once the repository has been cloned and configured the plugins can be installed simply by executing:
vim +PluginInstall +qall
as described by the installation procedures for Vundle.
There are some plugins that need to be built after they are installed. Here are the instructions for building each of them. Note: These instructions are for the Mac as that is the machine I use. These instructions may work for other platforms.
cd ~/.vim/bundle/YouCompleteMe
install.py --all
CoVim requires Python 2.5+ as well as some additional packages. The instructions here use pip
to install the packages, but I generally use Conda.
pip install twisted argparse service_identity
Note that argparse
is part of the standard library for Python 3.2+ and 2.7+.
- vim-latex Working with LaTeX files.
- rainbow Rainbow highlighting of parantheses.
- Align Align statements based on regular expression syntax matching
- nerdtree File browser as a tree
- python-mode Generic Python plugin
- VisIncr Facilitates the increasing/decreasing of columnar information.
- XML-Folding Folding for XML.
- ENDF.vim Syntax highlighting/folding for ENDF files.
- cpp.vim Personal C++ configuration
- SuperTab Allows you to use
<Tab>
for autocompletion. - Tagbar Provides an easy way to browse the tags for the current file.
- vim-easytags Automatic tag generation and syntax highlighting.
- vim-misc Miscellaneous auto-load scripts.
- meta5 Dark colorscheme.
- vim-json Better syntax highlighting and folding for JSON files.
- vim-monokai Monokai colorscheme
- vim-markdown Syntax highlighting and folding for Markdown files.
- nerdtree-git-plugin NERDTree plugin to indicate git status of each file.
- vim-airline Status bar configuration.
- vim-gitgutter Provides line-by-line indicator of git status.
- YouCompleteMe Provides line-by-line indicator of git status.
- vim-tmux-navigator Provides integration between ViM and tmux.
- altercation/vim-colors-solarized a colorscheme that looks nice.
- lervag/vimtex An alternative LaTeX plugin.
- FredKSchott/CoVim Collaborative editing for Vim
- jeetsukumaran/vim-buffergator Listing and selecting Vim buffers.