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

Colin Bartlett

Vim enthusiast and software developer for more than 20 years.
Follow:
July 2, 2020

Open file to line 3.4 (261)

Quickly jump to a certain line on a given file.

Colin Bartlett
Colin Bartlett
June 29, 2020

Reposition the current line 3.6 (344)

Expose the area of the file surrounding your cursor with these z commands.

Colin Bartlett
Colin Bartlett
June 28, 2020

Count Occurrences 3.6 (361)

Get a pattern match count quickly with this one simple Vim trick.

Colin Bartlett
Colin Bartlett
June 25, 2020

Write with sudo without leaving Vim 3.6 (335)

Use tee or a handy plugin to save a privileged file that you forgot to open with sudo.

Colin Bartlett
Colin Bartlett
June 22, 2020

View your history from command mode 3.6 (268)

Easily run a Vim command again by viewing your history.

Colin Bartlett
Colin Bartlett
June 8, 2020

Displaying Color Codes 3.2 (333)

With a little help, Vim can highlight color codes in their actual colors.

Colin Bartlett
Colin Bartlett
May 28, 2020

Reselect last visual selection 3.2 (1309)

Try this quick trick to make a new edit on something you just selected.

Colin Bartlett
Colin Bartlett
May 25, 2020

Relative line numbering 3.3 (310)

Edit faster by eliminating the need to do arithmetic in your head.

Colin Bartlett
Colin Bartlett
May 14, 2020

Jump to next merge conflict 3.5 (207)

Whisk through tricky merge conflicts with Unimpaired’s bracket mappings.

Colin Bartlett
Colin Bartlett
May 7, 2020

Swap two characters 3.3 (346)

Easily clean up typos by swapping two misplaced characters.

Colin Bartlett
Colin Bartlett

Posts navigation

Newer posts 1 … 8 9 10 Older posts

Get the Newsletter

Search the Archives

Our Books

  • Git Better with Vim

    Git Better with Vim

Recent Vim Tips

  • Get the current file path

  • Closing hidden buffers

  • Making small changes

  • Changing regex delimiters

Widgets

Top Rated Vim Tips

4.8 (89)

Go to next match and select

4.8 (34)

Print substitutions

4.8 (39)

Investigate characters

4.8 (90)

Automated file templates

4.8 (46)

Interactive replace across files

Vim Tips by Tag

args books buffers case commands commenting courses ebooks ex filter flog fugitive git global indenting insert interface mappings markdown marks math motions navigation netrw notes patterns plugin plugins quickfix regex registers replace search shell skeleton snippets splits substitution template text-objects unimpaired vim vimrc 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.
Click to Copy