-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1de699d
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
This is a mirror of http://www.vim.org/scripts/script.php?script_id=10 | ||
|
||
This macro will add a signature (from | ||
~/.fortunes) to the end of a file. | ||
(preferably an e-mail) This script | ||
was copied from a macro from: | ||
http://www.moolenaar.net which was | ||
made by Bram Moolenaar. I changed it | ||
so it would stick on the sig then | ||
quit. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
" ZZ..................Add a fortune and advance to the next one then quit editor | ||
" :sp ~/.fortunes<CR>.open a window on ~/.fortunes | ||
" d/^--/<CR>..........delete until the next line starting with "--" | ||
" Gp..................Go to the end and put the just deleted text there | ||
" :wq<CR>.............Write the ~/.fortunes file and close the window | ||
" GA<CR><Esc>.........go to the end Add an empty line | ||
" p...................put the fortune text | ||
" :x<CR>..............quit the editor | ||
|
||
map ZZ :sp ~/.fortunes<CR>d/^--/<CR>Gp:wq<CR>GA<CR><Esc>p:x<CR> |