useful command compounds

VIM

autocmd CursorMoved * exe printf('match IncSearch /\V\<%s\>/', escape(expand('<cword>'), '/\'))

set shiftwidth=4
set expandtab
set softtabstop=-1

GDB

set $s=pretty_format_node_dump(nodeToString(jtnode))

printf "%s", $s

dump binary memory FILE $s $s +(size_t) strlen($s)

regular expression

删除空白行 ^\s*(?=\r?$)\n

posted @ 2022-01-08 17:42  zhaos  阅读(24)  评论(0编辑  收藏  举报