1 Feb 2009 10:12
[TOY PATCH]: todo.txt:8 For ":find" and ":sfind" expand files found in 'path'
Nazri Ramliy <ayiehere <at> gmail.com>
2009-02-01 09:12:11 GMT
2009-02-01 09:12:11 GMT
Hello all, That entry in todo.txt has been the source of my itch for quite some time. I had resorted to writing custom zsh command line completion for completing files found in my .vimrc path setting to start vim with. That means to comfortably find and edit any file in my path setting I have to drop down to the command line. With this patch that the itch is gone, at least for me. What works: expanding files found in path for simple path settings (absolute and relative) What does not work: it does not grok path_extra-specific thingy. I'm sure I have overlooked hundreds of issues while patching it hence the 'TOY PATCH' :) The patch is against the latest pull from repo.or.cz's vim repository. Patch it with -p1 from your ~/src/vim. nazri. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---(Continue reading)
as it happens in vim.
How to reproduce:
- Have two files which differ, e.g. each contains a single but different line
(eg., see attached files 'text' and 'text-new')
- Create patch:
$ diff text text-new > patch
- Start vim with the newer file
./vim-7.2 -u NONE -U NONE -i NONE --noplugin -N -g text-new
- in gvim, try to apply patch file:
:diffpatch patch
Result is empty file instead of (reversely) patched file because gvim does not
allow me to answer patch questions 'Assume -R?' and 'Apply anyway?'.
Note, the bug only appears if gui (-g) AND non-compatible mode (-N) are enabled.
If not in gui mode, the bug never appears (either compatible or non-compatible
RSS Feed