Loading ...
Sorry, an error occurred while loading the content.

Re: filename matches short file names when using :runtime and :source. (Ms Windows)

Expand Messages
  • Benjamin R. Haskell
    ... You can call your ftplugin files {filetype}_{whatever}.vim (so that you can have multiple files for each {filetype}). In this case, {filetype} is vim ,
    Message 1 of 2 , Oct 4, 2010
    • 0 Attachment
      On Mon, 4 Oct 2010, nanashi wrote:

      > $ echo 'let g:test = "ftplugin/vim_01.vimm"' > ~/.vim/ftplugin/vim_01.vimm
      > $ gvim -c "echo g:test" test.vim
      >
      > When only the backup file remains in ~/.vim/ftplugin, the backup file
      > is sourced.
      > short file names "VIM_01~1.VIM" matches "test_*.vim".

      You can call your ftplugin files {filetype}_{whatever}.vim (so that you
      can have multiple files for each {filetype}). In this case, {filetype}
      is 'vim', and the {whatever} is '01~1'. I'm not quite sure what you
      mean by backup file. You deleted 'vim_01.vimm'?


      > $ echo 'let g:test = "test01.vimm"' > test01.vimm
      > $ gvim -u NONE -c "so test*.vim" -c "echo g:test"
      >
      > short file names "TEST01~1.VIM" matches "test*.vim".

      Yes? That's a property of short file names. "test01.vimm" has two
      names: "test01.vimm" and "TEST01~1.VIM".

      I don't understand why this is a problem. I'm not sure there's a nice
      way to exclude short filenames as candidates for globbing, if that's the
      suggestion.

      --
      Best,
      Ben

      --
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.