Skip to content

Instantly share code, notes, and snippets.

@kkismd
Created May 19, 2010 04:53
Show Gist options
  • Save kkismd/405967 to your computer and use it in GitHub Desktop.
Save kkismd/405967 to your computer and use it in GitHub Desktop.
set tabstop=2
set shiftwidth=2
set expandtab
set autoindent
set nowrap
set nocompatible
set smartcase
set smartindent
set smarttab
set laststatus=2
set incsearch
set cpoptions+=$
set fileformats=unix,dos,mac
syntax on
filetype on
filetype indent on
filetype plugin on
"colorscheme desert
colorscheme pyte
set t_Co=256
set hlsearch
" タブキーで候補から選択
set wildmenu
" □とか○の文字があってもカーソル位置がずれないようにする
if exists('&ambiwidth')
set ambiwidth=double
endif
"マウスの設定
set mouse=a
set ttymouse=xterm2
"起動時のメッセージを消す
set shortmess+=I
" 改行時に自動でコメントが挿入されるのをやめる
autocmd FileType * setlocal formatoptions-=ro
" for Rails.vim
autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete
autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1
autocmd FileType ruby,eruby let g:rubycomplete_rails = 1
autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1
autocmd FileType html set filetype=xhtml
autocmd Filetype html set omnifunc=htmlcomplete#CompleteTags
autocmd Filetype css set omnifunc=csscomplete#CompleteCSS
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment