Skip to content

westurner/dotvim

Repository files navigation

Clone the dotvim repository:

REPO_DEST=${VIRTUAL_ENV:+"${VIRTUAL_ENV}/src/"}dotvim
#REPO_DEST=${__DOTFILES}/etc/vim   # dotfiles install

## Clone
git clone https://github.com/westurner/dotvim $REPO_DEST
#git clone ssh://git@github.com/westurner/dotvim $REPO_DEST

## symlink
ln -s ${__DOTFILES}/etc/vim/vimrc ~/.vimrc
ln -s ${__DOTFILES}/etc/vim ~/.vim

## vim
source ~/.vimrc

Three files:

Dotvim Makefile:

# Show ``vimrc*`` comments
make help

# Install dotfiles and plugins for the current user
make install

# Test
make test

# Print comments with numbered lines (^"\s)
make list_vimrc_comments

# Print keyboard mapping comments (^"\s\s)
make list_vimrc_shortcuts

# Print vim mappings (opens an interactive vimpager)
make list_vim_mappings

:DotvimHelp vimgreps comment lines from vimrc configuration files and then opens the quickfix list (:copen, :cclose, help quickfix).

:DotvimHelp == :Help == :ListMappings

:tabnew
:Help

[...]
"  :DotvimReload    --  source ~/.vimrc
"  :DotvimHelp      --  vimgrep vimrc* comments
"  :ListMappings    --  vimgrep vimrc* comments
"  :map             --  list actual mappings
"  :scriptnames     --  list scripts and plugins
"  :set             --  list all nondefault options
[...]