1
0
Fork 0

Add basic vimrc config

This commit is contained in:
Andrew Tomaka 2014-05-13 02:31:57 -04:00
parent 70806d10e5
commit 73bb34900d
1 changed files with 26 additions and 0 deletions

26
config/vimrc Normal file
View File

@ -0,0 +1,26 @@
set nocompatible " Disable vi compatibility
set autoindent " Automatically indent to the best of Vim's ability
set backspace=2 " Backspace over indent, eol, start of insert
set cpoptions+=$ " So we know what we are changing
set hlsearch " Hilight search results
set nowrap " disable wrapping by default
set number " Show line numbers
set ruler " Show cursor position in status bar
set showcmd " Display commands as you type them
set showmode " Show Vim mode on status (normal, insert, visual, ..)
set wrapscan " Wrap the search to the start of the document
" Tabs are 2 spaces
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab
" Keybinds
" ctrl+s for save spam
map <C-s> <esc>:w<CR>
imap <C-s> <esc>:w<CR>
" filetype stuff
filetype plugin indent on