A Blog by Expatriotic

Neovim

The text editor you love to hate

Even worse for me since I use colemak so the typical way of navigating using the h, j, k, l keys are a little awkward, so I use arrow keys.

Let me go through some commands I use

First of all you can't edit when you start out, you need to hit i to do that.
Next, to get out of this insert mode, hit esc, which I have mapped to capslock 'cuz I'm a balla and ain't nobody got time for esc. Another mode (the third) is v for visual. This is cool because you can highlight text just by moving around and then yank with y.

You need to move around fast

Copy/paste/delete/undo/redo like a boss

Special note: you need to do some magic to make sure that things you copy are available to the global clipboard.

Save and exit

My config

  1. mkdir ~/.config/nvim
  2. nvim ~/.config/nvim
  3. Paste any of the below that you wish to have in your custom setup. notes are after --.
vim.opt.clipboard = "unnamedplus" -- Allows you to paste outside nvim
vim.opt.number = true          -- Shows the current line number
vim.opt.relativenumber = true  -- Shows how many lines away other lines are
vim.opt.mouse = "a"            -- Enables scrolling with your mouse wheel

#linux #terminal #tips