dotfiles/.vimrc

72 lines
1.8 KiB
VimL
Raw Normal View History

2013-04-29 15:29:20 -04:00
" Plugins
execute pathogen#incubate()
execute pathogen#infect()
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
2013-04-29 16:33:34 -04:00
Bundle 'airblade/vim-gitgutter'
Bundle 'kien/ctrlp.vim'
2013-04-29 15:29:20 -04:00
Bundle 'tpope/vim-rails'
Bundle 'tpope/vim-repeat'
Bundle 'tpope/vim-surround'
Bundle 'vim-scripts/ruby-matchit'
2013-04-29 02:31:18 -04:00
" Options
set nocompatible " Disable vi compatibility
set ffs=unix,dos " File format prefer unix endings
set eol " Add newlien at end of file
set shellslash " Forward slashes
set nobk " No backup files
set textwidth=80
set laststatus=2 " Always show status line
set showmode " Show current mode
set history=100 " History length
set cul " Highlight current line
set nowrap " Disable wrapping by default
set backspace=2 " Backspace over indent, eol, start of insert
set hlsearch " Search highlights
set wrapscan " Wraped search
set incsearch " Search as yuo type
set ignorecase " Ignore case with search
set smartcase " Search will not ignore uppercase
set showcmd " Show command as you type
set hls " Highlight search (hlsearch?)
set ruler " Show cursor position
set autoindent
2013-04-29 16:33:34 -04:00
set number " Show line numbers
2013-04-29 02:31:18 -04:00
" Tabs are 2 spaces
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab
2013-04-29 13:32:51 -04:00
" Filetype stuff
2013-04-29 15:29:20 -04:00
syntax on
2013-04-29 13:32:51 -04:00
filetype on
filetype plugin on
filetype indent on
" Keybinds
" ctrl+s for save spam
map <C-s> <esc>:w<CR>
imap <C-s> <esc>:w<CR>
" Leaders (whatever that means)
let mapleader = ","
map <Leader>s :e ~/Source/
2013-04-29 15:29:20 -04:00
map <Leader>nc :Nyancat<cr>
2013-04-29 13:32:51 -04:00
" Set style
set guifont=Ubuntu\ Mono\ 10
colorscheme vividchalk
set cursorline
hi CursorLine cterm=NONE ctermbg=234
2013-04-29 17:45:36 -04:00
highlight StatusLine ctermfg=white ctermbg=236
hi SignColumn ctermbg=black