vjousse / vim-for-humans-book

The vim for humans book
https://vimebook.com
Other
131 stars 20 forks source link
book ebook latex vim

Vim for humans

Website code available here: https://github.com/vjousse/vim-for-humans-website vimrc config examples available here: https://github.com/vjousse/vim-for-humans

Install

Be sure to create a symlink named 'vim-for-humans' in the project directory. This symlink should point to a directory where you've cloned code examples.

You will need some prerequisites to be able to compile the LaTeX source code:

Archlinux

yay -S python-sphinx python-pygments kindlegen

Use instructions from the official website for TeX Live

Compile

After the dependencies have been installed, run makedist.sh script to start compiling. If the compilation fails, be sure to check the content of the script and try running each command one after another.

Enjoy

Upon success outputs can be found in the dist/vimpourleshumains/ directory. Enjoy!

Tips & tricks

Generate rounded/shadowed image

Be sur to have ImageMagick installed and use the add-borders.sh script like these:

./add-borders.sh book-tex/graphics/vim-catpuccin-mocha.png

It will replace your book-tex/graphics/vim-catpuccin-mocha.png image with a rounded/shadowed one and save the original image to book-tex/graphics/vim-catpuccin-mocha-original.png.

Get kitty terminal window for screenshots with sway

With sway, be sure that your kitty window is floating. Then resize it and change kitty font size.

swaymsg -r resize set width 1200 px; swaymsg -r resize set height 1000 px; kitty @ set-font-size 14

Font used: FiraCode Nerd Font from Nerd Fonts.