This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Easy code comments for 'VIP' editor | |
# | |
# In normal mode... | |
# | |
# gca - (go comment after) | |
# starts a comment two spaces past the current end of line. | |
# | |
# gcd - (go comment delete) | |
# deletes comment on line matching ' # ...' format. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# VIP colors | |
# | |
# INSTALL - add to '~/.pil/viprc' | |
# | |
# Creating a new colorscheme for 'VIP' is easy as 1, 2, 3!! | |
# 1) pick colors! | |
# https://stackoverflow.com/questions/4842424/list-of-ansi-color-escape-sequences |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Possibly the most concise implementation ever! | |
# | |
# Parens change color everytime the screen is redrawn, | |
# which happens on almost every key stroke! Totally not | |
# distracting! | |
# | |
# INSTALL - add to '~/.pil/viprc' | |
(de RAINBOW . (31 32 33 34 35 36 91 92 93 94 95 96)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(de *F8 | |
(evCmd (size (s-expr))) ) | |
# utils | |
(local) (posChar? prevChar nextChar posLine prevLine nextLine beforeCursor | |
afterCursor move1 moveSearchForward moveSearchBackward moveIn moveOut | |
moveDownExpr moveUpExpr moveFirstExpr moveLastExpr moveEndLisp endLisp? | |
insert-i insert-a insert-I insert-A insertLisp-i insertLisp-a insertLisp-I | |
insertLisp-A lispmode insLispMode jumpPar diffPars ind@nt indentationLevel | |
removeEndPars closeEndPars closeParsUp dangleEndPars deleteText lispCut lispJoin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ^ or ## - search word under cursor backwards ('#' is masked) | |
# | |
# F - move to first non-space char of next line | |
# H - go to first non-space char, then (press again) jump indentation level up/left | |
# L - go to end of lisp line, then (press again) end of line | |
# T - move to next opening paren | |
# U - undo lisp cut (append current line to end of previous line) | |
# V - lisp cut (move rest of line to new line below) | |
# [ - like '{', but goes to first char of paragraph | |
# ] - like '}', but goes to first char of paragraph |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lispMode - a modified 'insMode' | |
# | |
# - balanced parens | |
# - line editing shortcuts (ctrl prefix with motion) | |
# e.g. "^B" to move word backward, "^X" to delete char under cursor | |
# - indents code as you go | |
# installation | |
# | |
# - add this code to '~/.pil/viprc' |