Tag: neovim
-
Neovim with native LSP
The Language Server Protocol (LSP) implementation in neovim 0.11.0 has been rewritten making it possible for mere mortals to rely on the native LSP capabilities within neovim. Here is an example: The vim.lsp.enable API tells neovim to auto-start the listed LSP’s based on the LSP configuration in ~/.config/nvim/lsp. In these examples, the LSP’s will be…
-
Neovim vs Vim
I started in Vim, but after a while, I replaced Vim with Neovim. I find that Neovim has more sensible defaults, “looks” better, and has good Language Server Protocol (LSP) integration and syntax highlighting plugins. I also prefer the Lua configuration setup in Neovim compared to Vim and Vimscript, even though I don’t do a…
-
Basic Vim movements
These are pretty much the keys I use to move around in Vim (or Neovim). Key Explanation h Move the cursor left. j Move the cursor down. k Move the cursor up. l Move the cursor right. gg Go to the first line of the document. G Go to the last line of the document…
-
Helpful Vim commands
Vim has a lot of built-in commands that are very helpful. The following table lists commands I tend to use often. However, this is not even the tip of the command iceberg Vim offers. Command Explanation :%s/foo/bar/g Replace all instances of “foo” with “bar”. :g/foobar/d Delete all lines containing “foobar”. d$ Delete the current line…