Skip to content

Commit

Permalink
Add vim notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleOndy committed Dec 3, 2019
1 parent 2e1ecbe commit 8541ef5
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions provider/notes/vim.markdown
@@ -0,0 +1,25 @@
---
title: Vim
updated: 2015-11-20 12:00:00
subtitle: Text editing like a ninja
tags: notes, vim
---

# Commonly Used Commands

Here are commands I tend to forget

## Spelling ##

* turn spell check on: `:set spell`
* Move to next/last word: <kbd>]</kbd><kbd>s</kbd> / <kbd>[</kbd><kbd>s</kbd>
* Add word to dictionary: <kbd>z</kbd><kbd>g</kbd>
* Show suggestions: <kbd>z</kbd><kbd>=</kbd>

## Text Insertion ##

When pasting code use `:set paste` to preserve indenting of pasted code.

## Text Wrapping ##

Wrap code to `textwidth`: <kbd>g</kbd><kbd>q</kbd>

0 comments on commit 8541ef5

Please sign in to comment.