From 73bb34900d8c38944cd083d7b08390e9dffd29ef Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 13 May 2014 02:31:57 -0400 Subject: [PATCH] Add basic vimrc config --- config/vimrc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 config/vimrc diff --git a/config/vimrc b/config/vimrc new file mode 100644 index 0000000..5781678 --- /dev/null +++ b/config/vimrc @@ -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 :w +imap :w + +" filetype stuff +filetype plugin indent on