引き続き少しずつですがPythonを勉強中です。
ところで、エディタはターミナル上でvimを使っているのですが
環境の運用が面倒くさそうという先入観からvimrcやpluginは
ほとんど手を入れていませんでした。
しかし、タイミングよく会社でneobundleという
pluginを教えてもらったので、Pythonの勉強用にvimrc設定と
pluginを入れてみました。
set nocompatible
filetype offif has(‘vim_starting’)
set runtimepath+=~/.vim/bundle/neobundle.vim/
call neobundle#rc(expand(‘~/.vim/bundle’))
endifNeoBundle ‘git://github.com/Shougo/neobundle.vim.git’
NeoBundle ‘https://github.com/vim-scripts/pythoncomplete.git’
NeoBundle ‘https://github.com/vim-scripts/AutoComplPop.git’filetype plugin on
filetype indent on” color setting of popup
hi Pmenu ctermbg=15 ctermfg=0
hi PmenuSel ctermbg=8
hi PmenuSbar ctermbg=2
hi PmenuThumb ctermfg=3” color setting of comment syntax
hi Comment ctermfg=12set nu
syntax on
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent” pythoncmplete
autocmd FileType python set omnifunc=pythoncomplete#Complete