commit 226f174ee738f82af42af302a5da6082cb10ea5d
parent 67b6d4ab424419c46de759a0bfb2e1a79d19335e
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 14 Jun 2019 19:29:45 +0200
Add scholarref binding and binds to commonly used files
Diffstat:
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua
@@ -50,6 +50,13 @@ vis.events.subscribe(vis.events.INIT, function()
return true;
end)
+ vis:map(vis.modes.NORMAL, leader..'r', ':< scholarref ')
+
+ -- mappings to often used files
+ vis:map(vis.modes.NORMAL, leader..'C', ':e ~/.config/vis/visrc.lua<Enter>')
+ vis:map(vis.modes.NORMAL, leader..'T', ':e ~/doc/todo.md<Enter>')
+ vis:map(vis.modes.NORMAL, leader..'B', ':e "$BIB"<Enter>')
+
require('snippets')
end)
diff --git a/.local/bin/scholarref b/.local/bin/scholarref
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
addref=0
while :; do
@@ -27,3 +27,4 @@ if [ "$addref" = 1 ]; then
else
getdoi "$@" | getref -n
fi
+exit 0