Notes for second vim-fundamentals course meetup

edit✏️

newline another

Mahesh Subrajmanium Venkatachalam - Plugins | Installing a Theme Hunter Phillips - Quickfix | Offline Ordering with getqflist Andrea Wackerle - Search & Replace | Macros

Matthew Fletcher - Registers | Advanced Motions Jump, Delete, & Select | Advanced Motions: Paste & Move Nicholas Payne - My First Vim Plugin | What Makes a Good Plugin Zev Averbach - Harpoon | Wrap up

Plugin-manager

https://github.com/junegunn/vim-plug

Install pluggged

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim     
call plug#begin('~/.vim/plugged')

Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'

call plug#end()

Install Plugins

:PlugInstall
:PlugClean
:PlugUpdate

Installing a Theme

install using plug

Plug 'ayu-theme/ayu-vim'

set the theme

set termguicolors
let ayucolor="dark"
colorscheme ayu

Quickfix

sending things to the quickfix list

:grep SOCKET_OPEN **/*.(c\|h)

quickfix commands

:copen
:cnext
:cdo s/vim/nvim/g

Some remaps to consider

nnoremap <C-k> :cnext<CR>
nnoremap <C-j> :cprev<CR>
nnoremap <C-E> :copen<CR>

Offline Ordering with getqflist

Search & Replace

Walk through example.

curl https://raw.githubusercontent.com/ThePrimeagen/vim-fundamentals/master/course-website/lessons/exercise-3-search-and-replace.md > exercise.md && vim exercise.md

Macros

curl https://raw.githubusercontent.com/ThePrimeagen/vim-fundamentals/master/course-website/lessons/exercise-4-macros.md > exercise.md && vim exercise.md