Charles E Campbell Jr schrieb: > Hello! > > Vim is often quite forgiving of user blunders. However, for plugin > development, I'd rather it be more strict. I have a tendency of trying > bufnr("."), for example, when I should use bufnr("%"). The strange > thing is is that it seems to work on occasion (but erratically). I've > found other bugs in the past that vim glides over, but that makes it > difficult to find them. > > How about an errorstop option: > > 'errorstop' 'es' boolean (default: off) > local to window > {not in Vi} > > This option makes Vim strict with respect to any errors, warnings, > etc., when running a script. > Vim will immediately terminate the script with E???. > > Regards, > Chip Campbell
Also helpful: :h 'debug :set debug=msg :echo bufnr(".") E94: No matching buffer for . -1 -- Andy --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---