2012/6/14 Marc Weber <[email protected]>: > You should be more specific about 'some issues'. Which kind of issues do > you observe exactly? Well I think the % symbol confuse some string evaluations. I use a function like this: function! SetLocalPath () " Current basename for the buffer let baseName = expand("%:p:h") if isdirectory(baseName) exe 'lcd ' . baseName endif
endfunction And I have it in an autocommand so it is executed everytime a new buffer is opened. Problem is that when a foler name contains the % symbols it fails. The string expansion for the exe command is wrong. However it works for the isdirectory statement. > > I should have asked this question much earlier. > If we consider changing something we want to know why. > > Marc Weber > > -- > You received this message from the "vim_use" 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 -- Un saludo Best Regards Pablo Giménez -- You received this message from the "vim_use" 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
