My .vim and vimrc setup.
cd ~
git clone --recursive https://github.com/kirklewis/dotvim.git ~/.vim
Add a symbolic link to .vimrc so Vim can find it.
ln -s ~/.vim/vimrc ~/.vimrc
The vimrc file is structured as follows:
-
Tim Pope's Pathogen at the top to install plugins.
-
Default color scheme - Solarized
-
Settings and mappings (sourced) from settings.vim and mappings.vim respectively. Keeps the vimrc file shorter.
-
Auto commands at the bottom. File types are sourced from filetypes.vim
Just a few of many:
-
No swap files
*.swp
or backup files generated. -
Visual block kept after indentation mappings.vim.
-
NERDTree shows hidden folders/files except
.git
and.DS_Store
. -
Trailing spaces highlighted by default.
:StripWhiteSpace
. -
GitGutter enabled by default and Signify (for SVN, Mercurial) is not. Use
:SignifyToggle
and:GitGutterToggle
to enable or disable either.
Auto-Pairs : Insert or delete brackets, parens, quotes in pair.
Dockerfile : Vim syntax file for Docker's Dockerfile.
Dracula : ๐ฑ Dracula colour scheme for vim.
IndentLine : Displaying thin vertical lines at each indentation level for code indented with spaces.
NERDTree : Explore your filesystem and to open files and directories.
Solarized : Solarized colour scheme for vim.
TComment : Inline and block commenting for various programming languages.
TypeScript-vim : Syntax file and other settings for TypeScript
vim-airline : Useful status line for vim.
vim-better-whitespace : Highlight trailing white spaces and tabs.
vim-devicons : File type glyphs (icons) useful with NERDTree and vim-airline.
vim-gitgutter : Shows a git diff in the 'gutter' (sign column).
vim-go : Go development plugin for Vim
vim-json : Distinct highlighting for JSON.
vim-signify : Highlights modification in files under VCS like Git, SVN, etc.
vim-surround : Surround text with characters, like quotes, HTML tags, etc.
Update bundles
cd ~/.vim
git submodule foreach git pull origin master