Łukasz Wieczorek's blog A slice of programmer's life

VIM

VIM is my favourite terminal editor. I am writing this post for me to easier to switch to Helix which I will follow up with another post.

Before opening:

which -a vim
brew install vim
vim --version
vim Notes.md
vimtutor

To exit:

:q
:q!
:x
:wq

To navigate:

h j k l # train this with muscles
^ # home
$ # end
gg # document beginning
shift + G # document end

In visual mode:

i # insert
a # append
shift + i # append to the beginning of line
shift + a # append to the end of line
dd # delete line
dw # delete word
y # yank
p # paste
u # undo
ctrl + r # redo
shift + v # visual line

In insert mode:

esc # escape to visual mode

Say no!

say-no is here.

I built a simple HTML, CSS, JavaScript website around the idea of saying no to things that destroy us.

You can check the source code here.

brew

I use MacOS since 2017 and I like to sometimes grab something from the Linux ecosystem. And there is brew. The most basic commands for it are doctor, info, install, uninstall, and upgrade.

brew doctor
brew info ${package_name}
brew install ${package_name}
brew uninstall ${package_name}
brew upgrade