Skip to main content

Posts

Showing posts with the label vim

Sleepy Day

Today feels like a sleepy day, I don't know why that is. It just feels that way. I wish I could figure out why life happens the way it does. But I don't understand how anything goes about in this life. If I could understand one thought in life...I think I'd like it to be able to grasp why we are here on this Earth. Is it because the aliens want us to become something better than we are? I mean they're the ones in charge right? I think they are.

Added some bindings to my vimrc

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

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

Hard Linewrap In Vim

So I wanted to find a way to make vim do a hard line wrap so it would be in nice chunks when I type without having to do hard wrapping myself. Well, here’s how that’s accomplished: " Set the maximum width of text to 80 characters set textwidth=80 " Optional: visual indicator for the 80th column set colorcolumn=80 " formatoptions settings: " t: Auto-wrap text using textwidth " c: Auto-wrap comments using textwidth " q: Allow formatting of comments with "gq" set formatoptions+=tcq I allowed AI to generate it for me, let’s face it, I was too lazy to try and google it for myself. AI can be useful for some things I suppose. AI isn’t out for everyone’s job, that’s just a myth. It’s a tool that can be used from time to time to accomplish small tasks. And for me? This was the perfect task that I needed it to accomplish.

VIM Part 2

More VIM. Yes. So I found out that my dad had downloaded VIM years ago, there was a port for Windows back then. I could have been using it all these years and I just missed out on the opportunity. Interesting how life works that way. I have VIM working with PGP encryption. So I can create an encrypted text file with the mere thought of a thought. Or something like that. Yes indeed. Works quite well.

VIM

Ah VIM... or VI. Whichever people prefer. Attempting to use VIM for Java programming development. Yes VIM as an IDE. So far not too bad. My purpose for this? Well I needed something lightweight to run on my netbook. So tada VIM to the rescue! Oh yes. We'll see how well it works out.