kitmonisit / vim-skill

SKILL / SKILL++ Syntax highlighting for vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim-skill

SKILL / SKILL++ syntax highlighting for vim, based on vim-hy.

SKILL / Virtuoso REPL integration (only NeoVim).

Installation

Any vim plugin approach should work. For Vim-Plug just put

Plug 'augustunderground/vim-skill'

in your init.vim and then run

:PlugInstall

Usage

Open any skill/skill++ file and press F12 to launch a Skill REPL with the command defined in g:skill_repl. To (re)load the file in the current buffer press <leader>R. Where <leader> is bound to \ by default.

<leader>l will send the current line to the Skill REPL, and <leader>r will send the paragraph in which the cursor is. A paragraph in this case means a block of code without empty lines inbetween.

Pressing F11 will run/execute the script in the current buffer non-interactively with the command defined in g:skill_cmpl

Settings

Default key mappings are:

map <F11> :call SkillRun()<CR>
map <F12> :call SkillOpen()<CR>
nnoremap <silent> <leader>l :SkillSendLine<cr>
nnoremap <silent> <leader>r :SkillSendRegion<cr>
nnoremap <silent> <leader>R :SkillReloadFile<cr>

When calling SkillOpen a new neovim terminal is opened and a SKILL REPL is launched. Set g:skill_repl to the appropriate SKILL Interpreter.

let g:skill_repl = 'rlwrap virtuoso -nographE'

Calling SkillRun executes the script in the current buffer with the command defined in g:skill_cmpl.

let g:skill_cmpl = 'virtuoso -nographE -restore'

They can be overwritten in your init.vim.

About

SKILL / SKILL++ Syntax highlighting for vim

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Vim Script 100.0%