Re: col() in insert mode
- KONTRA Gergely wrote:
>Try something like this:
> >> Can anybody tell me how to get the cursor position in insert mode?
> >> The problem is the last column. When after and before the last column,
> >> the returned value is the same. :(
> > Did you try <C-R>=col(".")<CR> ?
> What if I must issue a normal command after getting this column number?
> I see no way to do this ;(
> I mean no easy way...
where you have defined Foo() already,
let c = col(".")
" Do stuff with c
HTH --Benji Fisher