diff --git a/nerdtree_plugin/fs_menu.vim b/nerdtree_plugin/fs_menu.vim index 997c063..553b760 100644 --- a/nerdtree_plugin/fs_menu.vim +++ b/nerdtree_plugin/fs_menu.vim @@ -228,7 +228,7 @@ function! NERDTreeListNode() if has("unix") let s:uname = system("uname") let stat_cmd = 'stat -c "%s" ' - if s:uname == "Darwin\n" + if s:uname =~? "Darwin" let stat_cmd = 'stat -f "%z" ' endif endif