Skip to content

Instantly share code, notes, and snippets.

@MasazI
Created October 14, 2015 09:00
Show Gist options
  • Save MasazI/aa26bfb8af0c746febdd to your computer and use it in GitHub Desktop.
Save MasazI/aa26bfb8af0c746febdd to your computer and use it in GitHub Desktop.
python vim neobundle
" インタープリターの実行
autocmd BufNewFile,BufRead *.rb nnoremap <C-e> :!ruby %
autocmd BufNewFile,BufRead *.py nnoremap <C-e> :!python %
autocmd BufNewFile,BufRead *.pl nnoremap <C-e> :!perl %
" 表示のカスタマイズ
set number "行番号を表示する
set title "編集中のファイル名を表示
set showmatch "括弧入力時の対応する括弧を表示
" TreeToggleの起動 "
nnoremap <silent><C-t> :NERDTreeToggle<CR>
" 検索設定
set ignorecase "大文字/小文字の区別なく検索する
set smartcase "検索文字列に大文字が含まれている場合は区別して検索する
set wrapscan "検索時に最後まで行ったら最初に戻る
" bundleのディレクトリ指定
set runtimepath+=~/.vim/bundle/neobundle.vim/
" neobundleを読み込む
call neobundle#begin(expand('~/.vim/bundle/'))
" neobundle を管理
NeoBundleFetch 'Shougo/neobundle.vim'
" **** 導入するプラグイン ****
NeoBundle 'Flake8-vim'
"NeoBundle 'davidhalter/jedi-vim'
NeoBundle 'hynek/vim-python-pep8-indent'
NeoBundle 'Townk/vim-autoclose'
NeoBundle 'scrooloose/syntastic'
NeoBundle 'scrooloose/nerdtree'
" for HTML
NeoBundle 'mattn/emmet-vim'
NeoBundle 'open-browser.vim'
NeoBundle 'hail2u/vim-css3-syntax'
let g:netrw_nogx = 1
nmap gx <Plug>(openbrowser-smart-search)
vmap gx <Plug>(openbrowser-smart-search)
syntax on
" set tabstop=4
" set smartindent
set tabstop=8
set softtabstop=4
set shiftwidth=4
set expandtab
set smarttab
" neobundle を閉じる
call neobundle#end()
" インストールするか自動でチェック
NeoBundleCheck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment