Bram,
can we please change the default for wildmode from "full" to 
"list:longest,longest:full"?

Rationale: I have been working lately on a system with many files laying 
around with complex names across a complex directory structure. On that 
system I did not have my current vimrc config files around, only using 
the vim that comes with git-bash.

However since I need to edit specific files it drives me actually nuts, 
that the filename completion will complete to some random files and 
there is no easy way to go back to the uncompleted typed filename so I 
have to smash backslash until I find from where to correct the pattern 
(plus one actually has to stare at the completed filename pattern and 
double check that the completed name is actually the correct one).

I think only to complete the longest common match is a much more 
sensible behaviour and does not cause confusion. In fact, sometimes I 
did not even notice that Vim was completing the wrong filename for me, 
until I wondered why I didn't find what I was looking for.

Attached patch does this change to defaults.vim

Best,
Christian
-- 
Testfahrer der A-Klasse schuften bis sie umkippen.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
diff --git a/runtime/defaults.vim b/runtime/defaults.vim
index 0dcb92245..dc258a2ce 100644
--- a/runtime/defaults.vim
+++ b/runtime/defaults.vim
@@ -39,6 +39,7 @@ set history=200		" keep 200 lines of command line history
 set ruler		" show the cursor position all the time
 set showcmd		" display incomplete commands
 set wildmenu		" display completion matches in a status line
+set wildmode=list:longest,longest:full  " how to complete filenames
 
 set ttimeout		" time out for key codes
 set ttimeoutlen=100	" wait up to 100ms after Esc for special key
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 5639bd324..41396122b 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -8977,7 +8977,8 @@ A jump table for the options with a short description can be found at |Q_op|.
 	|hl-WildMenu|.
 
 						*'wildmode'* *'wim'*
-'wildmode' 'wim'	string	(Vim default: "full")
+'wildmode' 'wim'	string	(default "", set to "list:longest,longest:full"
+                                                             in |defaults.vim|)
 			global
 			{not in Vi}
 	Completion mode that is used for the character specified with
@@ -9003,7 +9004,7 @@ A jump table for the options with a short description can be found at |Q_op|.
 
 	Examples: >
 		:set wildmode=full
-<	Complete first full match, next match, etc.  (the default) >
+<	Complete first full match, next match, etc. >
 		:set wildmode=longest,full
 <	Complete longest common string, then each full match >
 		:set wildmode=list:full

Raspunde prin e-mail lui