Skip to content

Instantly share code, notes, and snippets.

@ore-public
Created March 22, 2014 17:00
Show Gist options
  • Save ore-public/9710519 to your computer and use it in GitHub Desktop.
Save ore-public/9710519 to your computer and use it in GitHub Desktop.
syntax on
set nocompatible
filetype off
"""" neobundle.vimの設定
if has('vim_starting')
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
call neobundle#rc(expand('~/.vim/bundle'))
NeoBundleFetch 'Shougo/neobundle.vim'
"" プラグイン記述 Start
NeoBundle 'Shougo/neocomplcache'
NeoBundle 'Shougo/unite.vim'
NeoBundle 'tyru/open-browser.vim'
NeoBundle 'kannokanno/previm'
NeoBundle 'plasticboy/vim-markdown'
NeoBundle 'tpope/vim-fugitive'
" {{{
NeoBundle 'Shougo/vimproc', {
\ 'build' : {
\ 'mac' : 'make -f make_mac.mak',
\ 'unix' : 'make -f make_unix.mak',
\ },
\ }
NeoBundleLazy 'Shougo/neosnippet', {
\ 'autoload' : {
\ 'commands' : ['NeoSnippetEdit', 'NeoSnippetSource'],
\ 'filetypes' : 'snippet',
\ 'insert' : 1,
\ 'unite_sources' : ['snippet', 'neosnippet/user', 'neosnippet/runtime'],
\ }}
NeoBundle 'Shougo/neosnippet-snippets'
NeoBundle 'tpope/vim-rails', { 'autoload' : {
\ 'filetypes' : ['haml', 'ruby', 'eruby'] }}
NeoBundleLazy 'alpaca-tc/vim-endwise.git', {
\ 'autoload' : {
\ 'insert' : 1,
\ }}
NeoBundleLazy 'edsono/vim-matchit', { 'autoload' : {
\ 'filetypes': 'ruby',
\ 'mappings' : ['nx', '%'] }}
NeoBundleLazy 'basyura/unite-rails', {
\ 'depends' : 'Shougo/unite.vim',
\ 'autoload' : {
\ 'unite_sources' : [
\ 'rails/bundle', 'rails/bundled_gem', 'rails/config',
\ 'rails/controller', 'rails/db', 'rails/destroy', 'rails/features',
\ 'rails/gem', 'rails/gemfile', 'rails/generate', 'rails/git', 'rails/helper',
\ 'rails/heroku', 'rails/initializer', 'rails/javascript', 'rails/lib', 'rails/log',
\ 'rails/mailer', 'rails/model', 'rails/rake', 'rails/route', 'rails/schema', 'rails/spec',
\ 'rails/stylesheet', 'rails/view'
\ ]
\ }}
"NeoBundleLazy 'taka84u9/vim-ref-ri', {
" \ 'depends': ['Shougo/unite.vim', 'thinca/vim-ref'],
" \ 'autoload': { 'filetypes': g:my.ft.ruby_files } }
NeoBundleLazy 'alpaca-tc/neorspec.vim', {
\ 'depends' : ['alpaca-tc/vim-rails', 'tpope/vim-dispatch'],
\ 'autoload' : {
\ 'commands' : ['RSpec', 'RSpecAll', 'RSpecCurrent', 'RSpecNearest', 'RSpecRetry']
\ }}
NeoBundleLazy 'alpaca-tc/alpaca_tags', {
\ 'depends': 'Shougo/vimproc',
\ 'autoload' : {
\ 'commands': ['TagsUpdate', 'TagsSet', 'TagsBundle']
\ }}
NeoBundleLazy 'tsukkee/unite-tag', {
\ 'depends' : ['Shougo/unite.vim'],
\ 'autoload' : {
\ 'unite_sources' : ['tag', 'tag/file', 'tag/include']
\ }}
" }}}
"Haskell用に
NeoBundle 'dag/vim2hs'
NeoBundle 'kana/vim-filetype-haskell'
NeoBundle 'eagletmt/ghcmod-vim'
NeoBundle 'ujihisa/neco-ghc'
NeoBundle 'thinca/vim-quickrun'
NeoBundle 'osyo-manga/vim-watchdogs'
"OCaml用に
NeoBundle 'cohama/the-ocamlspot.vim'
"" プラグイン記述 End
filetype plugin indent on
set backspace=start,eol,indent
set whichwrap=b,s,[,],<,>,~
set mouse=
set nohlsearch
set laststatus=2
set statusline=%F%r%h%=
set number
set noincsearch
set ignorecase
set wildmenu wildmode=list:full
set ambiwidth=double
set enc=utf8
set expandtab
set smartcase
set ts=2
set sw=2
""set updatetime=1
map <left> :bp<CR>
map <right> :bn<CR>
map <C-g> :Gtags
map <C-h> :Gtags -f %<CR>
map <C-j> :GtagsCursor<CR>
map <C-n> :cn<CR>
map <C-p> :cp<CR>
map <C-t> :GhcModType<CR>
let g:vim_markdown_folding_disabled=1
let g:neocomplcache_enable_at_startup = 1
let g:alpaca_tags_config = {
\ '_' : '-R --sort=yes --languages=-js,html,css',
\ 'ruby': '--languages=+Ruby',
\ }
let g:alpaca_tags_ctags_bin = '/usr/local/bin/ctags'
augroup AlpacaTags
autocmd!
if exists(':Tags')
autocmd BufWritePost Gemfile TagsBundle
autocmd BufEnter * TagsSet
" 毎回保存と同時更新する場合はコメントを外す
" autocmd BufWritePost * TagsUpdate
endif
augroup END
nnoremap <expr>tt ':Unite tags -horizontal -buffer-name=tags -input='.expand("<cword>").'<CR>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment