Git Product home page Git Product logo

vim-skill's Introduction

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.

vim-skill's People

Contributors

augustunderground avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.