/.vim

Plugins/configuration for simple text editing. Installed for you by Pathogen written by @tpope.

Primary LanguageVim Script

.vim

📄 Personal log of .vimrc settings as I learn to use it

Table of Contents

Install

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

Update

git submodule foreach git pull origin master

or

git submodule update --init --recursive # Incase of nested submodules

Pathogen

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

From VIM

  • Source Vim Config :source ./.vim/vimrc
  • Plugin Install vim +PluginInstall +qall
cd ~
git clone https://github.com/mochsner/.vim.git

Notable Shortcuts

``` 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+

Learning Materials

Support

open an issue

Contributing

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