📄 Personal log of .vimrc settings as I learn to use it
Option A: Clone with submodules
git clone --recursive https://github.com/mochsner/.vim ~/_vim
# (or)
ln -s ~/_vim/vimrc ~/.vimrc
ln -s ~/_vim/gvimrc ~/.gvimrc
Option B: Clone then update submodules (?)
```bash
git clone http://github.com/mochsner/.vim ~/_vim
ln -s ~/_vim/vimrc ~/.vimrc
ln -s ~/_vim/gvimrc ~/.gvimrc
cd ~/.vim
git submodule update --init --recursive # Incase of nested submodules
git submodule foreach git pull origin master
or
git submodule update --init --recursive # Incase of nested submodules
Add submodules (new pathogen plugins)
cd ~/_vim/bundle/
git submodule add https://github.com/user/repo
Remove submodules (3 step process)
0. mv a/submodule a/submodule_tmp
1. git submodule deinit -f -- a/submodule
2. rm -rf .git/modules/a/submodule
3. git rm -f a/submodule
# Note: a/submodule (no trailing slash)
# or, if you want to leave it in your working tree and have done step 0
3. git rm --cached a/submodule
3bis mv a/submodule_tmp a/submodule
Pathogen modules are loaded automatically via .vim/autoload/pathogen.vim, and below in vimrc:
execute pathogen#infect() ### Uses ~/.vim/bundle as the src folder
or
execute pathogen#infect('folder/{}') ### Uses ~/.vim/folder as the src folder
- Source Vim Config
:source ./.vim/vimrc
- Plugin Install
vim +PluginInstall +qall
cd ~
git clone https://github.com/mochsner/.vim.git
``` Yank all lines of a file ```
# %: refer to next command to work on all the lines
# y: to yank those lines
# +: copy to system clipboard
:%y+
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.
README.md template taken from https://github.com/fraction/readme-boilerplate