[clug-talk] vim editor
Andrew J. Kopciuch
akopciuch at bddf.ca
Tue Aug 22 13:13:50 PDT 2006
> I tried man vim to figure it out but was unable to figure out what the
> man pages were saying and could find no reference to showing current
> line number while in insert mode and showing file name while in insert
Using vim 6 yes?
The man page won't be of any help for this issue.
I'm not sure of a way to do this with vim 6. You can have them static (ie ...
not just in insert mode) easily :
Vim 7 is really new, and not rolled by default into distributions ... but if
you install it ... I think this will work for what you want :
Possibly also need :
autocmd InsertLeave * call s:LeaveInsert()
autocmd InsertEnter * call s:EnterInsert()
But i see some people say that is not needed. Although I have not tested
The issue is that the InsertEnter, InsertLeave events were not available in
vim6 ... so I do not see an easy way to do this ... You can't remap vim
commands (like 'i'), so how do you capture the insert mode switch? I do not
see a way.
give vim 7 a go.
More information about the clug-talk