http://vimcasts.org/episodes/synchronizing-plugins-with-git-submodules-and-pathogen/
modules used in this configuration
- Note: neocomplete has been deprecated in vim 8+. I have switched this out for deoplete.
- Note: the following commands maybe destructive to your existing vim setup make sure you move your ~/.vim and ~/.vimrc out of the way eg:
mv ~/.vim ~/.vim_bak
mv ~/.vimrc ~/.vimrc_bakOnce done then :
mkdir ~/.vim
cd ~/.vimgit clone git@github.com/cajone/dotvim.git . ( Use this if you have ssh keys in place : Note the trailing dot is important but will only work if .vim is empty )
or
git clone https://github.com/cajone/dotvim.git . ( Note the trailing dot is important but will only work if .vim is empty )
mkdir undodir # this gives you persistent undo capabilities across sessionsIf on a linux system run the next line:
ln -s ~/.vim/vimrc ~/.vimrcif on a windows system move the .vim/vimrc file to ~/.vimrc
Once this is done we need to download all the bundles defined as git submodules:
cd ~/.vim
git submodule update --initEND OF SETUP INSTRUCTIONS
mkdir view # You only need this if you intend to use vims folding capabilityTo update this repo on your system after the original init load do the following :
cd ~/.vim
git pull
git submodule foreach git pull origin masterlast but not least start vim and run :Helptags to load all the help files for the submodules
This vimrc file uses '\' as its leader key, if you wish to change this to something else change this line in the vimrc
let mapleader='\'To use this vimrc configuration with nvim :
start nvim
:help nvim-from-vimbut basically for unix installs do the following ( cribbed from docs https://neovim.io/doc/user/nvim.html#nvim-from-vim )
start nvim
- To start the transition, create your |init.vim| (user config) file:
:call mkdir(stdpath('config'), 'p')
:exe 'edit '.stdpath('config').'/init.vim'- Add these contents to the file:
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc