On 2009-08-14, Hari Krishna Dara wrote:
> I have now published this as a new plugin at vim.org called "Notes":
> 
> http://www.vim.org/scripts/script.php?script_id=2732
> 
> I would appreciate any feedback. Here is the description from the script page:

I downloaded and unzipped your latest version, 1.8.

>   Settings:
>   - g:notesRoot - Sets the root directory path. Required for the plugin to
>                   load.

I did that, and set it to $HOME/Notes.

However, when I start vim I get all these error messages on the
screen:

    Error detected while processing /home/garyjohn/.vim/plugin/notes.vim:
    line   97:
    E492: Not an editor command: ^M
    line  100:
    E15: Invalid expression: &cpo^M
    line  101:
    E488: Trailing characters: cpo&vim^M
    line  102:
    E492: Not an editor command: ^M
    line  103:
    E15: Invalid expression: exists('loaded_notes')^M
    line  162:
    E488: Trailing characters
    line  165:
    E171: Missing :endif

I think the problem may be that you zipped those files with DOS line
endings and that makes vim on Linux unhappy.

    $ file plugin/notes.vim autoload/notes.vim 
    plugin/notes.vim:   ASCII English text, with CRLF line terminators
    autoload/notes.vim: ASCII English text, with CRLF line terminators

I fixed that using dos2unix.  No more errors, but I do get this
message:

    notes: You need a newer version of genutils.vim plugin

OK.  I have version 1.18.3.  I downloaded and installed the latest,
2.4.  Now I get:

    Notes: Configured root doesn't exist or is not a directory:$HOME/Notes

OK.  Executed "mkdir ~/Notes".  Started vim again.  Same error.
Changed g:notesRoot to "~/Notes".  Similar error:

    Notes: Configured root doesn't exist or is not a directory:~/Notes

Changed g:notesRoot to full path name, "/home/garyjohn/Notes".  No
more messgaes.  I think this is a bug, or at least a shortcoming:
the user should be able to specify ~ or $HOME without having to
expand it himself.

I haven't used it very much yet, but it looks great so far.  One
thing that I think might be a good enhancement:  use :startinsert to
open new notes files in insert mode rather than making the user type
a or i first.

Thanks for doing this.

Regards,
Gary



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui