The Beginning
Hi, everyone. Today marks 5 years of me using Neovim as my text editor.
The commit I made with my first ever configuration:
commit b78dc0312618408125f1794bd1bcb012170dec52
Author: Daniil Tsivinsky <daniil@tsivinsky.com>
Date: Wed Sep 22 22:45:09 2021 +0300
I use neovim now
Here's the entire file. It's only 46 lines of VimScript.
" mark: modules
call plug#begin('~/.config/nvim/plugged')
Plug 'ayu-theme/ayu-vim'
Plug 'tpope/vim-commentary'
Plug 'norcalli/nvim-colorizer.lua'
Plug 'jiangmiao/auto-pairs'
call plug#end()
" mark: general
syntax on
set number
set tabstop=2
set shiftwidth=2
set smartindent
set expandtab
set wrap
set noswapfile
set encoding=utf-8
set termguicolors
" MY LEADER KEY IS GONNA BE A SPACE
let mapleader = " "
" Colorscheme
let ayucolor = "mirage"
colorscheme ayu
" Color highlighting
lua require'colorizer'.setup()
" mark: remaps
" These allow me to quickly save and quit vim
nnoremap <leader>w :w<CR>
nnoremap <leader>q :q<CR>
" Remaps to move line under the cursor up and down
nnoremap <C-k> :m .-2<CR>==
nnoremap <C-j> :m .+1<CR>==
vnoremap K :m '<-2<CR>gv=gv
vnoremap J :m '>+1<CR>gv=gv
It included ayu-vim colorscheme and 3 plugins: tpope’s vim-commentary, nvim-colorizer.lua, and auto-pairs.
Next commit added a lot of stuff, like support for languages I used at the time, nvim-tree.lua I still use today, and more remaps.
Today
Now my configuration is bigger than it was with 1182 lines spread between 18 Lua files, and only 22 plugins.
Was it worth it?
Absolutely. I love using neovim. I feel productive with it. Recently, I tried using Zed and it was painful. I don’t want to use a mouse to navigate the editor. I still have zed on my pc but I don’t use it and don’t even open it.