Home

Awesome

Vim Peculiar

Not just normal commands.

Video introduction: Go to YouTube

The idea behind the plugin is to provide shortcuts when working with the :norm[al] command. It has been so useful to me that I for the first time decided to wrap it up as a plugin for others to use.

Motivation

I really love the expressiveness of running normal commands, either over a range of lines or matching a search. The original intent of this plugin was to provide a way to run such commands against a text object.

Usage

Please note: Since making the video I updated the prompt for PeculiarV and PeculiarG. Until I have time to document it, please refer to Issue #5 for the motivation and Issue #9 for an explanation of how it works.

The plug-in exposes 4 command line utilities,

Example setup:

nmap <localleader>v <Plug>PeculiarV
nmap <localleader>g <Plug>PeculiarG
nmap <localleader>n <Plug>PeculiarN
nmap <localleader>r <Plug>PeculiarR

Each command run updates the command line history and the search commands update the search history for easy editing if you make mistakes.

Options

The normal command used in PeculiarN will cause the whole selection to be highlighted if incsearch is turned on. If you want to run PeculiarN in a function instead (thus suppressing the highlight), you can set.

let g:peculiar#surpress_highlight_n = 1

Attributions