{"id":16630156,"url":"https://github.com/klafyvel/vim-slime-cells","last_synced_at":"2025-07-16T04:35:11.891Z","repository":{"id":41863854,"uuid":"442443929","full_name":"Klafyvel/vim-slime-cells","owner":"Klafyvel","description":"A plugin on top of vim-slime to enhance its cell feature.","archived":false,"fork":false,"pushed_at":"2022-11-17T12:54:28.000Z","size":21,"stargazers_count":38,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T22:11:26.192Z","etag":null,"topics":["slime","vim","vim-plugin","vim-slime"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Klafyvel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-28T11:36:05.000Z","updated_at":"2025-02-01T20:06:33.000Z","dependencies_parsed_at":"2022-08-11T19:40:17.437Z","dependency_job_id":null,"html_url":"https://github.com/Klafyvel/vim-slime-cells","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Klafyvel/vim-slime-cells","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Klafyvel%2Fvim-slime-cells","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Klafyvel%2Fvim-slime-cells/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Klafyvel%2Fvim-slime-cells/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Klafyvel%2Fvim-slime-cells/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Klafyvel","download_url":"https://codeload.github.com/Klafyvel/vim-slime-cells/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Klafyvel%2Fvim-slime-cells/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265481865,"owners_count":23773965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["slime","vim","vim-plugin","vim-slime"],"created_at":"2024-10-12T04:45:18.367Z","updated_at":"2025-07-16T04:35:11.863Z","avatar_url":"https://github.com/Klafyvel.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-slime-cells\nA plugin on top of [vim-slime](https://github.com/jpalardy/vim-slime) to enhance its cell feature. It adds the possibility to jump between cells and to send the current cell then jump to the next one.\n\nThere is also a nice syntax-highlighting feature for cell boundaries.\n\n## Preview\n\n[![asciicast](https://asciinema.org/a/459056.svg)](https://asciinema.org/a/459056)\n\n## Installation\n\nYou need [vim-slime](https://github.com/jpalardy/vim-slime) installed.\n\nYou can use Vim-Plug:\n```vim\nPlug 'klafyvel/vim-slime-cells'\n```\n\nOr with packer (example configuration for Julia):\n```lua\nuse {\n  'klafyvel/vim-slime-cells',\n  requires = {{'jpalardy/vim-slime', opt=true}},\n  ft = {'julia'},\n  config=function ()\n    vim.g.slime_target = \"tmux\"\n    vim.g.slime_cell_delimiter = \"^\\\\s*##\"\n    vim.g.slime_default_config = {socket_name=\"default\", target_pane=\"0\"}\n    vim.g.slime_dont_ask_default = 1\n    vim.g.slime_bracketed_paste = 1\n    vim.g.slime_no_mappings = 1\n    vim.cmd([[\n    nmap \u003cleader\u003ecv \u003cPlug\u003eSlimeConfig\n    nmap \u003cleader\u003ecc \u003cPlug\u003eSlimeCellsSendAndGoToNext\n    nmap \u003cleader\u003ecj \u003cPlug\u003eSlimeCellsNext\n    nmap \u003cleader\u003eck \u003cPlug\u003eSlimeCellsPrev\n    ]])\n  end\n}\n```\n\n## Configuration\n\nHere is an example of how you can configure vim-slime and vim-slime-cells to work together. Those settings are used in the preview.\n\n```vim\n\" vim-slime\nlet g:slime_target = \"tmux\"\nlet g:slime_cell_delimiter = \"^\\\\s*##\"\nlet g:slime_default_config = {\"socket_name\": get(split($TMUX, \",\"), 0), \"target_pane\": \":.1\"}\nlet g:slime_dont_ask_default = 1\nlet g:slime_bracketed_paste = 1\nlet g:slime_no_mappings = 1\nnmap \u003cc-c\u003ev \u003cPlug\u003eSlimeConfig\n\n\" vim-slime-cells\nnmap \u003cc-c\u003e\u003cc-c\u003e \u003cPlug\u003eSlimeCellsSendAndGoToNext\nnmap \u003cc-c\u003e\u003cc-Down\u003e \u003cPlug\u003eSlimeCellsNext\nnmap \u003cc-c\u003e\u003cc-Up\u003e \u003cPlug\u003eSlimeCellsPrev\n```\n\n## Documentation\n\nSee `:help slime-cells`.\n\n## Credits\n\n[vim-slime](https://github.com/jpalardy/vim-slime) is a very nice plugin developped by [Jonathan Palardy](https://github.com/jpalardy).\n\nThe original idea that makes the syntax-highlighting feature in vim-slime-cells work is from [@bensmrs](https://github.com/bensmrs), and the macro he came up with deserves a place here for posterity.\n\n```vim\nhi Match ctermbg=162\nsig define highlightline linehl=Match\nau TextChanged,TextChangedI,TextChangedP,BufWinEnter,BufWritePost,FileWritePost * if expand(\"%:p\") != \"\" | exe(\"call map(range(1,1000), {i-\u003eexecute('sig unplace 999 file='.expand('%:p'))})\") | call map(getline(1, '$'), {idx, val -\u003e execute('if val =~ \"^\\\\s*##\" | exe \"sig place 999 line=\".expand(idx+1).\" name=highlightline file=\".expand(\"%:p\") | endif')}) | endif\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklafyvel%2Fvim-slime-cells","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklafyvel%2Fvim-slime-cells","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklafyvel%2Fvim-slime-cells/lists"}