Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 27, 2020. It is now read-only.
/reason-libvimPublic archive

Reason API for libvim

License

NotificationsYou must be signed in to change notification settings

onivim/reason-libvim

Repository files navigation

NOTE: This is now deprecated - future development is happening in the coreOnivim 2 repo.

reason-libvim

Build Status

Reason API forlibvim - an abstraction of Vim as an API.

Usage

  • CallvimInit() before anything else

  • CallvimInput("i") orvimInput("<esc>") to send keystrokes

  • CallvimCommand("%s/hello/world/g") to execute Ex commands

  • Introspect the state with the API, for example:

vimInit();vimCommand("e ./aBigFile.txt");/* Use 'G' to move to the end of the file */vimInput("G");/* Print line position */print_endline ("Cursor is at line: " ++ string_of_int(Cursor.getLine()));/* Type a at the beginning of the line */vimInput("I");vimInput("a");

For more example usage, see thetest cases

Documentation

Documentation is availablehere

License

MIT License

Copyright 2019 Outrun Labs, LLC

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp