Vim MBPの.vimrcメモ

F5で&ft(RubyとかPython)のスクリプト実行とか

:set autoindent
:set number
:set showmode
:set title
:set showcmd
:set showmatch
:set laststatus=2

:syntax on
:set smartindent
:set expandtab
:set ts=4 sw=4 sts=0
:set ignorecase
:set smartcase
:set wrapscan

"myconf F5でRubyとかPythonのスクリプト実行
"ruby
function! s:Run()
    exe "!" . &ft . " %"
:endfunction
command! Run call <SID>Run()
map <F5>    :call <SID>Run()<CR>