summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.Xresources5
1 files changed, 4 insertions, 1 deletions
diff --git a/.Xresources b/.Xresources
index c935430..fcd6bb6 100644
--- a/.Xresources
+++ b/.Xresources
@@ -23,7 +23,7 @@ URxvt.keysym.Shift-Up: command:\033]720;1\007
URxvt.keysym.Shift-Down: command:\033]721;1\007
! perl-modules
-URxvt.perl-ext-common: default,url-select,clipboard
+URxvt.perl-ext-common: default,url-select,clipboard,selection-autotransform
! allow Alt-V/-C for pasting from/copying to clipboard
URxvt.keysym.M-v: perl:clipboard:paste
@@ -34,6 +34,9 @@ URxvt.url-select.launcher: /home/necoro/bin/openlink
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.url-select.underline: true
+! transform selections of <filename>:<line> into a vim cmdline
+URxvt.selection-autotransform.0: s/^([^:[:space:]]+):(\\d+):?$/vim +$2 \\Q$1\\E\\x0d/
+
! colors
URxvt.background: #000000
URxvt.foreground: #FFFFFF