New answers tagged

0

Now it looks laike this: filetype plugin on map <F5> :call RunPython()<CR> function! RunPython() exec "w" if &filetype == 'python' if search("@profile") exec "AsyncRun kernprof -l -v %" elseif search("set_trace()") exec "!~/.anaconda/bin/python %"...


1

Remove the lines that open the quickfix list (:copen). Aside—if you use :execute for simple Ex commands, it’s usually enough to do just the command (so just :copen, :wincmd p, etc.). Even the colon’s aren’t necessary in most places.


0

filetype plugin on map <F5> :call RunPython()<CR> function! RunPython() exec "w" if &filetype == 'python' if search("@profile") exec "AsyncRun kernprof -l -v %" elseif search("set_trace()") exec "!~/.anaconda/bin/python %" else ...


Top 50 recent answers are included