1
0
Fork 0
intro-to-vim/config/vimrc

27 lines
904 B
VimL
Raw Permalink Normal View History

2014-05-13 02:31:57 -04:00
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