Hello,

I'm trying to find a regex to remove the file extension from a list of
files.

For example,

src/foo.txt
src/bar.tgz
.vim/myfile.vim
project.git/index.html

I need to do minimal matching, otherwise, the 3rd and 4th lines will
be messed up.

I've tried this search/replace:
:%s/\..\{-}$//c

However, vim will not do minimal matching on the 3rd line.

What am I doing wrong?

Thanks,

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

Reply via email to