tomtom / checksyntax_vim

Check a file's syntax when saving a file (php, ruby, tex ...) with vim
http://www.vim.org/scripts/script.php?script_id=1431
GNU General Public License v3.0
94 stars 9 forks source link

checksyntax changes pwd #19

Closed stroborobo closed 10 years ago

stroborobo commented 10 years ago

Hi,

I usually start vim in my project directory and open files individually (using ctrl-p for example). On saving checksyntax changes the directory to the file's dir, which breaks several plugins that use pwd, like ctrl-p. I'd make a pull request, but I don't know VimL :(

tomtom commented 10 years ago

Doesn't it cd back to the previous directory? The plugin works best with autochdir enabled and it tries to emulate this option. The user shouldn't take notice of that of course.

stroborobo commented 10 years ago

That's great, thanks for the fix :+1: