Learn about sc

This commit is contained in:
Daniel Flanagan 2019-03-28 17:00:56 -05:00
parent 2d5c3c6330
commit 5729004665
3 changed files with 6 additions and 2 deletions

View File

@ -120,6 +120,8 @@ nnoremap <leader>j :bprevious<CR>
nnoremap <C-k> :bnext<CR>
nnoremap <C-j> :bprevious<CR>
nnoremap <leader>r :source ~/.config/nvim/init.vim<CR>
" change buffers with leader,tab
nnoremap <leader><Tab> :bnext<CR>
nnoremap <leader><S-Tab> :bprevious<CR>

View File

@ -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

View File

@ -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" "<C-j>"
nmap "fi" ":format \"#\"<cr>"
nmap "fi" ":format \"0\"<cr>"
nmap "B" "Vir"
nmap " " "E<cr>k"