day 2 learning neovim.
-
Continuing with https://www.youtube.com/watch?v=KYDG3AHgYEs. Customising keybinds is starting to make more sense. \
-
wasted a bunch of time configuring smooth scrolling. track pad scroll get janky when you enable something some mini.animate. Will need get used not using trackpad to scroll so much. will need to try and get used to ctrl+u and ctrl+d w
-
throwing my
init.lua
into Claude is surprisingly handy! -
Also ChatGPT helped we get moving lives up and down working vscode style:
vim.keymap.set('n', '<C-j>', ':m .+1<CR>==', { noremap = true, silent = true }) -- Move line down
vim.keymap.set('n', '<C-k>', ':m .-2<CR>==', { noremap = true, silent = true }) -- Move line up
-- Move selected lines up and down in visual mode
vim.keymap.set('v', '<C-j>', ":m '>+1<CR>gv=gv", { noremap = true, silent = true }) -- Move selection down
vim.keymap.set('v', '<C-k>', ":m '<-2<CR>gv=gv", { noremap = true, silent = true }) -- Move selection up
- my window slipping management is pretty bad right now. something to work on later…