Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -r 869a63c3f311 runtime/autoload/ccomplete.vim
- --- a/runtime/autoload/ccomplete.vim Wed Jun 13 19:19:41 2012 +0200
- +++ b/runtime/autoload/ccomplete.vim Wed Jun 20 10:37:50 2012 +0900
- @@ -500,7 +500,7 @@
- endif
- if !cached
- while 1
- - exe 'silent! ' . n . 'vimgrep /\t' . typename . '\(\t\|$\)/j ' . fnames
- + exe 'silent! keepj noautocmd ' . n . 'vimgrep /\t' . typename . '\(\t\|$\)/j ' . fnames
- let qflist = getqflist()
- if len(qflist) > 0 || match(typename, "::") < 0
- diff -r 869a63c3f311 runtime/autoload/phpcomplete.vim
- --- a/runtime/autoload/phpcomplete.vim Wed Jun 13 19:19:41 2012 +0200
- +++ b/runtime/autoload/phpcomplete.vim Wed Jun 20 10:37:50 2012 +0900
- @@ -89,7 +89,7 @@
- let ext_classes = {}
- let fnames = join(map(tagfiles(), 'escape(v:val, " \\#%")'))
- if fnames != ''
- - exe 'silent! vimgrep /^'.a:base.'.*\tc\(\t\|$\)/j '.fnames
- + exe 'silent! keepj noautocmd vimgrep /^'.a:base.'.*\tc\(\t\|$\)/j '.fnames
- let qflist = getqflist()
- if len(qflist) > 0
- for field in qflist
- @@ -270,7 +270,7 @@
- let ext_vars = {}
- if fnames != ''
- let sbase = substitute(a:base, '^\$', '', '')
- - exe 'silent! vimgrep /^'.sbase.'.*\tv\(\t\|$\)/j '.fnames
- + exe 'silent! keepj noautocmd vimgrep /^'.sbase.'.*\tv\(\t\|$\)/j '.fnames
- let qflist = getqflist()
- if len(qflist) > 0
- for field in qflist
- @@ -309,7 +309,7 @@
- " Prepare list of functions from tags file
- let ext_functions = {}
- if fnames != ''
- - exe 'silent! vimgrep /^'.a:base.'.*\tf\(\t\|$\)/j '.fnames
- + exe 'silent! keepj noautocmd vimgrep /^'.a:base.'.*\tf\(\t\|$\)/j '.fnames
- let qflist = getqflist()
- if len(qflist) > 0
- for field in qflist
- @@ -405,7 +405,7 @@
- let ext_vars = {}
- if fnames != ''
- let sbase = substitute(a:base, '^\$', '', '')
- - exe 'silent! vimgrep /^'.sbase.'.*\tv\(\t\|$\)/j '.fnames
- + exe 'silent! keepj noautocmd vimgrep /^'.sbase.'.*\tv\(\t\|$\)/j '.fnames
- let qflist = getqflist()
- if len(qflist) > 0
- for field in qflist
- @@ -476,7 +476,7 @@
- " Prepare list of functions from tags file
- let ext_functions = {}
- if fnames != ''
- - exe 'silent! vimgrep /^'.a:base.'.*\tf\(\t\|$\)/j '.fnames
- + exe 'silent! keepj noautocmd vimgrep /^'.a:base.'.*\tf\(\t\|$\)/j '.fnames
- let qflist = getqflist()
- if len(qflist) > 0
- for field in qflist
- @@ -513,7 +513,7 @@
- let fnames = join(map(tagfiles(), 'escape(v:val, " \\#%")'))
- let ext_constants = {}
- if fnames != ''
- - exe 'silent! vimgrep /^'.a:base.'.*\td\(\t\|$\)/j '.fnames
- + exe 'silent! keepj noautocmd vimgrep /^'.a:base.'.*\td\(\t\|$\)/j '.fnames
- let qflist = getqflist()
- if len(qflist) > 0
- for field in qflist
- @@ -591,7 +591,7 @@
- " OK, first way failed, now check tags file(s)
- let fnames = join(map(tagfiles(), 'escape(v:val, " \\#%")'))
- - exe 'silent! vimgrep /^'.object.'.*\$'.object.'.*=\s*new\s\+.*\tv\(\t\|$\)/j '.fnames
- + exe 'silent! keepj noautocmd vimgrep /^'.object.'.*\$'.object.'.*=\s*new\s\+.*\tv\(\t\|$\)/j '.fnames
- let qflist = getqflist()
- if len(qflist) == 0
- return ''
- @@ -624,7 +624,7 @@
- let fhead .= psep
- endif
- let fname = escape(fname, " \\")
- - exe 'silent! vimgrep /^'.a:classname.'.*\tc\(\t\|$\)/j '.fname
- + exe 'silent! keepj noautocmd vimgrep /^'.a:classname.'.*\tc\(\t\|$\)/j '.fname
- let qflist = getqflist()
- " As in GetClassName we can manage only one element if it exists
- if len(qflist) > 0
- diff -r 869a63c3f311 runtime/autoload/python3complete.vim
- --- a/runtime/autoload/python3complete.vim Wed Jun 13 19:19:41 2012 +0200
- +++ b/runtime/autoload/python3complete.vim Wed Jun 20 10:37:50 2012 +0900
- @@ -297,12 +297,12 @@
- str = ""
- if len(self.docstr) > 0: str += '"""'+self.docstr+'"""\n'
- for l in self.locals:
- - if l.startswith('import'): str += l+'\n'
- + if l.startswith('import') or l.startswith('from'): str += l+'\n'
- str += 'class _PyCmplNoType:\n def __getattr__(self,name):\n return None\n'
- for sub in self.subscopes:
- str += sub.get_code()
- for l in self.locals:
- - if not l.startswith('import'): str += l+'\n'
- + if not l.startswith('import') and not l.startswith('from'): str += l+'\n'
- return str
- diff -r 869a63c3f311 runtime/autoload/pythoncomplete.vim
- --- a/runtime/autoload/pythoncomplete.vim Wed Jun 13 19:19:41 2012 +0200
- +++ b/runtime/autoload/pythoncomplete.vim Wed Jun 20 10:37:50 2012 +0900
- @@ -315,12 +315,12 @@
- str = ""
- if len(self.docstr) > 0: str += '"""'+self.docstr+'"""\n'
- for l in self.locals:
- - if l.startswith('import'): str += l+'\n'
- + if l.startswith('import') or l.startswith('from'): str += l+'\n'
- str += 'class _PyCmplNoType:\n def __getattr__(self,name):\n return None\n'
- for sub in self.subscopes:
- str += sub.get_code()
- for l in self.locals:
- - if not l.startswith('import'): str += l+'\n'
- + if not l.startswith('import') and not l.startswith('from'): str += l+'\n'
- return str
Add Comment
Please, Sign In to add comment