Last active
December 15, 2015 07:59
-
-
Save taise/5227672 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " for neo bundle | |
| set nocompatible | |
| filetype off | |
| if has('vim_starting') | |
| set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
| endif | |
| call neobundle#rc(expand('~/.vim/bundle/')) | |
| " Let NeoBundle manage NeoBundle | |
| NeoBundleFetch 'Shougo/neobundle.vim' | |
| NeoBundle 'Shougo/vimproc' | |
| NeoBundle 'vim-jp/vimdoc-ja' | |
| NeoBundle 'vim-ruby/vim-ruby' | |
| NeoBundle 'tpope/vim-rails' | |
| NeoBundle 'nathanaelkane/vim-indent-guides' | |
| NeoBundle 'thinca/vim-quickrun' | |
| NeoBundle 'othree/html5.vim' | |
| NeoBundle 'derekwyatt/vim-scala' | |
| NeoBundle 'vim-scripts/opsplorer' | |
| NeoBundle 'jiangmiao/simple-javascript-indenter' | |
| NeoBundle 'jelera/vim-javascript-syntax' | |
| NeoBundle 'teramako/jscomplete-vim' | |
| NeoBundle 'scrooloose/syntastic' | |
| NeoBundle 'joker1007/vim-markdown-quote-syntax' | |
| filetype plugin indent on " required! | |
| filetype indent on | |
| syntax on | |
| "Vimの基本設定================================ | |
| "バックアップファイル | |
| set backupdir=$HOME/vimbackup | |
| "ファイル保存ダイアログの初期ディレクトリ | |
| set browsedir=buffer | |
| "スワップファイル用のディレクトリ | |
| set directory=$HOME/vimbackup | |
| "変更中のファイルでも、保存しないで他のファイルを表示 | |
| set hidden | |
| "UTF-8 | |
| set fileencoding=utf-8 | |
| set termencoding=utf-8 | |
| set encoding=utf-8 | |
| "表示設定=================================== | |
| "タブの代わりに空白文字を挿入する | |
| set expandtab | |
| "タブ文字、行末など不可視文字を表示する | |
| set list | |
| "listで表示される文字のフォーマットを指定する | |
| set listchars=eol:$,tab:>\ ,extends:< | |
| "行番号を表示する | |
| set number | |
| "シンタックス・ハイライト=================== | |
| set background=dark | |
| colorscheme darkblue | |
| ""let g:solarized_termcolors=256 | |
| "入力設定=================================== | |
| "シフト移動幅 | |
| set shiftwidth=2 | |
| "表示折り返しoff | |
| set nowrap | |
| "検索補助===================================== | |
| "検索時に大文字を含んでいたら大/小を区別 | |
| set smartcase | |
| "検索をファイルの先頭へループしない | |
| set nowrapscan | |
| "インクリメンタルサーチを行う | |
| set incsearch | |
| "行頭の余白内で Tab を打ち込むと、'shiftwidth' の数だけインデントする。 | |
| set smarttab | |
| "ファイル内の <Tab> が対応する空白の数 | |
| set tabstop=2 | |
| "カーソルを行頭、行末で止まらないようにする | |
| set whichwrap=b,s,h,l,<,>,[,] | |
| "検索に一致した文字をハイライト | |
| set hlsearch | |
| "入力補助===================================== | |
| "新しい行を作ったときに高度な自動インデントを行う | |
| set smartindent | |
| "閉じ括弧が入力されたとき、対応する括弧を表示する | |
| set showmatch | |
| "新しい行のインデントを現在行と同じにする | |
| set autoindent | |
| "Escapeを<C-[>にする | |
| inoremap <C-[> <ESC> | |
| "括弧等を補完する | |
| inoremap " ""<LEFT> | |
| inoremap ' ''<LEFT> | |
| inoremap ( ()<LEFT> | |
| inoremap [ []<LEFT> | |
| inoremap { {}<LEFT> | |
| "<C-c>した場合は、2行分改行して、間の行から入力する | |
| inoremap <C-c> <CR><CR><UP><TAB> | |
| "挿入モードでカーソル移動 | |
| inoremap <C-h> <LEFT> | |
| inoremap <C-j> <DOWN> | |
| inoremap <C-k> <UP> | |
| inoremap <C-l> <RIGHT> | |
| "挿入モードで行末に移動 | |
| inoremap <C-e> <End> | |
| "挿入モードでカーソル上の文字をデリート | |
| inoremap <C-d> <Del> | |
| "4HTML======================================= | |
| inoremap <div <div><CR></div><UP> | |
| inoremap <script <script></script> | |
| "4Ruby======================================= | |
| "input erb keybind | |
| inoremap <C-F> <% %><LEFT><LEFT><LEFT> | |
| "QuickRun | |
| let g:quickrun_config = {} | |
| " for Rspec | |
| let g:quickrun_config['ruby.rspec'] = {'command': 'spec'} | |
| augroup UjihisaRSpec | |
| autocmd! | |
| autocmd BufWinEnter,BufNewFile *_spec.rb set filetype=ruby.rspec | |
| augroup END | |
| " set color for Indent Guides | |
| " indent-guides on | |
| let g:indent_guides_enable_on_vim_startup=1 | |
| let g:indent_guides_start_level=2 | |
| let g:indent_guides_auto_colors = 0 | |
| hi IndentGuidesOdd ctermbg=black | |
| hi IndentGuidesEven ctermbg=darkgrey | |
| " syntastic | |
| let g:syntastic_javascript_checker = 'jshint' | |
| "Vim command | |
| command! DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis | wincmd p | diffthis |
Author
Author
git:// のプロトコルが使えないネットワークがあるので、httpsで通信するように設定している
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"移動をしやすくする
nnoremap H ^
nnoremap J }
nnoremap K {
nnoremap L $