Thanks,
Its working!
I will contact codecomplete developer
On Thu, 2012-09-20 at 10:00 -0700, Ben Fritz wrote:
> On Thursday, September 20, 2012 3:04:09 AM UTC-5, rudra wrote:
> > Two question:
> >
> > 1) I am completely on linux, and have no connection with MS-dos or any
> > other OS. So I dont know how that appeared.
> >
> > 2) The yellow boxes only comes when I press <F7> tab, as a map for code
> > complete.
> >
> > If I do a :%s/^M//g, those yellow box goes away, but if I hit <F7> again,
> > it appears. Which, probably suggests that F7 has a extra map for searching
> > pattern.
> >
>
> The fortran_complete plugin you're using includes this line:
>
> vim.command('s/$/\x0D\x0D/') # insert two lines
>
> This probably explains the highlight showing up, since the command given will
> set the last search pattern to match whatever is at the end of a line.
>
> As for the ^M characters getting inserted, I don't know what would cause
> that. I wonder if maybe the same vim.command in python is having problems
> with the hex values in the replacement string. I THINK that command is
> basically causing Vim to do s/$/^M^M/ which SHOULD work, but it's better
> written as s/$/\r\r/ which would not have any literal byte values in it. I
> don't know python, but I imagine this would accomplish the latter:
>
> vim.command('s/$/\\r\\r/') # insert two lines
>
> Then you can turn off highlight after the new command:
>
> vim.command('nohls') # suppress search highlight
>
> Maybe you can make that modification, restart Vim, and see what happens. If
> it fixes your problem, you should contact the plugin maintainer with your
> changes. Otherwise...I have no idea what might be going on.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php