tao12345666333 / vim

My Vim configuration more Python, Javascript, Vue.js, Golang and Markdown, will add Haskell, Ruby and C/C++
http://moelove.info/vim
MIT License
566 stars 185 forks source link

hi, #16

Closed lfwin closed 7 years ago

lfwin commented 7 years ago

I am a beginners for vim, how to use this ide to write , debug, run python, could you give a tutorial about writing little python code on this ide. Many thanks

tao12345666333 commented 7 years ago

If you've learned the basic usage of Vim, you can configure it use https://github.com/tao12345666333/vim/blob/master/README.md#install.

After install, you can follow the instructions below to do something.

vim new_file.py

The Vim will auto insert header.

#!/usr/bin/env python
# coding=utf-8

When you save, it will auto lint code syntax, and show message on bottom. Or you can use \e to show all error message.

And you can run :PymodeRun to run this file, use :PymodeLintAuto to auto lint.

lfwin commented 7 years ago

:PymodeRun works, but seems it can not add parameters for running a script, such python add.py 3 2.

tao12345666333 commented 7 years ago

If you want to add some parameters to the script, you can use :!python add.py 3.2

lfwin commented 7 years ago

I already try this, but console window will cover the code script window, so not easy for me to debug without seeing the entire code block, or have to open another file to check, this is a little inconvenient.

tao12345666333 commented 7 years ago

@lfwin If you use Vim 8, there have a way to run code async, and it can open a window to show the run status and results. https://github.com/skywind3000/asyncrun.vim

lfwin commented 7 years ago

thanks very much