wistrandj / vimbox

A vim setup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vimbox

vimbox is a plugin of miscellaneous commands and mappings that are too small to be separate plugins. It's not intended for public use and therefore it has hardly any documentation. But if you find any interesting ideas in vimbox then feel free to copy those bits and pieces into your own vimrc.

Install

Copy the project into bundle/ directory provided by your plugin manager (Vundle, Pathogen) and make a symlink from vimrc to ~/.vimrc.

    cd ~/.vim/bundle
    git clone https://github.com/jasu0/vimbox
    ln -s vimbox/vimrc ~/.vimrc

Plugins

  • vimrc loads either kien/ctrlp.vim or junegunn/fzf plugins depending if fzf binary is available. Install it by running commands

    $ git clone --depth 1 https://github.com/junegunn/fzf.git $HOME/.fzf $ $HOME/.fzf/install

    This will ask some question whether to use autocompletion - turn it on in bash.

  • Load only vimbox and no other plugins.

    $ export VIMBOX_NO_PLUGINS=1 $ vim

Notes

  • When using <Plug> for mappings, you have to use nmap and not nnoremap commands
  • Vundle needs filetype off defined before loading plugins. Otherwise it will not read sources from ftdetect.
  • Find loaded plugins with :scriptnames.

About

A vim setup

License:Other


Languages

Language:Vim Snippet 54.7%Language:Vim Script 45.3%