Table of Contents generated with DocToc
- Disclaimer
- Installation
- Create symlinks:
- Tagbar Plugin
- VIM
Most of these instructions are ripped off straight from here.
git clone git://github.com/thlorenz/dotfiles.git
Where possible, Vim plugins are installed as git submodules. Check these out by running the commands:
cd dotfiles
git submodule update --init
Vim scripts without a repo will be pulled down during clone. They can be updated via:
ruby update_vim_scripts
ln -s ~/dotfiles/bashrc ~/.bashrc
ln -s ~/dotfiles/bashprofile ~/.profile
ln -s ~/dotfiles/inputrc ~/.inputrc
ln -s ~/dotfiles/vimrc ~/.vimrc
ln -s ~/dotfiles/irbrc ~/.irbrc
ln -s ~/dotfiles/vim ~/.vim
ln -s ~/dotfiles/ctags ~/.ctags
ln -s ~/dotfiles/gitconfig ~/.gitconfig
ln -s ~/dotfiles/tigrc ~/.tigrc
ln -s ~/dotfiles/cardinalrc ~/.cardinalrc
ln -s ~/dotfiles/agignore ~/.agignore
ln -s ~/dotfiles/config/nstart ~/.config/nstart
ln -s ~/dotfiles/config/pkginit ~/.config/pkginit
cp ~/dotfiles/fonts/* ~/Library/Fonts/
- halzy/dotfiles tweaked for nvim
In order for the tagbar plugin to work, we replace the original ctags with a better version.
Assuming you are on a Mac and have Homebrew installed run:
sudo sh ~/dotfiles/installs/ctags-exuberant.sh
Link libclang to where the clang plugin looks for it.
ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libclang.dylib /usr/local/lib/libclang.dylib
Alternatively adjust the g:clang_library_path
.
sudo easy_install Pygments
On a Mac install macvim and use it's built in cli vim via:
brew install macvim --override-system-vim
Then make sure that /usr/local/bin
is first in your PATH
.
My preferences for Vim are stored in dotfiles/vimrc
.
All plugins and scripts are stored in the dotfiles/vim
directory.
In order to update all submodules to the latest 'master' you can do:
git submodule foreach git pull origin master
In order to use the autojump plugin
brew install autojump
Plugins that are published on github can be installed as submodules. For example, to install the JavaScript bundle, follow these steps:
cd ~/dotfiles
git submodule add http://github.com/pangloss/vim-javascript.git vim/bundle/vim-javascript
This will update the .gitmodules
file by appending something like:
[submodule "vim/bundle/vim-javascript"]
path = vim/bundle/vim-javascript
url = http://github.com/pangloss/vim-javascript.git
As well as checkout out the git repo into the
vim/bundle/vim-javascript
directory. You can then commit these changes
as follows:
git add .
git ci -m "Added the javascript bundle"