Skip to content

Instantly share code, notes, and snippets.

@dahu
Created March 3, 2015 22:36
Show Gist options
  • Select an option

  • Save dahu/70067fd26f007ca00b0a to your computer and use it in GitHub Desktop.

Select an option

Save dahu/70067fd26f007ca00b0a to your computer and use it in GitHub Desktop.
rudrab's ListMods()
if ! exists('g:modpath')
let g:modpath = 'src,,.'
endif
func! ListMods()
call complete(col('.'), map(globpath(g:modpath, '*.f90', 0, 1), 'fnamemodify(v:val, ":t:r")'))
return ''
endfunc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment