yi-0.11.0: The Haskell-Scriptable Editor

Portabilityportable
Stabilityexperimental
Maintaineryi-devel@googlegroups.com
Safe HaskellNone

Yi.Keymap.Vim.Ex.Commands.Common

Description

Implements common ExCommands for the Vim keymap.

Synopsis

Documentation

parseWithBangSource

Arguments

:: GenParser Char () a

The command name parser.

-> (a -> Bool -> GenParser Char () ExCommand)

A parser for the remaining command arguments.

-> EventString

The string to parse.

-> Maybe ExCommand 

parseWithBangAndCountSource

Arguments

:: GenParser Char () a

The command name parser.

-> (a -> Bool -> Maybe Int -> GenParser Char () ExCommand)

A parser for the remaining command arguments.

-> EventString

The string to parse.

-> Maybe ExCommand 

data OptionAction Source

Constructors

Set !Bool 
Invert 
Ask 

forAllBuffers :: MonadEditor m => (BufferRef -> m ()) -> m ()Source

errorNoWrite :: EditorM ()Source

Show the common error message about an unsaved file on the status line.

commandArgs :: GenParser Char () [Text]Source

Useful parser for any Ex command that acts kind of like a shell