Skip to content

Commit

Permalink
set filetype off initially due to annoying ubuntu defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
ehg committed Oct 13, 2012
1 parent c322984 commit caf5e70
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions vimrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
" Example Vim configuration.
" Copy or symlink to ~/.vimrc or ~/_vimrc.
set nocompatible " Must come first because it changes other options.
filetype off

silent! call pathogen#runtime_append_all_bundles()

syntax enable " Turn on syntax highlighting.
filetype plugin indent on " Turn on file type detection.

runtime macros/matchit.vim " Load the matchit plugin.

set showcmd " Display incomplete commands.
set showmode " Display the mode you're in.

Expand Down Expand Up @@ -43,7 +42,6 @@ set nobackup " Don't make a backup before overwriting a fil
set nowritebackup " And again.
set directory=$HOME/.vim/tmp//,. " Keep swap files in one location

" UNCOMMENT TO USE
set tabstop=2 " Global tab width.
set shiftwidth=2 " And again, related.
set expandtab " Use spaces instead of tabs
Expand Down Expand Up @@ -80,18 +78,10 @@ inoremap <expr> <C-Space> pumvisible() \|\| &omnifunc == '' ?
\ "\" \\<lt>bs>\\<lt>C-n>\"\<CR>"
imap <C-@> <C-Space>
" Controversial...swap colon and semicolon for easier commands
nnoremap ; :
nnoremap : ;
vnoremap ; :
vnoremap : ;
" Automatic fold settings for specific files. Uncomment to use.
" autocmd FileType ruby setlocal foldmethod=syntax
" autocmd FileType css setlocal foldmethod=indent shiftwidth=2 tabstop=2

" For the MakeGreen plugin and Ruby RSpec. Uncomment to use.
autocmd BufNewFile,BufRead *_spec.rb compiler rspec

set t_Co=256

0 comments on commit caf5e70

Please sign in to comment.