Safe Haskell | None |
---|
Vim keymap for Yi. Emulates vim :set nocompatible
- keymapSet :: KeymapSet
- viWrite :: YiM ()
- defKeymap :: Proto ModeMap
- leaveInsRep :: VimMode
- leave :: VimMode
- data ModeMap = ModeMap {
- v_top_level :: VimMode
- v_ins_char :: VimMode
- v_opts :: VimOpts
- v_ex_cmds :: VimExCmdMap
- data VimOpts = VimOpts {}
- data VimExCmd = VimExCmd {}
- nilCmd :: VimExCmd
- exCmd :: String -> (String -> YiM ()) -> Maybe (String -> YiM ()) -> VimExCmd
- exCmds :: [(String, String -> YiM (), Maybe (String -> YiM ()))] -> VimExCmdMap
- exSimpleComplete :: (String -> YiM [String]) -> String -> YiM ()
- exInfixComplete' :: Bool -> (String -> YiM [String]) -> String -> YiM ()
- exInfixComplete :: (String -> YiM [String]) -> String -> YiM ()
- mkExHistComplete :: (String -> String -> Bool) -> (String -> YiM [String]) -> String -> YiM ()
- exHistComplete' :: Bool -> (String -> YiM [String]) -> String -> YiM ()
- exHistComplete :: (String -> YiM [String]) -> String -> YiM ()
- exHistInfixComplete' :: Bool -> (String -> YiM [String]) -> String -> YiM ()
- exHistInfixComplete :: (String -> YiM [String]) -> String -> YiM ()
- savingInsertB :: BufferM () -> BufferM ()
- savingInsertCharB :: Char -> BufferM ()
- savingInsertStringB :: String -> BufferM ()
- savingDeleteB :: BufferM () -> BufferM ()
- savingDeleteCharB :: Direction -> BufferM ()
- savingDeleteWordB :: Direction -> BufferM ()
- savingCommandY :: (Int -> YiM ()) -> Int -> YiM ()
- savingCommandE :: (Int -> EditorM ()) -> Int -> EditorM ()
- mkKeymap :: Proto ModeMap -> KeymapSet
- beginIns :: (Show x, YiAction a x) => ModeMap -> a -> I Event Action ()
- beginInsE :: ModeMap -> EditorM () -> I Event Action ()
- beginInsB :: ModeMap -> BufferM () -> I Event Action ()
- listTagStack :: EditorM [(FilePath, Point)]
- pushTagStack :: FilePath -> Point -> EditorM ()
- popTagStack :: Int -> EditorM (Maybe (FilePath, Point))
- peekTagStack :: EditorM (Maybe (FilePath, Point))
- exMode :: ModeMap -> String -> EditorM ()
- exEval :: ModeMap -> String -> YiM ()
Documentation
Try to write a file in the manner of vi/vim Need to catch any exception to avoid losing bindings
leaveInsRep :: VimModeSource
Leave a mode. This always has priority over catch-all actions inside the mode.
The Vim keymap is divided into several parts, roughly corresponding to the different modes of vi. Each mode is in turn broken up into separate VimProcs for each phase of key input in that mode.
ModeMap | |
|
mkExHistComplete :: (String -> String -> Bool) -> (String -> YiM [String]) -> String -> YiM ()Source
savingInsertB :: BufferM () -> BufferM ()Source
The given buffer action should be an insertion action.
savingInsertCharB :: Char -> BufferM ()Source
savingDeleteB :: BufferM () -> BufferM ()Source
The given action should be a deletion action. The only well tested buffer actions are deleting one character, or one word, forward or backward.
listTagStack :: EditorM [(FilePath, Point)]Source