Created
December 4, 2013 10:24
-
-
Save Osse/7785393 to your computer and use it in GitHub Desktop.
Make relative names
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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