vim-qf-preview : Preview the location of a quickfix item in a popup window
| script karma
Downloaded by 29
Comments, bugs, improvements
script versions (upload new version)
|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.
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:
autocmd FileType qf nmap <buffer> p <plug>(qf-preview-open)
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.
|Run the following commands in the terminal:
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.
Click on the package to download.
ip used for rating: 188.8.131.52