8.10869.26000 • Published 4 years ago
reason-libvim v8.10869.26000
reason-libvim
Reason API for libvim - an abstraction of Vim as an API.
Usage
Call
vimInit()
before anything elseCall
vimInput("i")
orvimInput("<esc>")
to send keystrokes- Call
vimCommand("%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 the test cases
Documentation
Documentation is available here
License
Copyright 2019 Outrun Labs, LLC
8.10869.26000
4 years ago
8.10869.22001
5 years ago
8.10869.16004
5 years ago
8.10869.16003
5 years ago
8.10869.16002
5 years ago
8.10869.16001
5 years ago
8.10869.15001
5 years ago
8.10869.14001
5 years ago
8.10869.12001
5 years ago
8.10869.11001
5 years ago
8.10869.10001
5 years ago
8.10869.7001
5 years ago
8.10869.6001
5 years ago