Ven

command module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2020 License: MIT Imports: 5 Imported by: 0

README

GitHubBuild Go Report Card codecov Go Doc License

Ven

Vi Enhanced. A text editor which is an enhancement to vi, and is similar to vim, but written in Go. Uses a gap buffer to store the text.

Installation

  • Download golang if you have not yet done so
  • Run:
    go get github.com/bkthomps/Ven
    go build $GOPATH/src/github.com/bkthomps/Ven
    
  • Then add this to your bashrc:
    alias ven='$GOPATH/src/github.com/bkthomps/Ven/Ven'
    
  • You can now run Ven from anywhere using ven <filename>

Commands

There are three modes: normal mode, command mode, and insertion mode.

Normal Mode
  • i to go into insertion mode
  • : to go into command mode
  • / to go into command (search) mode
  • x delete character under the cursor
  • X delete character before the cursor
  • dd delete entire line
  • D delete rest of line
Command Mode
  • esc to go into normal mode
  • /<search> to search for a string (supports regex)
  • :w to save the file
  • :wq to save and quit
  • :q to safely quit
  • :q! to force quit without saving
Insertion Mode
  • esc to go into normal mode
  • any character press gets inserted

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL