OK
Dann ersetze ich meinen Code hier mal durch bla_blub_blas...!
Vim's Python Integration
So, nun bin ich fast zufrieden, hier mal meine vimrc:
Nur noch eine kleine Frage, vielleicht weiss einer ja Bescheid:
Ich möchte das mapping <F4> sowohl makeprg nur dann nutzen, wenn ich ein Python file öffne.
Kann man sowas machen, wenn ja wie denn?
Code: Alles auswählen
set guioptions+=f
colorscheme slate
set background=dark
set nocompatible
set shiftwidth=4
set tabstop=4
set expandtab
set textwidth=79
set makeprg=python\ -tt\ %
set number
set ruler
syntax on
filetype on
filetype indent on
filetype plugin on
nmap <F4> :Tlist<enter>
Ich möchte das mapping <F4> sowohl makeprg nur dann nutzen, wenn ich ein Python file öffne.
Kann man sowas machen, wenn ja wie denn?