Skip to content

Instantly share code, notes, and snippets.

@staybuzz
Created April 19, 2016 14:49
Show Gist options
  • Save staybuzz/f2b9b36a1290638abd07f1a678ac4195 to your computer and use it in GitHub Desktop.
Save staybuzz/f2b9b36a1290638abd07f1a678ac4195 to your computer and use it in GitHub Desktop.
"http://qiita.com/marrontan619/items/541a1374e1ac672977e6
"http://qiita.com/tetsuya/items/75987487ffac42250d3b
"http://itchyny.hatenablog.com/entry/2014/12/25/090000
set number
set title
set ambiwidth=double
set tabstop=2
set expandtab
set shiftwidth=4
set smartindent
set list
"set listchars=tab:≫-,trail:-,eol:?,extends:≫,precedes:≪,nbsp:%
set backspace=indent,eol,start
set ignorecase
set smartcase
set wrapscan
set showmatch
set matchtime=1
"NeoBundle
" vim起動時のみruntimepathにneobundle.vimを追加
if has('vim_starting')
set nocompatible
set runtimepath+=$HOME/.vim/bundle/neobundle.vim
endif
" neobundle.vimの初期化
" NeoBundleを更新するための設定
call neobundle#begin(expand('~/.vim/bundle'))
NeoBundleFetch 'Shougo/neobundle.vim'
" 読み込むプラグインを記載
NeoBundle 'Shougo/unite.vim'
NeoBundle 'Shougo/neosnippet'
NeoBundle 'Shougo/neosnippet-snippets'
NeoBundle 'Shougo/neocomplete'
NeoBundle 'Shougo/neocomplcache'
NeoBundle 'itchyny/lightline.vim'
NeoBundle 'tpope/vim-surround'
NeoBundle 'scrooloose/syntastic'
call neobundle#end()
" 読み込んだプラグインも含め、ファイルタイプの検出、ファイルタイプ別プラグイン/インデントを有効化する
filetype plugin indent on
" インストールのチェック
NeoBundleCheck
""""" For neosnippet
let g:neosnippet#snippets_directory="~/.vim/bundle/neosnippet-snippets/neosnippets/"
" Plugin key-mappings.
imap <C-k> <Plug>(neosnippet_expand_or_jump)
smap <C-k> <Plug>(neosnippet_expand_or_jump)
xmap <C-k> <Plug>(neosnippet_expand_target)
" SuperTab like snippets behavior.
imap <expr><TAB> neosnippet#expandable_or_jumpable() ?
\ "\<Plug>(neosnippet_expand_or_jump)"
\: pumvisible() ? "\<C-n>" : "\<TAB>"
smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
\ "\<Plug>(neosnippet_expand_or_jump)"
\: "\<TAB>"
" For snippet_complete marker.
if has('conceal')
set conceallevel=2 concealcursor=i
endif
""""" http://qiita.com/kuwana/items/d9778a9ec42a53b3aa10
inoremap {<Enter> {}<Left><CR><ESC><S-o>
inoremap [<Enter> []<Left><CR><ESC><S-o>
inoremap (<Enter> ()<Left><CR><ESC><S-o>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment