Why is life this way? I often wonder what’s going on with it, but I don’t have a clue how it’s meant to be at times. I wish I had a clue, honestly. But I don’t, so what’s the point of it all? If It’s meant to be a curse then let it be a curse. But, if it’s meant to be something different? Let it be different. Don’t let it be what you want it to be, be what it’s meant to be. Allow life to be whatever it needs to be, there’s nothing wrong with that. There are things in this life we don’t have control over, and that’s okay! If we can simply allow ourselves to become the better person, then we can allow such a life to continue. We can allow it to make us and form us, shape us even into the people we’re supposed to be.
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