Skip to main content
8 events
when toggle format what by license comment
Oct 4, 2018 at 12:53 vote accept Vlastimil Burián
Jul 6, 2018 at 7:17 history edited Vlastimil Burián CC BY-SA 4.0
re-defined scope back to global + removed my "implementation" of FileReadable
Jul 5, 2018 at 14:31 comment added Luc Hermitte You could make your function support re-definition by banging them. Actually I wouldn't define s:BufferListFileReadable. I only define functions that overlap with builtin functions when there is a chance the end user may have a version of vim that doesn't implement that function. Also I would give a more generic name like: s:fileexists() more in sync with what it really does.
Jul 5, 2018 at 13:57 history edited Vlastimil Burián CC BY-SA 4.0
functions are taking arguments instead of using declared variable
Jul 5, 2018 at 13:40 history edited Vlastimil Burián CC BY-SA 4.0
limited scope of functions to the particular _vimrc + removed unnecessary parentheses around return statements
Jul 5, 2018 at 9:36 comment added Luc Hermitte So far I've never needed to make the distinction. The functions should: - take parameters instead of working with global variables - be non global, but defined in autoload plugins -- unless you always need them in your vimrc and never anywhere else - and BTW, return isn't a function, you don't need parentheses. - Forget '\\'. '/' always works with every OS.
Jul 5, 2018 at 9:28 history edited Vlastimil Burián CC BY-SA 4.0
deleted 11 characters in body
Jul 5, 2018 at 9:20 history answered Vlastimil Burián CC BY-SA 4.0