Tue Jun 9 01:56:22 PM MDT 2026 I tend to wonder what this life is all about at times. I’m not sure I quite understand everything that happens in life? But that’s okay. Maybe if I had an inkling of what this life was about, I could answer my own question regarding it. But I doubt that will ever happen or take place. Life has a tendency to hide when certain things come out of nowhere. If I had my own way of doing things? I would figure it all out in one fail swoop. That way it would be understood without question. Naturally that isn’t the case, no such method exists for anyone out there. Life is tricky that way. It can foul you up long before you know it’s doing it. Perhaps I can try and figure something else out about this life. Something I haven’t thought about yet? Now there’s a thought. I…I don’t know exactly what the purpose of this life is meant to be. Some say it’s so we can be happy. Others believe it’s so we can grow from the experiences we have. I don’t know what any of that...
So, here’s my latest .vimrc file. So far I like it. The statusline is very helpful in letting me know certain things about the file. Like what kid of file it is, character position, where I’m at in the file, and the word count, it’s useful:
" Set the maximum width of text to 80 characters
set textwidth=80
" Optional: visual indicator for the 80th column
set colorcolumn=80
set number
" formatoptions settings:
" t: Auto-wrap text using textwidth
" c: Auto-wrap comments using textwidth
" q: Allow formatting of comments with "gq"
set formatoptions+=tcq
set expandtab " Use spaces instead of tabs
set tabstop=4 " Number of spaces that a tab counts for
set shiftwidth=4 " Number of spaces to use for each step of (auto)indent
set softtabstop=4 " Number of spaces that a tab counts for while performing editing operations
syntax enable
" Always show the status line
set laststatus=2
" Define the format (File path, Modified flag, Type, Line/Col, Percentage)
set statusline=%f\ %m\ %y\ %=%l:%c\ %p%%
set statusline+=\ %{wordcount().words}\ words
" Enable spell check
set spell
hi clear SpellBad
hi SpellBad cterm=underline ctermfg=red ctermbg=NONE
" Set style for gVim
hi SpellBad gui=undercurl
So yeah that’s pretty much it. Oh and the spellcheck feature is nice. The blaring red background made it difficult to read at times so I changed it to just be red words and underline when I misspell something. Like I said very helpful.
Comments
Post a Comment