Neovim: Difference between revisions

From Celeste@Hoppinglife
Jump to navigation Jump to search
Created page with "Neovim, or nvim is a re-written vim implementation. It is significantly faster than the vanilla fork, and has become my default editor. == Usage == === Latex === === Git ==..."
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
Neovim, or nvim is a re-written vim implementation. It is significantly faster than the vanilla fork, and has become my default editor.
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 <code>neovim</code>, <code>python-pynvim</code> from Pacman and <code>neovim-plug-git</code> from AUR.
Nvim provides a appimage that can be used when installing non-system package is not allowed: [[https://github.com/neovim/neovim/wiki/Installing-Neovim Installing Neovim]]
I use [https://github.com/hbsnmyj/neoroedeer neoroedeer] for configuration. Link the init file to ~/.config/nvim/init.vim. Run <code>:PlugInstall</code> to install the plugins.


== Usage ==
== Usage ==
=== Clipboard ===
<code>"+</code> register is the clipboard on my system.
See <code>:help clipboard</code>


=== Latex ===
=== Latex ===
Line 8: Line 22:


Just call <code>:Git</code>.
Just call <code>:Git</code>.
Use <code>:Gstatus</code> for seeing the stage area, use <code>cc</code> to commit.


See [https://github.com/tpope/vim-fugitive Fugitive].
See [https://github.com/tpope/vim-fugitive Fugitive].
=== Mercurial ===
See [https://github.com/jlfwong/vim-mercenary Mercenary]
=== Markdown ===
Install [https://github.com/iamcco/markdown-preview.nvim Markdown Preview].
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.
<syntaxhighlight>
vim: set tw=78 spell indentexpr=
</syntaxhighlight>
Use <code>gq<location></code> to perform a reformatting operation.

Latest revision as of 17:01, 6 February 2023

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.

Nvim provides a appimage that can be used when installing non-system package is not allowed: [Installing Neovim]

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.

vim: set tw=78 spell indentexpr=

Use gq<location> to perform a reformatting operation.