Skip to content

Latest commit

 

History

History
36 lines (18 loc) · 1.64 KB

README.md

File metadata and controls

36 lines (18 loc) · 1.64 KB

vim_configuration

vim

Example of Copy-Delete-Paste Workflow

This repository contains a .vimrc configuration file for the vim setup that I like to use. This includes:

  • No tabs by default, but spaces, for consistency

  • Can ESC with jk or kj to require less hand movement

  • Relative line number to jump between lines without mental math

  • Use same register as regular clipboard by default, so that you can easily copy/paste inside or outside of vim

  • Show $ at the end of each line and ^I for tabs to more easily check code consistency with white space

  • Make d, D, c, C, x, and X not overwrite the register by default, but can still save to register with ,d, ,D, ,c, ,C, ,x, and ,X.

  • Find occurrences of variable by hoving over the variable and pressing *

  • Enter blank lines from command mode with , so you can create 70 blank lines with 70

  • Autocomplete with CTRL+n, then scroll down with CTRL+n and scroll up with CTRL+p

  • Delete and paste word in one click with R

The basic structure comes from http://vim.wikia.com/wiki/Example_vimrc, which gave me a great starting point to customize my vim use.

Check out my blog posts for more information about my vim setup, with example gifs!