vim-qf-preview : Preview the location of a quickfix item in a popup window
script karma |
Rating 0/0,
Downloaded by 249 |
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. |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.119.0.207
|