{"id":19238238,"url":"https://github.com/olical/vim-scotch","last_synced_at":"2026-05-15T18:09:14.276Z","repository":{"id":66128306,"uuid":"135296591","full_name":"Olical/vim-scotch","owner":"Olical","description":"A few extra mappings for vim-fireplace","archived":false,"fork":false,"pushed_at":"2018-10-19T15:23:03.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T13:52:17.434Z","etag":null,"topics":["clojure","vim"],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Olical.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-29T13:00:06.000Z","updated_at":"2021-09-29T00:15:22.000Z","dependencies_parsed_at":"2023-02-21T20:30:51.035Z","dependency_job_id":null,"html_url":"https://github.com/Olical/vim-scotch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Olical/vim-scotch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olical%2Fvim-scotch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olical%2Fvim-scotch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olical%2Fvim-scotch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olical%2Fvim-scotch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Olical","download_url":"https://codeload.github.com/Olical/vim-scotch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olical%2Fvim-scotch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33074461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["clojure","vim"],"created_at":"2024-11-09T16:29:59.430Z","updated_at":"2026-05-15T18:09:14.239Z","avatar_url":"https://github.com/Olical.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-scotch\n\nA set of mappings taken from my [dotfiles][], as mentioned in my post [Editing Clojure with Neovim][post]. These are bindings that have improved my usage of [vim-fireplace][] a fair bit.\n\n## Mappings\n\nI'm assuming `normal` mode and a `localleader` of `,`, replace it with whatever you use.\n\n| Scotch | Fireplace                                                |\n| ------ | -------------------------------------------------------- |\n| `,re`  | `:Eval` (in `normal` or `visual`)                        |\n| `,rf`  | `:%Eval`                                                 |\n| `,rr`  | `:Require`                                               |\n| `,rR`  | `:Require!`                                              |\n| `,rt`  | `:RunTests`                                              |\n| `,rl`  | `:Last`                                                  |\n| `,rc`  | `:FireplaceConnect`                                      |\n| `,rx`  | Refresh all changed namespaces (like CIDER)              |\n| `,rX`  | Refresh *all* namespaces (also like CIDER)               |\n| `,rs`  | Start a CIDER nREPL server through [vim-dispatch][]      |\n| `gd`   | Go to the definition of the symbol under the cursor      |\n\n\u003e Note: As far as I'm aware, fireplace doesn't allow us to evaluate as ClojureScript in `.cljc` files, but it should work just fine for `.cljs`.\n\nIf you'd just like the function for refreshing namespaces without the mappings, you should probably just copy the code. Please feel free to copy and paste things!\n\n## Configuration\n\nI use a `.lvimrc` file in my projects that gets loaded by [vim-localvimrc][], here's everything you can set:\n\n```viml\n\" What to execute to stop the system before refreshing namespaces.\n\" Default: noop\nlet g:scotch_stop = \"(bounce.system/stop!)\"\n\n\" What to call after refreshing the namespaces.\n\" Default: noop\nlet g:scotch_start = \"(bounce.system/start!)\"\n\n\" Directories to search for refreshable namespaces.\n\" Default: [\"src\"]\nlet g:scotch_refresh_dirs = [\"src/clj\", \"src/cljc\"]\n```\n\n## Installation\n\nUse your favourite plugin manager, mine is [vim-plug][]. It depends on [vim-dispatch][] for the `,rs` nREPL binding, you may also want [vim-dispatch-neovim][] if you're in Neovim like myself.\n\n```viml\nPlug 'Olical/vim-scotch'\n```\n\n## Why scotch?\n\nScotch goes down really well next to a fireplace and I _really_ :heart: Laphroaig ¯\\\\\\_(ツ)\\_/¯\n\n## Unlicenced\n\nFind the full [unlicense][] in the `UNLICENSE` file, but here's a snippet.\n\n\u003eThis is free and unencumbered software released into the public domain.\n\u003e\n\u003eAnyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.\n\nDo what you want. Learn as much as you can. Unlicense more software.\n\n[unlicense]: http://unlicense.org/\n[dotfiles]: https://github.com/Olical/dotfiles\n[post]: https://oli.me.uk/2018-05-04-editing-clojure-with-neovim/\n[vim-fireplace]: https://github.com/tpope/vim-fireplace\n[vim-plug]: https://github.com/junegunn/vim-plug\n[vim-localvimrc]: https://github.com/embear/vim-localvimrc\n[vim-dispatch]: https://github.com/tpope/vim-dispatch\n[vim-dispatch-neovim]: https://github.com/radenling/vim-dispatch-neovim\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folical%2Fvim-scotch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folical%2Fvim-scotch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folical%2Fvim-scotch/lists"}