Neovim Tips & Tricks

This chapter compiles many of the best tips and tricks that the Neovim community has developed over the years to turbo-charge your Neovim workflow.
Applying Normal Mode Commands to a Range
editingformatting
Diffing the Current Buffer
miscshell
Applying External Formatting
formatting
Formatting an Entire Buffer
editingformattingshell
Formatting Selected Text
formatting
Improving the "J" Command with a Key Map
keymap
Inserting a REST API Response into a Buffer
editingshell
Inserting Unicode Characters
editing
Moving Lines in a Buffer with a Key Map
editing
Navigating Markdown Headings
keymapnavigating
Navigating Markdown Headings with Treesitter
keymapnavigating
Prepending Text to Selected Lines
editing
Reflowing Paragraphs in a Buffer
formatting
Removing Duplicates from Text
editing
Replacing a Word in a Buffer
editingshell
Replacing a Word in a Buffer from a Register
editing
Replacing the Word Under the Cursor
editing
Search and Replace in Multiple Files
editingworkflow
Yanking an Entire Buffer
misc