diff --git a/blogContent/posts/other/the-essential-vim-configuration.md b/blogContent/posts/other/the-essential-vim-configuration.md index f5901c6..ee7897f 100644 --- a/blogContent/posts/other/the-essential-vim-configuration.md +++ b/blogContent/posts/other/the-essential-vim-configuration.md @@ -1,8 +1,47 @@ -# Vim Introduction +# Vim Configuration + +Stock vim is pretty boring. +The good news is that vim has a very comprehensive configuration file which +allows you to tweak it to your liking. +To make changes to vim you simply modify the ~/.vimrc file in your home +directory. +By adding simple commands this file you can easily change the way your text editor looks. + +When most people get started with vim configurations, they will simply heave +a few massive vim configurations into their vimrc file. +In addition to basic vim configurations, there are also hundreds of plugins +which you can install. +The problem with shoveling a ton of stuff in your vim configuration and installing a ton +of plugins is that it becomes a pain maintain. +Making simple changes is more difficult when you have to wade through a sea of gobble +gook configurations that you did not write. +Also, if you have a ton of vim plugins it is difficult to transfer them to a new system +since you have to look up how to install all the dependencies. + +When designing my vim configuration I decided to use the minimum amount +configurations as possible to make vim the most usable for me. +I feel that it is important for everyone to know exactly what every line of their +vim configuration does. +This will ensure that you are only adding the things that you want and you can +customize it for your workflow. + +As a small disclaimer, I want to mention that I don't use vim as my primary +IDE. +When working on any large project I tend to use a JetBrains product or VSCode +because of the auto complete functionality and code generation. +There are great vim configurations out there on the internet; however, most +tend to be a bit overkill for what most people want to do. -# Appearance +# Spell Check +```vim +autocmd BufRead,BufNewFile *.md setlocal spell spelllang=en_us +autocmd BufRead,BufNewFile *.txt setlocal spell spelllang=en_us +``` + + +# Appearance ```vim syntax enable @@ -31,15 +70,6 @@ if has("gui_running") endif ``` - -# Spell Check - -```vim -autocmd BufRead,BufNewFile *.md setlocal spell spelllang=en_us -autocmd BufRead,BufNewFile *.txt setlocal spell spelllang=en_us -``` - - # Indentation and Tabs ```vim @@ -85,8 +115,6 @@ set hlsearch set ignorecase ``` - - # Useful Things to Have @@ -115,3 +143,4 @@ set encoding=utf8 " Use Unix as the standard file type set ffs=unix,dos,mac ``` +