Skip to content

Commit b5d97a6

Browse files
committed
expandtab
1 parent 355a4eb commit b5d97a6

File tree

1 file changed

+31
-10
lines changed

1 file changed

+31
-10
lines changed

.vimrc

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,20 @@ if has('vim_starting')
88
endif
99
call neobundle#rc(expand('~/.vim/bundle/'))
1010

11-
NeoBundle 'git://github.com/Shougo/clang_complete.git'
12-
NeoBundle 'git://github.com/Shougo/echodoc.git'
13-
NeoBundle 'git://github.com/Shougo/neocomplcache.git'
14-
NeoBundle 'git://github.com/Shougo/neobundle.vim.git'
15-
NeoBundle 'git://github.com/Shougo/unite.vim.git'
16-
NeoBundle 'git://github.com/Shougo/vim-vcs.git'
17-
NeoBundle 'git://github.com/Shougo/vimfiler.git'
18-
NeoBundle 'git://github.com/Shougo/vimshell.git'
19-
NeoBundle 'git://github.com/Shougo/vinarise.git'
11+
"NeoBundle 'Shougo/clang_complete.git'
12+
NeoBundle 'Shougo/echodoc.git'
13+
NeoBundle 'Shougo/neocomplcache.git'
14+
NeoBundle 'Shougo/neosnippet.git'
15+
NeoBundle 'Shougo/neocomplcache-snippets-complete'
16+
NeoBundle 'Shougo/neobundle.vim.git'
17+
NeoBundle 'Shougo/unite.vim.git'
18+
NeoBundle 'Shougo/vim-vcs.git'
19+
NeoBundle 'Shougo/vimfiler.git'
20+
NeoBundle 'Shougo/vimshell.git'
21+
NeoBundle 'Shougo/vinarise.git'
2022
NeoBundle 'git://github.com/h1mesuke/unite-outline.git'
2123

24+
2225
""""""" vim-scripts repos
2326
" プロジェクトのツリー表示
2427
NeoBundle 'vim-scripts/project.tar.gz'
@@ -63,6 +66,7 @@ set incsearch "インクリメンタルサーチ
6366
set tabstop=2 "タブの表示を2に
6467
set ts=2 "タブのスペースを2に
6568
set showmatch "対応する括弧を表示する
69+
set expandtab
6670

6771
"-----編集-----
6872
"insert抜けるとIMEオフ
@@ -93,7 +97,24 @@ let g:neocomplcache_enable_at_startup = 1
9397
let g:neocomplcache_max_list = 30
9498
let g:neocomplcache_auto_completion_start_length = 2
9599
let g:neocomplcache_enable_underbar_completion = 1
96-
imap <expr><TAB> neocomplcache#sources#snippets_complete#expandable() ? "\<Plug>(neocomplcache_snippets_expand)" : pumvisible() ? "\<C-n>" : "\<TAB>"
100+
" SuperTab like snippets behavior.
101+
imap <expr><TAB> neosnippet#expandable_or_jumpable() ?
102+
\ "\<Plug>(neosnippet_expand_or_jump)"
103+
\: pumvisible() ? "\<C-n>" : "\<TAB>"
104+
smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
105+
\ "\<Plug>(neosnippet_expand_or_jump)"
106+
\: "\<TAB>"
107+
108+
" For snippet_complete marker.
109+
if has('conceal')
110+
set conceallevel=2 concealcursor=i
111+
endif
112+
113+
" Enable snipMate compatibility feature.
114+
let g:neosnippet#enable_snipmate_compatibility = 1
115+
116+
" Tell Neosnippet about the other snippets
117+
let g:neocomplcache_snippets_dir='~/.vim/bundle/vim-snippets/snippets'
97118

98119
NeoBundle 'neco-look'
99120
NeoBundle 'ujihisa/shadow.vim'

0 commit comments

Comments
 (0)