Skip to content

Instantly share code, notes, and snippets.

@paradigm
Created March 28, 2012 13:35
Show Gist options
  • Save paradigm/2226231 to your computer and use it in GitHub Desktop.
Save paradigm/2226231 to your computer and use it in GitHub Desktop.
function! JumpToString(string)
for l:buffer_number in range(1,bufnr("$"))
if buflisted(l:buffer_number)
if join(getbufline(l:buffer_number,1,"$")) =~ a:string
exec "b . " . l:buffer_number
endif
endif
endfor
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment