forked from openuado/vimtips-fortune
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
18 lines (12 loc) · 674 Bytes
/
Copy pathREADME
File metadata and controls
18 lines (12 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
vimtips is a project to use fortune software to view vimtips.
The vimtips file is a text file with the format of fortune command.
You have to generate a index file like this :
$ strfile vimtips vimtips.dat
and then copy the two files (vimtips ans vimtips.dat) to a directory that
fortune scan (/usr/share/fortunes/ or /usr/share/games/fortunes/).
To have a tips when you launch vim, insert the next line in your vimrc :
au VimEnter * echomsg system('/usr/bin/fortune vimtips')
or if you want a tips when you are in vim :
:echomsg system('/usr/bin/fortune vimtips')
Notice, if you are a debian user, the fortune is located in /usr/games/,
not in /usr/bin/.