jimenezrick/vimerl — Issue #12: Man page retrieval on Ubuntu 11.10
Author: Pankrat
Created: 2011-12-17 20:32:41+00:00
State: open

The `erlang-manpages` package on Ubuntu 11.10 installs the Erlang man pages with filenames like that:

`/usr/share/man/man3/gen_server.3erl.gz`

However, the globbing in `erlang_complete.vim` is too restrictive to pick that up (the *erl* suffix of the extension). Replacing the `?` with the `*` wildcard fixes the problem:

```
@@ -132,7 +132,7 @@
let function_name = matchstr(element, a:base . '\w*')
let number_of_args = matchstr(element, '\d\+', len(function_name))
let number_of_comma = max([number_of_args - 1, 0])
-	let file_path = g:erlang_man_path . '/man?/' . a:module . '.?' . g:erlang_man_extension
+	let file_path = g:erlang_man_path . '/man?/' . a:module . '.*' . g:erlang_man_extension
let description = ''

" Don't look man pages if the module is present in the current directory
```

Cheers, Ludwig