Skip to content

Instantly share code, notes, and snippets.

@jkot
Last active September 14, 2021 10:33
Show Gist options
  • Save jkot/240a0b19cd71c7025b8e to your computer and use it in GitHub Desktop.
Save jkot/240a0b19cd71c7025b8e to your computer and use it in GitHub Desktop.
Vim

Vim

https://github.com/junegunn/vim-plug

Vim configuration .vimrc https://github.com/amix/vimrc

https://macvim-dev.github.io/macvim/

Buffers

List: :buffers :ls :files

Delete: :bdelete name :bdelete number (remove the buffer, not the file)

Navigation:

  • next: :bn
  • previous: :bp
  • jump in history of open buffers: ctrl+l ctrl+o

Clojure

http://www.mybuddymichael.com/writings/writing-clojure-with-vim-in-2013.html

cpp - evaluates an expression

K - shows help

[d - show source

[cltr+d - open the source in a new buffer

cqp - one off in REPL

cqc - scratchpad with one-offs

cqq - one off with what's underneath the cursor

ctrl+x ctrl+o - start omnicomplete

ctrl+p ctrl+n - standard Vim keyword complete works too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment