I often draw vectors, that are half full and half dashed (the other part of vector is "invisible" (see MWE below). Usually I draw two lines separately (I don't know any other method).
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[very thin] (0,-1) -- (0,1);
\draw[ultra thick] (-2,0) -- (0,0);
\draw[ultra thick,dashed,->] (0,0) -- (2,0);
\end{tikzpicture}
\end{document}
The problem is that the second part always starts with line and I would like it to start with space. How can I do that? I tried to define new style with \tikzset{mydashed/.style={dash pattern=off 3pt on 3pt}}, but it does not work.
Please tell me, what to do?





