Skip to content

callmesalmon/vine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

389 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VINE Editor

VINE (Very INtuitive Editor) is a fast and intuitive terminal-based text editor based on "kilo", (https://github.com/antirez/kilo), a very small text editor. This version has a lot of improvements. For example more syntax highlighting, more intuitive shortcuts and even configuration files. While I try to keep the main spirit of Kilo intact, VINE does differ in many very fundamental ways, for example it does change the keyboard shortcuts a lot.

DISCLAIMER: This is not a UTF-8 text editor, and I have no idea how to implement it. Sue me.

VINE EDITOR
VINE editing its source code with the default colorscheme

Requirements

Install

git clone https://github.com/callmesalmon/vine ~/vine
cd ~/vine
make install # or just "make" if you just want to test out the editor!

Uninstall

make clean

Usage

vine <filename>

Keybinds

Since this is key notation, C-x means Ctrl + x and M-x means Meta + x/Alt + x

C-x C-s - Save
C-x C-c - Quit
C-x C-f - Open new file
C-s     - Find
C-d     - Delete next char
C-k     - Delete current line
C-h     - Open help screen
M-f     - Move forward one word
M-b     - Move backward one word
M-g j   - Start of line
M-g k   - End of line
M-g g   - Goto line
C-c C-s - Run shell command
C-c C-c - Run vine command

And before you ask: Yes I stole most of these from EMACS. Like they all say: Every non-modal terminal editor is destined to become EMACS lite.

Configuration

The VINE configuration operates using a config file, ~/.vinerc. Comments may be added, starting with " like in VimScript.

The following is a list of configuration options:

tab-size <int>              - Tab size
show-empty-lines <bool>     - Whether or not to show tildes on empty lines
expand-tab <bool>           - Whether or not to expand tab to [tab_size] number of spaces.
colorscheme <str>           - Set colorscheme
autopair <bool>             - Match quotes and braces.

Sample:

" Tab formatting
tab-size = 2
expand-tab = true

show-empty-lines = false

colorscheme = "kilo"

autopair = true

About

Small EMACS-like text editor based on Kilo

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors