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-k> :bnext<CR>
nnoremap <C-j> :bprevious<CR> nnoremap <C-j> :bprevious<CR>
nnoremap <leader>r :source ~/.config/nvim/init.vim<CR>
" change buffers with leader,tab " change buffers with leader,tab
nnoremap <leader><Tab> :bnext<CR> nnoremap <leader><Tab> :bnext<CR>
nnoremap <leader><S-Tab> :bprevious<CR> nnoremap <leader><S-Tab> :bprevious<CR>

View file

@ -91,5 +91,5 @@ function sc_rollres(c, r)
math.randomseed(seed) math.randomseed(seed)
log("Setting Seed: " .. tostring(seed)) log("Setting Seed: " .. tostring(seed))
local sum = sc_parserollstr(sc.lgetstr(c, r)) local sum = sc_parserollstr(sc.lgetstr(c, r))
sc.lsetstr(c + 1, r, tostring(sum)) sc.lsetnum(c, r, sum)
end 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" color "type=NUMB fg=YELLOW bg=BLACK bold=0 dim=1"
nmap "J" "<C-j>" nmap "J" "<C-j>"
nmap "fi" ":format \"#\"<cr>" nmap "fi" ":format \"0\"<cr>"
nmap "B" "Vir" nmap "B" "Vir"
nmap " " "E<cr>k"