From 37b674ea5817f33ca06bd7114c899dce06cfed0a Mon Sep 17 00:00:00 2001 From: Nick Miller Date: Sun, 5 Mar 2017 17:06:26 -0500 Subject: [PATCH] added vimrc --- .vimrc | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 .vimrc diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..0e5e6b7 --- /dev/null +++ b/.vimrc @@ -0,0 +1,73 @@ +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" +" ~/.vimrc +" +" https://git.theflyingfool.com/theflyingfool/dot/blob/master/vim/vimrc +" +" Maintainer: +" TheFlyingFool - tff@theflyingfool.com +" http://theflyingfool.com +" +" Version: +" Mon Mar 16 19:37:55 CDT 2015 +" +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + +" Visual Settings +set ruler +" Show Line Number +set nu +" make :w!! do a sudo save +cmap w!! w !sudo tee > /dev/null % + +" Search settings +" Searches as you type +" Ignores case while searching +" If case specified only search that +" Highlight search results +" Forces VIM instead of Vi +set incsearch +set ignorecase +set smartcase +set hlsearch +set nocompatible +filetype off + + +" Load Vundle +"set rtp+=~/.vim/bundle/Vundle.vim +"call vundle#begin() +"Plugin 'VundleVim/Vundle.vim' + +" Plugin 'Valloric/YouCompleteMe' + +" Plugins must be loaded before following two lines +"call vundle#end() +filetype plugin indent on + +" Syntax Highlighting +" Forces .md files to load as Markdown +syntax on +au BufRead,BufNewFile *.md set filetype=markdown + +"Turns on Spell Check +:setlocal spell spelllang=en_us + + +" Normal mode +nnoremap :m .+1== +nnoremap :m .-2== + +" Insert mode +inoremap :m .+1==gi +inoremap :m .-2==gi + +" Visual mode +vnoremap :m '>+1gv=gv +vnoremap :m '<-2gv=gv + +" fix some common typos +iabbrev waht what +iabbrev tehn then + +set modeline