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:
parent
fb6e128a55
commit
447695ba19
|
@ -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'))
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user