RsvimBuf
The Rsvim.buf global object for Vim buffers.
Example
// Create a alias to 'Rsvim.buf'.
const buf = Rsvim.buf;
Functions
| Function | Description |
|---|---|
Get current buffer's ID. The "current" buffer is the buffer that the window where your cursor is located is binded to. warning When the editor is not initialized, i.e. there's no buffer/window created. It
will return Example | |
List all buffers' IDs. warning When the editor is not initialized, i.e. there's no buffer/window created. It will return an empty array. Once the editor is initialized, there will have at least 1 buffer binded to the "current" window (where your cursor is). It will return all the buffer IDs as an array. Example | |
Write (save) buffer's text contents to local filesystem synchronizely. Throws Throws TypeError if the parameter is invalid, or Error if failed to write buffer to file system. Example |