thanks. I've found iskeyword within sources, currently testing. the only problem exists is:
after similar piece of code: def test? .... end if !test? .... end there are 2 completions: test? and !test? it would be nice if it would have some rules based on character position too, because ? and ! may be only in the end of the function. I'm thinking about writing my own omni-completion for ruby, because standard has problem with this ? and !. 2009/2/10 Tony Mechelynck <[email protected]> > > On 09/02/09 08:34, naquad wrote: > > Hello. > > > > I've took default complete (c-x c-n) and wrote for it a wrapper which > > triggers on specific conditions > > (pretty stupid: simply adding ,k<path> to &l:complete) and stuck on the > > problem with ruby's methods > > names: they can have ? or ! on the end, but complete doesn't add them :( > > how do I make it see those ? and ! signs? > > > > Regards, Daniel Fort. > > You might try adding > > :setlocal isk+=!? > > if it doesn't play havoc with other behaviour. Place that line in > ~/.vim/after/ftplugin/ruby.vim (for Unix/Linux) or > ~/vimfiles/after/ftplugin/ruby.vim (for Windows) and create the file > and/or its directories if they don't yet exist. > > > Best regards, > Tony. > -- > "I used to get high on life but lately I've built up a resistance." > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
