0

i am using vim for coding on remote server and i have html, js, css, py and php script that i use and for the php and py i want to be able to map a ctrl key to validate them.

i would like to map ctrl_p to a php -l for php script and "pylint" for python

right now i have this:

map <C-P> :!php -l %<CR>

how to check what file i have to run

pylint on .py files

and

php -l on php files

with 1 key map?

Erik
  • 61
  • 7

0 Answers0