Skip to content

lepton9/lim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lim

Build Commit GitHub top language Lines

A basic Vim-like text editor.

Commands

Command Function
:w Write file
:q Quit
:help Show help box
:/{str} Search all matches in file for str
:'<,'>/{str} Search matches for str inside selection
:r {str} Replace all found matches with str
:r/{s1}/{s2} Replace all matches for s1 with s2
:%s/{s1}/{s2} Replace all matches for s1 with s2
:'<,'>s/{s1}/{s2} Replace s1 with s2 after selection
:rename Rename current file
:restart Restart editor
:set Set config variable values
:setconfig Set path to .limconfig
:configpath Show config file path
:path Show path of current file or directory
:! Execute bash commands

Keymaps

Keymap Function
h, j, k, l Movement
i, I, a, A Insert mode
o, O Insert mode on new line
gg, G Go to beginning and end of the file
yy, yw, yiw Yanking
dd, dw, diw Deleting and yanking
cw, ciw Delete and change
x Delete a character
e, w, b Inner word movement
E, W, B Movement over whitespace
J Join the line below with the current line
f{char}, F{char} Find and go to the first occurrence of char
t{char}, T{char} Go to before the first occurrence of char
r{char} Replace the char under cursor with char
>> Shift to left
<< Shift to right
C+d Scroll down
C+u Scroll up
C+n Toggle file tree
C+h Move to file tree if open
C+l Move to file from file tree
C+f, / Search for matches
C+p + # Paste text from clipboard at index #
C+n Toggle file tree

Config file

// .limconfig

tab_indent = {int}
cursor_wrap = {true | false}
number = {true | false}
number_style = {normal | relative}
comline_visible = {true | false}
bg_color = 0xRRGGBB
fg_color = 0xRRGGBB
sb_bg_color = 0xRRGGBB
sb_fg_color = 0xRRGGBB

About

Terminal based text editor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages