Skip to content

Instantly share code, notes, and snippets.

View itchyny's full-sized avatar
🏠
Working from home

itchyny itchyny

🏠
Working from home
  • Cybozu, Inc.
  • Kyoto, Japan
View GitHub Profile
diff --git a/autoload/vital/__latest__/Data/String.vim b/autoload/vital/__latest__/Data/String.vim
index 6d28383..7915ba9 100644
--- a/autoload/vital/__latest__/Data/String.vim
+++ b/autoload/vital/__latest__/Data/String.vim
@@ -455,6 +455,50 @@ function! s:truncate(str, width) abort
return ret
endfunction
+function! s:truncate_mattn(str, width) abort
+ " Original function is from mattn.