VimTricks
  • Vim Newsletter
  • Archive
  • Vim Courses
  • About
  • Vim Newsletter
  • Archive
  • Vim Courses
  • About
Colin Bartlett

Colin Bartlett

Vim enthusiast and software developer for more than 20 years.
Follow:
January 11, 2021

Ensuring aligned indentation 4.6 (72)

Use Vim’s shiftround option to ensure evenly aligned indentation.

Colin Bartlett
Colin Bartlett
January 7, 2021

Vertical Alignment 4.4 (51)

Align your code, notes, or text with the Tabular plugin.

Colin Bartlett
Colin Bartlett
January 4, 2021

Word wrapping 4.2 (71)

Wrap long lines and improve navigation when writing prose or notes.

Colin Bartlett
Colin Bartlett
December 31, 2020

Open Vim and split files 3.9 (68)

Use -o or -O to open multiple files in splits from the command line.

Colin Bartlett
Colin Bartlett
December 28, 2020

Open file in a split 4.3 (63)

Use ctrl-w f to open the file under the cursor in a new split.

Colin Bartlett
Colin Bartlett
December 17, 2020

Autocomplete word for word 4.3 (67)

Use insert completion mode to autocomplete a multi-word phrase.

Colin Bartlett
Colin Bartlett
December 14, 2020

Copy from above or below 4.6 (58)

Use ctrl-y or ctrl-e to copy from the line above or below.

Colin Bartlett
Colin Bartlett
December 3, 2020

Undo from Insert Mode 4.6 (183)

Use this trick to undo your changes without leaving insert mode.

Colin Bartlett
Colin Bartlett
November 30, 2020

Change case during substitution 4.4 (59)

Change the case of text inside a pattern when replacing in Vim.

Colin Bartlett
Colin Bartlett
November 23, 2020

Swap Arguments 3.7 (89)

Swap arguments or list items with this powerful plugin.

Colin Bartlett
Colin Bartlett

Posts navigation

Newer posts 1 2 3 … 7 Older posts

Get the Newsletter

Sign up for the VimTricks newsletter and get Vim tips in your inbox twice a week.

Search the Archives

Our Courses

  • Git Better with Vim

    Git Better with Vim

  • Master Vim Note-Taking

    Master Vim Note-Taking

  • Vim for Rubyists

    Vim for Rubyists

Recent Vim Tips

  • Open URL under cursor

  • Display hidden characters

  • Go to next match and select

  • Confirm replacements

Widgets

Top Rated Vim Tips

5 (1)

Vim for Rubyists

4.8 (24)

Git Better with Vim

4.7 (74)

Go to next match and select

4.7 (87)

Pasting multiple times

4.6 (211)

Insert matched pattern

Vim Tips by Tag

.vimrc args autocomplete case command line commands course flog fugitive git increment indenting insert interface motions navigation netrw notes patterns plugins quickfix registers replace ruby search spelling splits substitution text-objects unimpaired vim visual web

About VimTricks

Colin and AndyVimTricks is published by Colin Bartlett and Andy Libby, two Vim enthusiasts and software developers with more than 40 years combined experience with Vim.

Links

© Copyright 2020 Nimble Industries, Inc.