You can install this configuration wither using curl
or wget
or by manually cloning it down and
executing the installation script.
Fastest way to install is to use curl
curl -fsSL https://raw.githubusercontent.com/Gufran/vimconfig/master/install.sh | sh
or wget
wget https://raw.githubusercontent.com/Gufran/vimconfig/master/install.sh -O - | sh
If you dont want to pipe the script to sh directly, you can clone the repository in your home
directory and rename to .vim
. Run install.sh
to setup everything.
git clone https://github.com/Gufran/vimconfig ~/.vim
~/.vim/install.sh
All of the configuration and plugin definitions are in configuration
directory.
You can create a directory private
for all kind of private configuration, private
directory is
same as configuration directory except it is excluded from git repository, make sure your custom
config files have an extension .vim
or they will not be sourced.
If you choose to go the curl or wget way, the script will move you old configuration to .vim_old and download the new configuration. This step is skipped if you execute the script from a terminal.
It will then proceed to install the plugin manager, required plugins and move your existing .vimrc file to .vimrc_old. Your New .vimrc file will be a symlink to .vim/vimrc file available in this configuration.
vim-plug is chosen as default plugin manager. A list of plugins available and configured in this configuration is as follows:
- You Complete Me For omni completion
- Auto Pairs To insert a closing pair
- Gundo To visualise vim undo tree
- Supertab To reconcile conflicting tab key mappings
- Unite For a lot of stuff, more details Unite section
- Bbye To close last buffer without quitting vim
- Commentary To comment and uncomment lines
- Fugitive To operate on git repository
- Git Gutter To show diff symbols in symbol column
- Vim Go Golang developement environment with a lot of cool stuff
- Unimpaired Pairs of bracket mappings
- Vimproc For interactive command execution
- Vimfiler A file explorer
Auxiliary plugins to add more functionality to plugins listed above:
- NeoYank To manage yank history in Unite
- Unite Outline To show and navigate to headings in vim buffer
- Unite Tag Tag source for Unite
- Vim Misc Miscellaneous autoload scripts
Included colorschemes are:
A number of keybindings are available within this configuration
,
is the default leader keyF1
key is mapped toNOP
in all three modes. This is to protectESC
from fatfinger.CTRL+h
will set focus to left splitCTRL+l
will set focus to right splitCTRL+j
will set focus to lower splitCTRL+k
will set focus to upper split<Leader> k
will toggle file explorerF5
will toggle Gundo history viewerCTRL+p
will open a quick file navigtor, much like theCTRL+p
popup in sublime textCTRL-n
will open the outlineCTRL-m
will open a git command menu<leader> y
will show the yank history and can paste selected entry on presing enter keyspace
key will toggle folds<leader> c
clears search highlightings<leader> d
deletes current buffer
a
will create a new fileSpace
will mark the file for batch operationsd
will delete selected filem
will rename or move selected filec
will copy selected file and further paste it in a directoryo
will expand a directory tree or open the file in existing buffers
will open selected file in a vertical spliti
will open selected file in a horizontal splitr
will refresh the file explorergg
will navigate to the top directoryI
will toggle hidden filesCTRL+g
will print full filename in echo areaCTRL-p
will start a find buffer with selected directory as root?
will show full help for VimFiler
K
will open Go Doc for highlighted keyword in vertical split<leader> K
will open symbol definition for highlighted keyword in vertical splitCTRL-g
will navigate to the symbol definition