Neovim - Vim taken a step further.

TODO

Introduction

References

Installation
sudo add-apt-repository ppa:neovim-ppa/stable       # version 0.4.4
# sudo add-apt-repository ppa:neovim-ppa/unstable   # version 0.5.0-dev
sudo apt-get update
sudo apt-get install neovim

System Settings

Moving the screen with Up/Down (normal editors) or with J/K (vim) is not efficient.

However we all do it sometimes. Why not to set shorter stroke rate so the screen moves faster.

Set key stroke rate
xset r rate 200 20

Remap Caps lock to Escape

If case you wan to use vim / neovim / vi shell mode. I can not enough recommend you to remap caps lock key to escape.

Create Config File
# Do this only if the file does not exist already!
mkdir -p ~/.config/nvim
echo "\
set tabstop=4
set softtabstop=0
set expandtab
set shiftwidth=4
set smarttab
set list
" > ~/.config/nvim/init.vim
Create Space for Plugins
mkdir -p ~/.vim/plugins
Install vim-plug Plugin Manager
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

Plugins

Conquer of Completition

Install nodejs >= 10.12:

curl -sL install-node.now.sh/lts | bash

Add Plugins in the Config File

Usually this is the very first lines of the init.vim file.

init.vim
call plug#begin('~/.vim/plugins')

Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'morhetz/gruvbox'

call plug#end()

Restart nvim and run :PlugInstall.

Neovim Diff
nvim -d file_1 file_2

Regular Expressions

Substitute 00: hours to 12: hours in CSV, keep beginning of the line untouched
:%s/\(^[^,]*,[^,]* \)00:/\112:/