Mon Jun 8 08:08:34 AM MDT 2026 I’d like to know for a fact what this life is all about. I don’t seem to understand its true potential most of the time. What is one’s own true potential? I’m not sure I even understand what that’s all about. Are we ever meant to fully understand what this life is about? I doubt it. It remains a mystery to us all. Why does life have to be a mystery at all? I don’t get it. I mean it makes sense on some level? But not really. Maybe life isn’t meant to be figured out at all? I mean that’s possible right? Right?! Yeah, that’s what I was thinking. Apricots are delicious! I have some this morning for breakfast, that and toast. I rather enjoy me a good apricot. Cute little fuzzy things they are! I like those and peaches most. Who knows what other fruits I enjoy. It’s been a while since I’ve actually enjoyed some fruit. I need to change that in my diet. Mon Jun 08 09:25:05 AM MDT 2026 If life had a purpose, what would that purpose be? I mean we’re here for ...
So, I added the following to my vimrc:
" Change Leader Key to a comma, that '\' is so hard to reach
let mapleader = ","
" Set the maximum width of text to 80 characters
set textwidth=80
" Optional visual indicator for the 80th column
set colorcolumn=80
" Show line numbers
set number
" File type detection, plugins, and smart indentation
filetype plugin indent on
" formatoptions settings:
" t: Auto-wrap text using textwidth
" c: Auto-wrap comments using textwidth
" q: Allow formatting of comments with "gq"
set formatoptions+=tcq
" Tabs and Spaces Setup
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 autoindent
set softtabstop=4 " Number of spaces that a tab counts for while editing
" Enable syntax highlighting
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
" Spell check look and feel
hi clear SpellBad
hi SpellBad cterm=underline ctermfg=red ctermbg=NONE
hi SpellBad gui=undercurl
" ==============================================================================
" KEY MAPPINGS
" ==============================================================================
" Insert date with comment tag in INSERT mode
inoremap <C-d> <C-R>=strftime("# %a %b %d %I:%M:%S %p %Z %Y")<CR>
" Save file with Ctrl+S in INSERT mode
inoremap <C-s> <Esc>:w<CR>a
" Comment out a line of code with //
nnoremap <Leader>/ I// <Esc>
" Uncomment a single line in NORMAL mode
nnoremap <Leader>u :s/^\/\/ //e<CR>
" ==============================================================================
" LANGUAGE SPECIFIC SETTINGS & ABBREVIATIONS
" ==============================================================================
" Java specific rules
augroup java_settings
autocmd!
" Turn on C-indenting ONLY for Java files
autocmd FileType java setlocal cindent
autocmd FileType java iabbrev <buffer> pvm public static void main(String[] args) {<CR>}<Esc>O
" Auto-close curly braces and drop to a new line
autocmd FileType java inoremap {<CR> {<CR>}<Esc>O
augroup END
" Perl specific rules
augroup perl_settings
autocmd!
" Perl Header Template
autocmd FileType perl iabbrev <buffer> perlheader #!/usr/bin/perl<CR>use strict;<CR>use warnings;<CR><CR>
" Perl MySQL Connection Template (with safety paste toggle)
autocmd FileType perl iabbrev <buffer> dbconnect <C-O>:set paste<CR>use DBI;<CR><CR>my $dsn = "DBI:mysql:database=dbname;host=localhost";<CR>my $user = "username";<CR>my $password = "password";<CR><CR>my $dbh = DBI->connect($dsn, $user, $password, { RaiseError => 1, AutoCommit => 1 })<CR>or die "Connection failed: " . DBI->errstr;<CR><C-O>:set nopaste<CR>
augroup END
Comments
Post a Comment