itchyny / vim-qfedit Goto Github PK
View Code? Open in Web Editor NEWEdit the quickfix/location list freely
License: MIT License
Edit the quickfix/location list freely
License: MIT License
Hi,
I saw this plugin and am happy to try it out.
Thank you for awesome lightline.
So I installed this via Vundle, but my quickfix window is still not modifiable.
If I manually go to qf win and then :set ma all is ok, but I wanted to find a way to make it modifiiable always.
Any idea how I can help debug ?
I tried removing a few other plugins related to qf, but I still have the same problem.
thx for any help or suggestion,
-m
Problem:
vim-qfedit with "quickfix auto open" together, it dose not work.
Reproduction:
Start vim
gvim -u -N .vimrc
and exec 2 ex command
:autocmd BufReadPost quickfix echom 'call autocmd'
:autocmd QuickFixCmdPost vimgrep cwindow
when start :vim
(ex vim set %
), and then message
check.
Result:
Do not echo 'call autocmd'
Workaround:
When occur it, qf open/close toggled, then vim-qfedit work fine.
I hope fix it.
Suggestion, use autocmd Filetype qf
are solved it?
As title. Could you explain each step too?
In help documentations, gO
shows an outline of the buffer (Only Neovim supports this). But current qfedit seems to break this function.
Though pressing gO
creates a new quickfix buffer, it shows nothing.
cd /tmp
git clone https://github.com/itchyny/vim-qfedit
echo 'vim.opt.rtp:append("/tmp/vim-qfedit/")' > init.lua
nvim -u /tmp/init.lua
then
:help vim
finally type gO
nvim --version
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1703358377
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.5/share/nvim"
Run :checkhealth for more info
and
NVIM v0.10.0-dev-2398+gcc15ba212-Homebrew
Build type: Release
LuaJIT 2.1.1703358377
Run "nvim -V1 -v" for more info
Thanks for the great plugin.
" minimal.vimrc
" add vim-qfedit to runtimepath
set packpath=$HOME/pack_minimal
packadd vim-qfedit
The string should be displayed at location list.
Nothing is displayed.
windows 10
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug 16 2021 22:02:45)
MS-Windows 64 ビット GUI 版 with OLE サポート
適用済パッチ: 1-3356
Compiled by appveyor@APPVYR-WIN
I noticed this behavior when using vim-lsp, vim-lsp-setting and vim-qfedit
" minimal2.vimrc
" add vim-lsp, vim-lsp-setting and vim-qfedit to runtimepath
set packpath=$HOME/pack_minimal
packadd vim-lsp-settings
packadd vim-lsp
packadd vim-qfedit
filetype plugin indent on
syntax enable
" err.rb
r = r + hoge "11"
This behavior may be caused by the following that vim-lsp sets the location list to a string containing zero bytes, but vim-qfedit compares with a string in which zero bytes are excluded.
This plugin checks the file existence in quickfix lists on moving in the window.
In searching relative path, the entries can unexpectedly removed.
Search files for relative path:
:tcd ~/.vim/bundle/vim-qfedit
:e ./
:grep! vim-qfedit **/*.md
:below copen
" +----------------------------------------+
" | |
" | netrw : at ~/.vim/bundle/vim-qfedit |
" | |
" +----------------------------------------+
" | |
" | quickfix : at ~/.vim/bundle/vim-qfedit |
" | |
" +----------------------------------------+
The quickfix window contents are as below:
README.md|1| # vim-qfedit
Then, change the working dir and grep
again:
:1 wincmd w
:e ../
:cd ../
:grep! vim-qfedit **/*.md
" +----------------------------------------+
" | |
" | netrw : at ~/.vim/bundle |
" | |
" +----------------------------------------+
" | |
" | quickfix : at ~/.vim/bundle/vim-qfedit |
" | |
" +----------------------------------------+
Then, the quickfix window contents change as below:
vim-qfedit/README.md|1| # vim-qfedit
Now, the quickfix window has different working dir from the grep
execution.
So, on entering in the quickfix window, the plugin removes the relative path entries.
: wincmd w
" Then, the quickfix win entries disappear.
" From quickfix win working dir `~/.vim/bundle/vim-qfedit`,
" the relative path `vim-qfedit/README.md` does not exist.
When I have the option 'quickfixtextfunc'
set and try to delete a line the quickfix buffer clears entirely.
When I run some fugitive command (:0Gclog
for example), the quickfix list is cleared when it gets focused.
For reproduce:
Just run any command from fugitive (or dispatch.vim) (:0Gclog
, :Dispatch
, :Glog
) that feeds the quickfix list and focus on the quick fix window.
The problem not happens when the quickfix was feed manually nor with those commands above with this plugin disabled.
Thank you for the plugin.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.