Skip to content

Instantly share code, notes, and snippets.

@Osse
Created December 4, 2013 10:24
Show Gist options
  • Save Osse/7785393 to your computer and use it in GitHub Desktop.
Save Osse/7785393 to your computer and use it in GitHub Desktop.
Make relative names
diff --git a/autoload/startify.vim b/autoload/startify.vim
index 6f59b0e..f204078 100644
--- a/autoload/startify.vim
+++ b/autoload/startify.vim
@@ -318,7 +318,7 @@ function! s:show_files(cnt) abort
let entries[fullpath] = 1
let index = s:get_index_as_string(cnt)
- call append('$', ' ['. index .']'. repeat(' ', (3 - strlen(index))) . fname)
+ call append('$', ' ['. index .']'. repeat(' ', (3 - strlen(index))) . fnamemodify(fname, ':.'))
execute 'nnoremap <buffer>' index ':edit' fnameescape(fname) '<bar> call <sid>check_user_options()<cr>'
let cnt += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment