Was genau ist eigentlich der Unterschied zwischen einem eingebetten Interpreter und einem Terminal mit Interpreter neben dem Editor? :-)
Dann will ich hier auch mal ein paar Ausschnitte aus meiner Vim-RC posten, die ganze Version gibts auf GitHub (siehe Signatur):
Code: Alles auswählen
set scrolloff=99999
fu! _filetype()
if &ft != 'python'
if &ft == ''
return ''
else
return '[' . &ft . ']'
endif
elseif exists("w:PHStatusLine")
return ' ' . w:PHStatusLine
else
return ''
endif
endfunction
set statusline=%f\ %h%m%r%w%{_filetype()}%*%=\ pos:\ %l\/%L,%c%<\ \|\ asc\ %b/0x%B\ \|\ %P
set laststatus=2
" switch tabs with Ctrl-{j,k}
noremap <C-K> <C-PageDown>
inoremap <C-K> <C-PageDown>
noremap <C-J> <C-PageUp>
inoremap <C-J> <C-PageUp>
" switch windows with Ctrl-{h,l}
map <C-h> <C-w>h
map <C-l> <C-w>l
" Better Search
set hlsearch
set incsearch
set ignorecase
set smartcase
nnoremap <silent> <C-l> :nohl<CR><C-l>
" Highlight column 81
set colorcolumn=81
highlight ColorColumn ctermbg=darkgrey
" Remember cursor position after reload
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
" go with smartindent if there is no plugin indent file.
" but don't outdent hashes
inoremap # #
" Python!
autocmd FileType python setlocal
\ formatoptions+=croq " c+r+o+q
\ cinwords=if,elif,else,for,while,try,except,finally,def,class,with
\ complete+=k~/.vim/syntax/python.vim isk+=.,(
let python_highlight_all = 1
Das Statusline-Gewurschtel ist leider total unleserlich, beschert mir aber eine recht informative Statusleiste: