Hi all!

I'm a total newbie when it comes to vimscript, but I'm trying to write a
little script that follow python import statements and locates the
corresponding files. I want to add these files to the quickfix list so I can
use :cc, :clist, etc to move between them. However, changing the quickfix
list seems to have no effect. To demonstrate the problem:

function! s:TestQF()
    let qflist = getqflist()
    call add(qflist, "test")
    call setqflist(qflist)
    echo qflist
    let qflist = getqflist()
    echo qflist
endfun

Gives the output:

['test']
[]

Anyone know what do do?

Thanks!
Per Thulin

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to