Crates.io | vim_edit |
lib.rs | vim_edit |
version | 0.1.1 |
source | src |
created_at | 2020-05-02 22:32:36.233612 |
updated_at | 2021-01-19 03:25:00.354919 |
description | A simple set of Rust functions to create or edit strings or files in vim from the CLI |
homepage | https://gatewaynode.com |
repository | |
max_upload_size | |
id | 236822 |
size | 5,325 |
A simple set of functions to create and edit individual Rust Strings with VIM.
May support more options and features in the near future.
Cargo.toml
[dependencies]
vim_edit = "0.1.0"
main.rs
use vim_edit::{vim_create, vim_edit}
fn main() {
let mut our_input: String = vim_create();
println!("You created in vim: {}", our_input);
our_input = vim_edit(our_input);
println!("Final edited value is: {}", our_input)
}