sponsor Vim development Vim logo Vim Book Ad

vim-qf-preview : Preview the location of a quickfix item in a popup window

 script karma  Rating 0/0, Downloaded by 29  Comments, bugs, improvements  Vim wiki

created by
foo bar
 
script type
utility
 
description
A plugin for the quickfix and location list window to quickly preview the location of the quickfix item under the cursor in a popup window.

Usage:

To avoid conflicts with other plugins no default key mappings for opening the popup window are provided. You will first have to bind <plug>(qf-preview-open) to a key-sequence of your choice.

For example, to open the popup window with p, add the following to ~/.vim/after/ftplugin/qf.vim:

    nmap <buffer> p <plug>(qf-preview-open)

Or alternatively, if you prefer to keep your plugin settings in your vimrc:

    augroup qfpreview
        autocmd!
        autocmd FileType qf nmap <buffer> p <plug>(qf-preview-open)
    augroup END

Now navigate the cursor in the quickfix window to the desired quickfix item and press p to open a popup window with the file containing the error. The window is scrolled such that the buffer line with the error is at the top of the popup window.

https://github.com/bfrg/vim-qf-preview
 
install details
Run the following commands in the terminal:

    cd ~/.vim/pack/git-plugins/start
    git clone https://github.com/bfrg/vim-qf-preview
    vim -u NONE -c 'helptags vim-qf-preview/doc | quit'

Note: The directory name git-plugins is arbitrary, you can pick any other name. For more details see :help packages. Alternatively, use your favorite plugin manager.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-qf-preview.tar.gz 1.0 2021-07-23 8.1 foo bar Initial upload
ip used for rating: 3.215.177.171

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
OSDN