{"id":21140310,"url":"https://github.com/aartaka/emvi","last_synced_at":"2025-04-13T09:38:17.598Z","repository":{"id":263683061,"uuid":"891165328","full_name":"aartaka/emvi","owner":"aartaka","description":"Editing Lisp in vi (not Vim!)","archived":false,"fork":false,"pushed_at":"2025-01-05T21:05:40.000Z","size":19,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T01:11:11.120Z","etag":null,"topics":["clojure","common-lisp","dotfiles","emacs","lisp","scheme","vi","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":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aartaka.png","metadata":{"files":{"readme":"README.org","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-19T21:00:21.000Z","updated_at":"2025-01-27T11:04:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"bfba473b-505b-46c5-9556-f1a503de0cb2","html_url":"https://github.com/aartaka/emvi","commit_stats":null,"previous_names":["aartaka/emvi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aartaka%2Femvi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aartaka%2Femvi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aartaka%2Femvi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aartaka%2Femvi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aartaka","download_url":"https://codeload.github.com/aartaka/emvi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248691914,"owners_count":21146467,"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":["clojure","common-lisp","dotfiles","emacs","lisp","scheme","vi","vim"],"created_at":"2024-11-20T07:14:26.006Z","updated_at":"2025-04-13T09:38:17.577Z","avatar_url":"https://github.com/aartaka.png","language":"Vim Script","readme":"#+TITLE:Emvi: trying to do Lisp in Vi (not Vim!)\n\nPOSIX/BSD vi is extremely primitive—no colors, no language modes, no plugins.\nBut still, using it is a nice exercise in minimalist text editing.\nThat's what I, as a Lisp programmer, am trying to do, preferably without going insane.\nThis .exrc config file is an attempt to reproduce the functionality of fancy Lisp-friendly systems.\nLike Emacs and Paredit.\nIn vi.\n\n* Getting started\nJust copy/symlink the .exrc to your home directory and start vi.\n\n#+begin_src sh\n  git clone https://github.com/aartaka/emvi\n  ln -s emvi/.exrc ~/.exrc\n#+end_src\n\n* Bindings\nHere are the (Emacs-inspired) bindings I've added:\n- C-x s :: Save changes.\n- C-x b :: Edit the previous/alternate file.\n- C-x q :: Exit.\n  - C-x Q :: Exit without saving changes.\n- C-x e :: Edit a new file.\n- C-x . :: Jump to a tag/source. Use =ctags=-compatible solution (likely [[https://github.com/universal-ctags/ctags][Universal Ctags]]) to generate a tags file for your Lisp codebase and use it to navigate around.\n- C-x d :: Delete s-expression.\n  - C-x y, C-x p, C-x P :: Copy s-expression and paste it.\n- C-x x :: Jump to matching paren/bracket/brace.\n- C-x J, C-x K :: Jump to next/previous triple-semicolon section.\n- C-a ( :: Add empty parentheses and insert right into them.\n  - C-a [ :: Same, but for square brackets.\n  - C-a { :: Same, but for curly braces.\n  - C-a \" :: Same, but for double quotes.\n- C-x ( :: Wrap the current symbol into parens (=paredit-wrap-round=).\n  - C-x [ :: =paredit-wrap-square=.\n  - C-x { :: =paredit-wrap-curly=.\n  - C-x \" :: =paredit-meta-doublequote=, but without the internal quoting.\n- C-x ) :: Slurping the next symbol into the current parenthesized form.\n  - C-x ] :: Same, but for square brackets.\n  - C-x } :: Same, but for curly braces.\n\n* Thanks\n- Thanks to Vasily Gerasimov for the name idea.\n- Thanks to Arch Linux forums for giving me [[https://bugs.archlinux.org/task/73299.html][pointers on how to fix tag support]] in vi.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faartaka%2Femvi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faartaka%2Femvi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faartaka%2Femvi/lists"}