• Stars
    star
    129
  • Rank 278,385 (Top 6 %)
  • Language
    Vim Script
  • License
    MIT License
  • Created about 10 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Samples and notes for my Aug 2014 'Your First Vim Plugin' talk

Your First Vim Plugin

These are the notes and samples from my August 2014 Vim talk, 'Your First Vim Plugin'. Their official home is this repo. You can also view a recording of the talk.

Samples

  1. Fix spelling error
  2. Move Item To List Top
  3. Markdown underline
  4. Extract Variable

The Simple Path to Your First Plugin

  1. Know how to edit, save, and source your vimrc
  2. Capture normal mode actions, repeat with :normal
  3. Wrap :normal call in a named function 1a. Poke around in the REPL / command line 1b. Add ehcom debug statements, use :messages to review 1c. Temporarily export to global var
  4. Wrap it up
  • script local your function
  • create a command
  • package it up!

What Can You do with Vim Plugins?

Custom Text Objects

Not mine, but still great!

Operators

  • titlecase - Titlecase based on a motion
  • sort-motion - Sort lines or arguments, based on a vim motion

System Integration

  • tmux nav - Navigate seamlessly between vim and tmux splits
  • tmux runner - Send commands from Vim to adjacent tmux panes

Raw Efficiency

  • spec-runner - Efficient spec running from withing vim
  • rfactory - Rails.vim inspired navigation commands for FactoryGirl
  • conflicted - Powerful git merge/rebase conflict resolution
  • quicklink - Insert links

Pro Tips

More Repositories

1

vim-tmux-navigator

Seamless navigation between tmux panes and vim splits
Vim Script
5,206
star
2

dotfiles

My vim, zsh, git, tmux, and other config files and utility scripts.
Shell
466
star
3

vim-system-copy

Vim plugin for copying to the system clipboard with text-objects and motions
Vim Script
345
star
4

vim-tmux-runner

Vim and tmux, sittin' in a tree...
Vim Script
290
star
5

vim-conflicted

Easy git merge conflict resolution in Vim
Vim Script
271
star
6

vim-sort-motion

Vim mapping for sorting a range of text
Vim Script
250
star
7

vim-titlecase

Teach Vim about titlecase, with support for motions and text objects
Vim Script
103
star
8

vim-quicklink

A Vim plugin for quickly looking up a topic in google and inserting the relevant link
Vim Script
55
star
9

boston-react-conf-2018-graphql-talk

Sample repo for my Boston React Conf 2018 talk on React & GraphQL
JavaScript
31
star
10

vim-run-interactive

Vim plugin to run shell commands in an interactive shell
Vim Script
26
star
11

vim-rfactory

Vim plugin for rapid navigation to FactoryBot factory definition
Ruby
23
star
12

display-table-summary

Vim Script
8
star
13

vim-presentation-mode

Vim Script
8
star
14

vim-textobj-codeblock

Vim Script
7
star
15

alfred-trello-boards

Alfred workflow for quick navigation to Trello boards
Ruby
7
star
16

vim-kata-meetup

Support repo for 2012-11-12 Boston Vim meetup
Ruby
5
star
17

ctrlp-generic

A generic list selection extension to CtrlP for vim
Vim Script
4
star
18

magictags

Automatic generation of tags file from Vim
Vim Script
4
star
19

vim-g-dot

Vim command to repeat last change over a number of lines
Vim Script
4
star
20

typescript-intro-presentation

3
star
21

live-down

Markdown rendering and live-reloading
3
star
22

conway

jQuery & coffeescript implementation of Conway's Game of Life
CoffeeScript
3
star
23

vim-colors-ctoomey

My colorschemes for vim
Vim Script
3
star
24

react-native-graphql

JavaScript
2
star
25

emit

Fun with canvas animation
Ruby
2
star
26

zero

A web app to monitor your inbox zero status over time
Ruby
2
star
27

elm-reaction

Elm
1
star
28

gsub.vim

Vim Script
1
star
29

inertia-svelte-repro

Ruby
1
star
30

vim-swiki

Vim plugin for simple wiki management
Vim Script
1
star
31

trusted-local

Vim Script
1
star