From d71e341c43969e0cbfc126f028db57a8f64087cc Mon Sep 17 00:00:00 2001 From: Jaeho Shin Date: Mon, 9 Jun 2014 03:55:25 -0700 Subject: [PATCH] Don't rely on netrw's xStrlen from a modern Vim with +multi_byte support --- plugin/vinegar.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/vinegar.vim b/plugin/vinegar.vim index d497be8..2c96db9 100644 --- a/plugin/vinegar.vim +++ b/plugin/vinegar.vim @@ -22,6 +22,10 @@ let g:netrw_list_hide = \ join(map(split(&wildignore, ','), '"^".' . s:escape . '. "$"'), ',') . ',^\.\.\=/\=$' . \ (get(g:, 'netrw_list_hide', '')[-strlen(s:dotfiles)-1:-1] ==# s:dotfiles ? ','.s:dotfiles : '') let g:netrw_banner = 0 + +" Vim's strlen works fine while netrw's Strlen is broken +if has("multi_byte") | let g:netrw_xstrlen = 0 | endif + let s:netrw_up = '' nnoremap VinegarUp :call opendir('edit')