Re: .vimrc from URL
A.J.Mechelynck wrote: Charles E Campbell Jr wrote: OK, with all that: vim -U NONE -c "set nocp|so $HOME/.vim/plugin/netrwPlugin.vim" -c "so scp://HOSTNAME/.vimrc" Rather than "-U NONE" (i.e., no gvimrc) shouldn't that be -u NORC (i.e., with small u: don't source $HOME/.vimrc but do source the global plugins)? I suggest the amended command-line below (with --cmd for early sourcing): vim -u NORC -N --cmd "runtime plugin/netrwPlugin.vim" --cmd "source scp://HOSTNAME/.vimrc" Sounds better! I'll put a note to that effect in pi_netrw.txt. Regards, Chip Campbell
vim and mlcscope
Hello, The cygwin packages allow the installation of vim and mlcscope. I had problems with vim hanging when trying to use the cscope interface. The problem was that vim is that is expecting the first line of the returned output to be "cscope: X lines" while mlcscope returns "mlcscope: X lines". The patch updates how to match the token in this line, instead of being exactly "cscope:", it'll match any token containing "cscope:". I'd like to note that changing the mlscope executable to cscope will also change its outpout to "cscope:", but on the system I was part-of this was a sub-optimal solution. --Frodak --- if_cscope.c (revision 199) +++ if_cscope.c (working copy) @@ -630,7 +630,7 @@ */ if ((stok = strtok(buf, (const char *)" ")) == NULL) continue; - if (strcmp((const char *)stok, "cscope:")) + if (strstr((const char *)stok, "cscope:") == NULL) continue; if ((stok = strtok(NULL, (const char *)" ")) == NULL) It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/
Re: vim and mlcscope
Frodak wrote: > Hello, The cygwin packages allow the installation of vim and > mlcscope. I had problems with vim hanging when trying to use the > cscope interface. The problem was that vim is that is expecting the > first line of the returned output to be "cscope: X lines" while > mlcscope returns "mlcscope: X lines". The patch updates how to match > the token in this line, instead of being exactly "cscope:", it'll match > any token containing "cscope:". > > I'd like to note that changing the mlscope executable to cscope will also > change its outpout to "cscope:", but on the system I was part-of this was a > sub-optimal solution. > > --Frodak > > --- if_cscope.c (revision 199) > +++ if_cscope.c (working copy) > @@ -630,7 +630,7 @@ > */ > if ((stok = strtok(buf, (const char *)" ")) == NULL) > continue; > - if (strcmp((const char *)stok, "cscope:")) > + if (strstr((const char *)stok, "cscope:") == NULL) > continue; > > if ((stok = strtok(NULL, (const char *)" ")) == NULL) Makes sense. Can you please tell me your full name? -- I have a drinking problem -- I don't have a drink! /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ ///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\download, build and distribute -- http://www.A-A-P.org/// \\\help me help AIDS victims -- http://ICCF-Holland.org///
Re: vim and mlcscope
Maybe it would be a bit safer if we checked that stok ends with "cscope:" rather than contains? --- if_cscope.c (revision 199) +++ if_cscope.c (working copy) @@ -630,7 +630,7 @@ */ if ((stok = strtok(buf, (const char *)" ")) == NULL) continue; - if (strcmp((const char *)stok, "cscope:")) + if (strstr((const char *)stok, "cscope:") == NULL) continue; if ((stok = strtok(NULL, (const char *)" ")) == NULL)