/vimrc

A custom Vim editor configuration

Primary LanguageVim Script

Requirements

Vim 8+ NodeJS Yarn

 


Included Modules

Auto-Completion

Code Style

Code Syntax

Color Schemes

Utils

 


Installation

  1. Remove any existing vim configuration

    $ rm ~/.vimrc
    $ rm -r ~/.vim
  2. Clone the repository to your home directory

    $ git clone git@github.com:ridgekuhn/vimrc.git ~/.vim
  3. Initialize the submodules

    $ cd ~/.vim
    $ git submodule init && git submodule update
  4. Run the post-install script

    $ ~/.vim/.post-install.sh
  5. Install Node and Yarn (for Conquer of Completion)

  6. (Optional) Set the background color of your terminal to #002b36 for Solarized compatibility. MacOS users, try the included Terminal Profile.

 


Key Binding Cheatsheet

NERDtree

  • Ctrl + O: Opens NERDtree file browser

emmet-vim

  • Ctrl + Y: Emmet leader

vim-visual-multi

  • select words with Ctrl-N (like Ctrl-d in Sublime Text/VS Code)
  • create cursors vertically with Ctrl-Down/Ctrl-Up
  • select one character at a time with Shift-Arrows
  • press n/N to get next/previous occurrence
  • press [/] to select next/previous cursor
  • press q to skip current and get next occurrence
  • press Q to remove current cursor/selection

auto-pairs

  • M-p: Toggle Autopairs (g:AutoPairsShortcutToggle)

 


Resources