Skip to content

Instantly share code, notes, and snippets.

@labeneator
Created January 21, 2013 08:32
Show Gist options
  • Save labeneator/4584577 to your computer and use it in GitHub Desktop.
Save labeneator/4584577 to your computer and use it in GitHub Desktop.
diff --git a/plugin/restore_view.vim b/plugin/restore_view.vim
index cf43019..aff1404 100644
--- a/plugin/restore_view.vim
+++ b/plugin/restore_view.vim
@@ -43,6 +43,7 @@ function! MakeViewCheck()
if &modifiable == 0 | return 0 | endif
if len($TEMP) && expand('%:p:h') == $TEMP | return 0 | endif
if len($TMP) && expand('%:p:h') == $TMP | return 0 | endif
+ if strlen(expand('%:p')) > 31 | return 0 | endif
let file_name = expand('%:p')
for ifiles in g:skipview_files
@labeneator
Copy link
Author

Relevant github issue: spf13/spf13-vim#269 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment