in python is frequently I use self. string.
I think in a vim iabbrev similar to this
ia S self.
but for use this is necesary
S<space><bs>var
for get
self.var
how I can implement this idea ?
and only work when the S is the first char of word
Edit I found problems with my first response (e.g. when typing
print(s.someprop)it wouldn’t expand, since abbr. ofs.is a so-called non-id abbreviation).Even simpler would be:
In that case, you would only have to apply a trick to type a lone
S: SC-v…