3 # Simplified version of http://www.vim.org/scripts/script.php?script_id=2184
4 # that does not replace current window
7 var file = bufname("%")
8 if filereadable(file) | return | endif
9 var names = matchlist(file, '\(.\{-1,}\):\%(\(\d\+\)\%(:\(\d*\):\?\)\?\)\?$')
10 if empty(names) | return | endif
11 var fileName = names[1]
12 var lineNum = names[2] == "" ? "0" : names[2]
13 var colNum = names[3] == "" ? "0" : names[3]
14 if !filereadable(fileName) | return | endif
16 execute "keepalt edit +" .. lineNum .. " " .. fileName
17 execute "normal! " .. colNum .. "|"
18 execute "bdelete " .. nr