On Dec 28 2009, 10:56 am, Steven Woody <[email protected]> wrote: > Hi, > > In the quickfix window (opened by :cw), I hit a ENTER on an item and > the cursor jumps to the main window, this is fine in some cases. But > what do I do if I want the cursor stay on the quickfix window and just > like to see the contents of the other window changes? >
Hi, You may be interested in a plugin that is a part of the vimuiex project. When the filetype of a buffer is set to 'qf' (QuickFix), two new mappings are added to the QuickFix buffer: <space> - preview the current item in a preview window <cr> - close the preview window and jump to current item (Mappings may become configurable in a future release.) Use :copen to display the QuickFix buffer. Since this is part of the VxLib library, python is not required and also the patch that is needed for vimuiex need not be applied. You only need to install vimuiex.zip from: http://www.vim.org/scripts/script.php?script_id=2606 Marko ------ Some code from vxlib#cmd " /plugin autocmd FileType qf call vxlib#cmd#PrepareQFixPreview() " /autoload function! vxlib#cmd#ShowQFixPreview() let lnn = line('.') let pos = getqflist()[lnn-1] call vxlib#cmd#PreviewLine(pos['bufnr'], pos['lnum']) endfunc function! vxlib#cmd#PrepareQFixPreview() nmap <silent> <Space> :call vxlib#cmd#ShowQFixPreview()<CR> nnoremap <silent> <CR> :pclose<CR><CR> endfunc
-- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
