Thomas shares makes

Hi, I'm Thomas, welcome to my homepage!

This is where I document some of the things I create as a hobby. Topics include electronics, hardware, software, designing, hacking, making and 3D printing. Enjoy and don't hesitate to say hi!


How I get the job done, using Vim
vim

How I get the job done, using Vim

Vi/Vim is a legendary text editor from the UNIX word. Famous for being intimidating for people not familiar with it. Vi has two modes, one for inputing text where letters appear on the screen when pushed, and a second mode where the letters move the cursor, make the cursor jump around the document and do things like pressing 'd3w' will delete three words.

This makes text editing using vi very efficient for people who do it a lot, making learning Vi a good investment of time (right after touch typing / fast typing without looking at the keyboard).

Editorial remark anno 2025: Lots of other text editors have vi key support, like VSCode).

I wrote down tips and tricks I use with VIM.

Vim 8051 assembler syntax file
hacks

Vim 8051 assembler syntax file

I wrote this syntax highlighting file for Vim because I had an Intel 8051 course in 2005, and wanted to do my coding in Vim. It's totally optional to have syntax highlighting, but it does give you many advantages. This .syn file will make sure recognised mnemonics and registers are given a nice color. Also values that are entered are only highlighted if they are valid. Note that the colors depend on the color theme you choose in Vim, no fixed colors are used. You can easily add extra registers specific to your 8052 to the .syn file, the file should be self explanatory.

Follow me on Mastodon!