yi-0.7.2: The Haskell-Scriptable Editor

Safe HaskellNone

Yi.Keymap.Vim2.Common

Documentation

data VimMode Source

Constructors

Normal 
NormalOperatorPending OperatorName 
Insert Char

char denotes how state got into insert mode (i, a, etc.)

Replace 
ReplaceSingleChar 
InsertNormal

after C-o

InsertVisual

after C-o and one of v, V, C-v

Visual RegionStyle 
Ex 
Search 

data VimState Source

Constructors

VimState 

Fields

vsMode :: !VimMode
 
vsCount :: !(Maybe Int)
 
vsAccumulator :: !EventString

for repeat and potentially macros

vsTextObjectAccumulator :: !EventString
 
vsRegisterMap :: !(HashMap RegisterName Register)
 
vsActiveRegister :: !RegisterName
 
vsRepeatableAction :: !(Maybe RepeatableAction)
 
vsStringToEval :: !EventString

see Yi.Keymap.Vim2.vimEval comment

vsStickyEol :: !Bool

is set on $, allows j and k walk the right edge of lines

vsOngoingInsertEvents :: !EventString
 
vsLastGotoCharCommand :: !(Maybe GotoCharCommand)
 
vsBindingAccumulator :: !EventString
 
vsSecondaryCursors :: ![Point]
 
vsPaste :: !Bool

like vim's :help paste

data Register Source

Constructors

Register 

Instances

data RepeatToken Source

Constructors

Finish 
Drop 
Continue 

Instances

data MatchResult a Source

Constructors

NoMatch 
PartialMatch 
WholeMatch a 

Instances

Functor MatchResult 
Applicative MatchResult 
Alternative MatchResult 
Show (MatchResult a)