Skip to main content

Latest VIMRC Setup

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 pa...

Latest VIMRC Setup

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

Popular posts from this blog

Didn't Sleep

 What's the point of sleep anymore if I can't sleep? I don't think I slept any good last night. I was awake at 3 am wondering to myself, what on earth am I doing awake? Yeah, that happened. It doesn't make any sense. Fortunately, it's the weekend. So, I can catch up on sleep tonight. I don't have to be anywhere tomorrow, so it's a good opportunity to actually sleep for once. Whatever the case, I hope I'll be able to fall asleep and stay asleep. We will see what happens.

What's The Point?

 So, tell me, what is the point of believing in a spiritual supreme being? I often wonder what that is all about. I know religions say that God, as some call him, is our father. We pray by starting with our father who art in heaven, hallowed be thy name. Yet sometimes it feels like he is absent from our lives. Is it due to how we are living our lives? What exactly is the cause of that feeling? Some people believe that God, Jesus, and the Holy Ghost are one person. Others do not. It is interesting to me to see what all churches believe in. I myself do not go to church. I don't believe in organized religion. I have my bible on my phone, so it's me and my bible. That is my link to God. It makes me wonder if that's enough though. I have faith in Christ, I believe in him. Is my faith sufficient to be forgiven of my sins? I do not know. I do know that wherever I end up in the afterlife, I will have done my best to follow Christ. I believe the scriptures which lay out Christ's...

Temptation Bible vs Book of Mormon

In the Bible in 1 Corinthians 10:13 we find: There hath no temptation taken you but such as is common to man: but God is faithful, who will not suffer you to be tempted above that ye are able ; but will with the temptation also make a way to escape, that ye may be able to bear it. But what might seem as a contradiction is found in Alma 13:28 But that ye would humble yourselves before the Lord, and call on his holy name, and watch and pray continually, that ye may not be tempted above that which ye can bear , and thus be led by the Holy Spirit, becoming humble, meek, submissive, patient, full of love and all long-suffering; So, which is it? Either God tempts you to a point and stops, or you have to actively pray not to be tempted beyond that no return point. Which is it?