Skip to content

Instantly share code, notes, and snippets.

@esciafardini
Created January 30, 2022 01:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esciafardini/58fa23c9ee24286f0da67db85efcffe2 to your computer and use it in GitHub Desktop.
Save esciafardini/58fa23c9ee24286f0da67db85efcffe2 to your computer and use it in GitHub Desktop.
<localleader>ls
Open the log buffer in a new horizontal split window.
<localleader>lv
Open the log buffer in a new vertical split window.
<localleader>lt
pen the log buffer in a new tab.
<localleader>le
Open the log buffer in your current window.
<localleader>lq
Close all visible log windows in your current tab.
<localleader>lr
Soft reset the log buffer
<localleader>lR
Hard reset the log buffer,
completely deleting the buffer,
mappings and buffer local settings.
This will close any open log windows.
<localleader>ll
Set cursor to top of latest evaluation result.
<localleader>E
When in visual mode, evaluate the current selection.
<localleader>ee
Evaluate the current form under the cursor.
This is the innermost pair (ignoring those in comments or
strings).
<localleader>ece
Evaluates the form under the cursor and displays the
result as a comment at the end of the line or below
the current line if you already have a comment there.
<localleader>er
Evaluate the root form under the cursor.
This is the outermost pair.
Great for evaluating a function you're editing
if your cursor is within a few nested forms.
<localleader>ew
Evaluate the word under the cursor, good for peeking inside vars defined in your file.
<localleader>ecw
Evaluates the word under the cursor and displays the
result as a comment at the end of the line or below
the current line if you already have a comment there.
<localleader>e!
Evaluate the form under the cursor and replace it
<localleader>em[mark]
Evaluate the form under the cursor at the given
|mark|. Set a regular Neovim mark on a form using
`mF` for example in any file, then jump to another
file. You can evaluate that form at any time with
`<localleader>emF`.
<localleader>ef
Evaluate the current file from disk.
<localleader>eb
Evaluate the current buffer contents.
<localleader>gd
Go to the definition of the word under the cursor.
K
Look up documentation for the word under the cursor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment