Neovim: Difference between revisions
Jump to navigation
Jump to search
Hoppinglife (talk | contribs) No edit summary |
Hoppinglife (talk | contribs) |
||
| Line 34: | Line 34: | ||
Use <code>:MarkdownPreview</code> to start the preview engine. | Use <code>:MarkdownPreview</code> to start the preview engine. | ||
=== Vimline === | |||
When writing text-based files, I use the following vim line to make vim break lines automatically. Use <pre>gq<location></pre> to perform a reformatting operation. | |||
<syntaxhighlight> | |||
vim: set tw=78 spell indentexpr= | |||
</syntaxhighlight> | |||
Revision as of 16:40, 18 October 2021
Neovim, or nvim is a re-written vim implementation. It is significantly faster than the vanilla fork, and has become my default editor.
Installation
For Arch Linux, Install neovim, python-pynvim from Pacman and neovim-plug-git from AUR.
I use neoroedeer for configuration. Link the init file to ~/.config/nvim/init.vim. Run :PlugInstall to install the plugins.
Usage
Clipboard
"+ register is the clipboard on my system.
See :help clipboard
Latex
Git
Just call :Git.
Use :Gstatus for seeing the stage area, use cc to commit.
See Fugitive.
Mercurial
See Mercenary
Markdown
Install Markdown Preview.
Use :MarkdownPreview to start the preview engine.
Vimline
When writing text-based files, I use the following vim line to make vim break lines automatically. Use
gq<location>
to perform a reformatting operation.
vim: set tw=78 spell indentexpr=