From 5729004665fab9db0ab60cc779cef6d3d6663439 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 28 Mar 2019 17:00:56 -0500 Subject: [PATCH] Learn about sc --- apps/neovim/bindings.vim | 2 ++ apps/scim/lua/dice.lua | 2 +- apps/scim/rc | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/neovim/bindings.vim b/apps/neovim/bindings.vim index 31f07e8..83c5f07 100644 --- a/apps/neovim/bindings.vim +++ b/apps/neovim/bindings.vim @@ -120,6 +120,8 @@ nnoremap j :bprevious nnoremap :bnext nnoremap :bprevious +nnoremap r :source ~/.config/nvim/init.vim + " change buffers with leader,tab nnoremap :bnext nnoremap :bprevious diff --git a/apps/scim/lua/dice.lua b/apps/scim/lua/dice.lua index 204c4c5..6f345a5 100644 --- a/apps/scim/lua/dice.lua +++ b/apps/scim/lua/dice.lua @@ -91,5 +91,5 @@ function sc_rollres(c, r) math.randomseed(seed) log("Setting Seed: " .. tostring(seed)) local sum = sc_parserollstr(sc.lgetstr(c, r)) - sc.lsetstr(c + 1, r, tostring(sum)) + sc.lsetnum(c, r, sum) end diff --git a/apps/scim/rc b/apps/scim/rc index 4120127..e2b390b 100644 --- a/apps/scim/rc +++ b/apps/scim/rc @@ -11,5 +11,7 @@ color "type=STRG fg=WHITE bg=BLACK bold=0 dim=1" color "type=NUMB fg=YELLOW bg=BLACK bold=0 dim=1" nmap "J" "" -nmap "fi" ":format \"#\"" +nmap "fi" ":format \"0\"" nmap "B" "Vir" +nmap " " "Ek" +