From 81a7101522f70c5aa9c919c20371672274dd1480 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Thu, 25 Apr 2013 10:46:05 +0200 Subject: [PATCH] add shellslash handling --- plugin/startify.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugin/startify.vim b/plugin/startify.vim index 1ec92eb..7bed6b4 100644 --- a/plugin/startify.vim +++ b/plugin/startify.vim @@ -33,6 +33,10 @@ function! s:start() abort if get(g:, 'startify_unlisted_buffer', 1) setlocal nobuflisted endif + if exists('+shellslash') + let old_ssl = &shellslash + set noshellslash + endif call append('$', [' startify>', '', ' [e] ']) let cnt = 0 @@ -91,6 +95,9 @@ function! s:start() abort autocmd startify CursorMoved call cursor(line('.') < 4 ? 4 : 0, 5) autocmd startify BufLeave autocmd! startify * + if exists('old_ssl') + let &shellslash = old_ssl + endif call cursor(6, 5) endfunction