yi-keymap-vim-0.19.0: Vim keymap for Yi editor

License | GPL-2
Maintainer | yi-devel@googlegroups.com
Stability | experimental
Portability | portable
Safe Haskell | None
Language | Haskell2010
Extensions | OverloadedStrings

Yi.Keymap.Vim.Utils

Description

Utils for the Vim keymap.

Synopsis

- mkBindingE :: VimMode -> RepeatToken -> (Event, EditorM (), VimState -> VimState) -> VimBinding
- mkBindingY :: VimMode -> (Event, YiM (), VimState -> VimState) -> VimBinding
- mkStringBindingE :: VimMode -> RepeatToken -> (EventString, EditorM (), VimState -> VimState) -> VimBinding
- mkStringBindingY :: VimMode -> (EventString, YiM (), VimState -> VimState) -> VimBinding
- splitCountedCommand :: EventString -> (Int, EventString)
- selectBinding :: EventString -> VimState -> [VimBinding] -> MatchResult (YiM RepeatToken)
- selectPureBinding :: EventString -> VimState -> [VimBinding] -> MatchResult (EditorM RepeatToken)
- matchFromBool :: Bool -> MatchResult ()
- mkMotionBinding :: RepeatToken -> (VimMode -> Bool) -> VimBinding
- mkChooseRegisterBinding :: (VimState -> Bool) -> VimBinding
- pasteInclusiveB :: YiString -> RegionStyle -> BufferM ()
- addNewLineIfNecessary :: YiString -> YiString
- indentBlockRegionB :: Int -> Region -> BufferM ()
- addVimJumpHereE :: EditorM ()
- exportRegisterToClipboard :: RegisterName -> YiM ()
- pasteFromClipboard :: YiM ()

# Documentation

mkBindingE :: VimMode -> RepeatToken -> (Event, EditorM (), VimState -> VimState) -> VimBinding Source #

mkBindingY :: VimMode -> (Event, YiM (), VimState -> VimState) -> VimBinding Source #

mkStringBindingE :: VimMode -> RepeatToken -> (EventString, EditorM (), VimState -> VimState) -> VimBinding Source #

mkStringBindingY :: VimMode -> (EventString, YiM (), VimState -> VimState) -> VimBinding Source #

splitCountedCommand :: EventString -> (Int, EventString) Source #

selectBinding :: EventString -> VimState -> [VimBinding] -> MatchResult (YiM RepeatToken) Source #

selectPureBinding :: EventString -> VimState -> [VimBinding] -> MatchResult (EditorM RepeatToken) Source #

All impure bindings will be ignored.

matchFromBool :: Bool -> MatchResult () Source #

mkMotionBinding :: RepeatToken -> (VimMode -> Bool) -> VimBinding Source #

mkChooseRegisterBinding :: (VimState -> Bool) -> VimBinding Source #

pasteInclusiveB :: YiString -> RegionStyle -> BufferM () Source #

addNewLineIfNecessary :: YiString -> YiString Source #

indentBlockRegionB :: Int -> Region -> BufferM () Source #

addVimJumpHereE :: EditorM () Source #

exportRegisterToClipboard :: RegisterName -> YiM () Source #

pasteFromClipboard :: YiM () Source #