New answers tagged

0

Almost all the proposed solutions try to execute or not execute the code if the plugin is loaded or not. But I think that what you want is to execute some action when the plugin gets loaded. So it is not a matter of not executing the code, but executing it at the right moment. According to Plug documentation, when the plugin is loaded an User event with the ...


2

I find a way myself -- a python module rpdb - remote debugger based on pdb. It works for me. Install using pip install rpdb Set breakpoint with rpdb.set_trace() in plugin python script. Try to active the plugin in vim. The vim will hang-up. Use telnet to connect the vim process. telnet localhost 4444. It will be same as pdb to use.


2

@Matt has already given a correct (and good) answer, but here's answer from someone who is old enough to have learned to love vi in it's original form, without fancy bits. I keep boring people stiff with this subject, so beware. Indentation discipline is, of course, a really good idea, as it helps the eye see how the code is structured, logically. And it is ...


8

Let's start from the beginning. There are quite a few (local to buffer) options in Vim to work with indenting. autoindent is the most basic setting; it simply makes a new line to have an equivalent number (influenced by copyindent and preserveindent options) of leading spaces/tabs as in a previous line; smartindent is a "lightweight" thing for a C-like ...


Top 50 recent answers are included