nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
misc/vim: inform the user when no results are found
[nit.git]
/
misc
/
vim
/
plugin
/
nit.vim
diff --git
a/misc/vim/plugin/nit.vim
b/misc/vim/plugin/nit.vim
index
2fe79d0
..
86d5e45
100644
(file)
--- a/
misc/vim/plugin/nit.vim
+++ b/
misc/vim/plugin/nit.vim
@@
-318,6
+318,7
@@
fun Nitdoc(...)
" Found no doc, give up
if empty(docs) || !(join(docs, '') =~ '\w')
+ echo 'Nitdoc found nothing for "' . word . '"'
return
endif
@@
-334,6
+335,8
@@
fun Nitdoc(...)
silent put = ''
endif
endfor
+ execute 0
+ delete " the first empty line
" Set options
setlocal buftype=nofile