about summary refs log tree commit diff stats
path: root/vimrc.vim
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-02-23 13:29:35 -0800
committerKartik Agaram <vc@akkartik.com>2019-02-23 13:29:35 -0800
commited4e645306a3679cebe1ef273f3a33221d713f23 (patch)
treebcbd89a5190e5c60b4db90ac965a8f500b59a769 /vimrc.vim
parent87ea70754d9c2f4984f41a866c4547c722fe7571 (diff)
downloadmu-ed4e645306a3679cebe1ef273f3a33221d713f23.tar.gz
4985
Diffstat (limited to 'vimrc.vim')
-rw-r--r--vimrc.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/vimrc.vim b/vimrc.vim
index b60f922a..adbb9403 100644
--- a/vimrc.vim
+++ b/vimrc.vim
@@ -105,3 +105,8 @@ if exists("&splitvertical")
 else
   command! -nargs=0 P split opcodes
 endif
+
+" useful for inspecting just the control flow in a trace
+" see https://github.com/akkartik/mu/blob/master/subx/Readme.md#a-few-hints-for-debugging
+" the '-a' is because traces can sometimes contain unprintable characters that bother grep
+command! -nargs=0 L exec "%!grep -a label"