Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 558019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:05:16+00:00 2026-05-13T12:05:16+00:00

I am working in a Vim script. One of my functions needs a temporal

  • 0

I am working in a Vim script. One of my functions needs a temporal display like the one you get when typing “:clist“. I don’t want a whole new buffer since I am so lazy that I prefer typing just one key to delete the info.

I am stuck with the syntax highlighting of the echo command. I want to apply a whole syntax file but so far I’ve just seen “:echohl” and with that I can only apply one syntax rule. I’ve tried a syntax cluster but that does not work either.

Is “:echohl” and syntax clusters the right way to go?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:05:17+00:00Added an answer on May 13, 2026 at 12:05 pm

    I’m not sure whether you’ll manage to do this with echo and the message list.

    A good way of going about this would be to create a new buffer and put the stuff you’re interested in into that buffer. Then set the buffer to be nomodifiable, nomodified and buftype=wipe. If you need to add more data to the buffer, set modifiable, add the data and then set noma nomod bh=wipe. Set the filetype to something custom and write a syntax file for your required syntax.

    Set the buffer name to something specific for your requirements.

    Finally, map a keyboard shortcut or command to something like:

    map @ :exe 'bufdelete' bufnr('MyBufferName')<CR>
    

    This will make the @ key close the buffer (thereby providing you with a single key method of deleting the info). You could, of course, improve this by sticking it in a function and checking that the buffer exists before deleting it, but I’ll leave that as an exercise for you for now (let me know if you have any problems).

    An existing plugin that does something fairly similar to this is Dr Chip’s RunView plugin. Have a look at the source code and see if it helps. Add a comment to this post if you need any more help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to get slimv (http://www.vim.org/scripts/script.php?script_id=2531) working for a while now, but
Could you help me get plugins working for either macvim or the terminal vim?
I am trying to get makeprg and errorformat working with VIM and jslint, and
I'm trying to get up and working with vim with ruby on rails and
I'm working on moving my whole vim config to my Dropbox folder in order
I am trying to get AStyle working with Vim so that I can use
I'm new to vim and wanted to get ctags integration working so I can
While I am working in Vim I'd like to have a slight background color
I'm cleaning up someone else's code and working with vim. I'd like to reflow
I've been working on expanding my vim-foo lately and I've run across a couple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.