💾 Archived View for gemini.ctrl-c.club › ~jara25 › gemlog › 2023-06-15.gmi captured on 2024-08-31 at 12:10:23. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-06-16)
-=-=-=-=-=-=-
Since I am primarily a Python programmer that is used to having an 80-column limit, my default Vim settings include a color column positioned at the 81st column and word wrapping turned off. Gemtext files expect each paragraph to be one continuous line, however, so having each line go off the right edge of the screen instead of wrapping around would make writing more difficult.
There is a way to automatically apply settings based on the type of file that is opened, fortunately. This excerpt from my .vimrc, which I wrote yesterday, is an example of this:
augroup gemtext autocmd FileType gemtext setlocal colorcolumn& linebreak wrap augroup END
The above excerpt means that if the opened file is a gemtext file, automatically apply the following settings to that buffer only:
This makes writing content for my Gemini capsule more comfortable without affecting how I work with other files. I used to set these settings manually every time I edited a gemtext file, but having these settings applied automatically gives me a few more precious seconds to spend on writing.
I wrote this post mainly to document what I did for myself, but if someone else is reading this, I hope they find this article useful.