1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-16 09:13:23 -07:00

add some notes to self

This commit is contained in:
Connor Olding 2021-10-14 14:09:34 -07:00
parent fb6e128a55
commit 447695ba19
2 changed files with 8 additions and 0 deletions

View File

@ -340,6 +340,13 @@ nn <silent> <Leader>d :cd %:p:h<cr>:pwd<cr>
vn <silent> & :call GlobalReplace()<cr>
" TODO:
"nn ,, :call CommentLines()<cr>
"nn ,. :call UncommentLines()<cr>
"!raku -e 'for lines() { say .chars, "\t", $_ }'
"!raku -e 'lines.sort({ $^a.subst(/\s*\\#/) cmp $^b.subst(/\s*\\#/) }).map(&say)'
"!raku -e 'lines.sort({ $^a.subst(/\s*\"/) cmp $^b.subst(/\s*\"/) }).map(&say)'
" alias :W to :w, via https://stackoverflow.com/a/3879737
cnoreabbrev <expr> W ((getcmdtype() is# ':' && getcmdline() is# 'W')?('w'):('W'))

View File

@ -9,6 +9,7 @@ maybesudo_() { ### @-
### as it stands, this mostly just handles some environment variables.
###
### try this: `maybesudo_ -u "$USER" printenv`
# TODO: you know, awk has an ENVIRON array that might be easier to work with.
local name=
local env_cleanup=0
while getopts :AEHKPSVbhiklnsvC:U:g:p:r:t:u: name; do