" nixpunk's ~/.vimrc 08/07 " This is vim, not vi (remove vi compat.) set nocompatible " Jump to matching bracket when one is inserted set showmatch " Use smart autoindenting when starting a new line set smartindent " Enable swap files and savefile warning set hidden " Use case insensitive search, except when using caps set ignorecase set smartcase " Match /searches as typed (saves time) set incsearch " Show command-line autocomplete menu at status bar location set wildmenu " Use search HL set hlsearch " Show partial commands in the last line of the screen set showcmd " Set command history (default: 20) set history=100 " Enable backspace over insert, autoindent, and breaks set backspace=eol,start,indent " Set tab indent length and tab char width set tabstop=4 set shiftwidth=4 set expandtab set virtualedit=all set background=dark "set vb t_vg= set textwidth=79 set formatoptions=tcrq " Create status bar space and add status bar info set laststatus=2 set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L] " Display line numbers on <--- "set number " Enable syntax highlighting syntax on " Enable 256 colors set t_Co=256 " Set theme colorscheme inkpot " Auto indent based on filetype/content filetype indent plugin on " CUSTOM KEYSTROKES SECTION " 'ii' = insert imap ii " Use to redraw screen and clear HL search nnoremap :nohl " Use (twice) to toggle number line nmap :set invnumber