Skip to content

Commit

Permalink
pre janus vimrc file
Browse files Browse the repository at this point in the history
  • Loading branch information
israelkeys committed Dec 18, 2011
1 parent 2dbf113 commit bf734ca
Showing 1 changed file with 89 additions and 0 deletions.
89 changes: 89 additions & 0 deletions .vimrc.old
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@

" Use Pathogen:
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()

" Syntax Highlighting
syntax on " Enable syntax highlighting
filetype plugin indent on " Enable filetype-specific indenting and plugins
augroup myfiletypes

" Clear old autocmds in group
autocmd!

" autoindent with spaces, expand tabs
autocmd FileType ruby,eruby,yaml set ai sw=2 sts=2 et
autocmd FileType c set ai sw=4 sts=4 et
augroup END

set nocompatible
set backspace=indent,eol,start " allow backspacing over everything in insert mode
set history=500 " keep 500 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set autoindent
set showmatch
set nowrap
set backupdir=~/.tmp
set directory=~/.tmp " Don't clutter my dirs up with swp and tmp files
set autoread
set wmh=0
set viminfo+=!
set guioptions-=T
set et
set sw=2
set smarttab
set noincsearch
set ignorecase smartcase
set laststatus=2 " Always show status line.
set number
set gdefault " assume the /g flag on :s substitutions to replace all matches in a line
set autoindent " always set autoindenting on

" Don't use Ex mode, use Q for formatting
map Q <Nop>

let mapleader = ","

map <Leader>NT :NERDTree<CR>

map <Leader>h :CommandT<CR>
map <Leader>rf :CommandTFlush<CR>

map <Leader>m :Rmodel
map <Leader>o :.Rake!<CR>
map <Leader>sm :RSmodel
map <Leader>sm :RSview
map <Leader>su :RSunittest

" Only do this part when compiled with support for autocommands.
if has("autocmd")

" Enable file type detection.
" Use the default filetype settings, so that mail gets 'tw' set to 72,
" 'cindent' is on in C files, etc.
" Also load indent files, to automatically do language-dependent indenting.
filetype plugin indent on

" Put these in an autocmd group, so that we can delete them easily.
augroup vimrcEx
au!

" For all text files set 'textwidth' to 78 characters.
autocmd FileType text setlocal textwidth=78

" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif

augroup END
else
set autoindent " always set autoindenting on
endif " has("autocmd")

color railscasts

0 comments on commit bf734ca

Please sign in to comment.