1

Is there a way to highlight variables, function arguments and function calls in python files in vim. I have tried multiple syntax files for python but i guess none of it worked for me.

I guess highlighting variables, and function arguments can make code more readable and clear for me. So is there a way to implement this ? I viewed lot of related questions and most of them focus on highlighting just self which isn't really i am asking in this case.

enter image description here

I am using Neovim 03.2 and also tried with Vim 7.4.

5
  • what version of vim you're using..? Commented Sep 14, 2018 at 4:49
  • Just edited the question. Commented Sep 14, 2018 at 4:54
  • @FendiD can i ask the reason for which you downvoted the question ? Commented Sep 14, 2018 at 6:17
  • i didnt downvote you. .thats not me. . Commented Sep 14, 2018 at 7:01
  • @Rohit, does it solved your problem? Commented Sep 19, 2018 at 1:54

1 Answer 1

1

I use Semshi with neovim.

With Semshi

With Semshi

Without Semshi

Without Semshi

Sign up to request clarification or add additional context in comments.

2 Comments

If this solved your problem, do accept it as an answer.
I too tried using it and it works well for syntax highlighting but it has some annoyances like highlighting all matches occurrences within the same node..

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.