GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - michaelb/vim-tips: Short plugin to display tips at startup

BranchesTags
Open more actions menu

Latest commit

 

History

84 Commits
84 Commits

Folders and files

NameName
Last commit message
Last commit date
plugin
plugin
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
convert_file_to_vim_list.py
convert_file_to_vim_list.py
 
 
example.png
example.png
 
 

Repository files navigation

Vim-Tips

A simple plugin that display a tip at startup, no configuration required

Installation

Use your favorite plugin manager; ex vim-plug:

Plug 'michaelb/vim-tips'

vim-tips should be, vim (incl <8), neovim, linux, macOS and windows compatible

Usage

vim-tips prints a message in the command area at startup.

However, you can request tips by calling the function GetTip() to get a string value usable in vimscript. Ex:

let tip = GetTip()
echo tip

Don't forget to load vim-tips beforehand if necessary (you need it at startup) by preceding calls to GetTip() by a runtime plugin/vim-tips.vim

Add tips to vim-startify (courtesy of R0LA1mRifcF8yAkk)

To display a tip (and not a quote) in your vim-startify you can include the following in your config file:

let g:startify_custom_header = 'startify#pad([GetTip()])'

You'll probably also want to deactivate the basic tip display at startup.

Important note

If you are using an autoload session restore (from mksession) it displays a message and therefore hide the vim-tips message.

Your own mappings (deprecated for now, didn't work very well anyway)

vim-tips reads from your vim/neovim config file and displays the lines it recognizes.

For example; nnoremap gd :ALEGoToDefinition will display the tip "Config => gd :ALEGoToDefinition (normal mode)".

If you'd like to display tips more often (and see less mappings from your own config file), you can adjust the tips frequency via let g:vim_tips_tips_frequency=0.5 (with a value between 0.0 and 1.0, higher value increase tips frequency)

Hiding the message at startup

You can specify let g:vim_tips_display_at_startup=0 (default :1) to not have a message displayed at startup. You can then get tips by using the GetTip() function

##Special thanks

To @R0LA1mRifcF8yAkk and @Kamilcuk who have opened so many relevant issues, and helped me catch edge cases and suggested improvements.

About

Short plugin to display tips at startup

Resources

Readme
MIT license
Activity

Stars

26 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.