diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-22 17:08:05 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-22 17:08:05 +1200 |
commit | d7adb2669ba7ce9ff628c2c7d293262df562d179 (patch) | |
tree | 5f0e4788f77abe6e97986e2980f5ac19ba868fd4 /vim/plugin | |
parent | Round out and apply alternate filetypes plugin (diff) | |
download | dotfiles-d7adb2669ba7ce9ff628c2c7d293262df562d179.tar.gz dotfiles-d7adb2669ba7ce9ff628c2c7d293262df562d179.zip |
Use <Plug> mapping for :Fortune
Diffstat (limited to 'vim/plugin')
-rw-r--r-- | vim/plugin/fortune.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/plugin/fortune.vim b/vim/plugin/fortune.vim index e800bfee..9355f1b0 100644 --- a/vim/plugin/fortune.vim +++ b/vim/plugin/fortune.vim @@ -1,6 +1,9 @@ command! -bar Fortune \ call fortune#() +nnoremap <silent> <Plug>(Fortune) + \ :<C-U>Fortune<CR> + function! s:FortuneVimEnter() abort if !argc() && line2byte('$') == -1 try | Fortune | catch | endtry |