Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

mattn/vim-left-pad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-left-pad

String padding library

Usage

scriptencoding utf-8

function! TestLeftPad()
  call assert_equal(leftpad#Pad("", 5), "")
  call assert_equal(leftpad#Pad("", 5, ""), "い あ")
  call assert_equal(leftpad#Pad("", 4, ""), "いあ")
  call assert_equal(leftpad#Pad("", -5), "")
  call assert_equal(leftpad#Pad("", -5, ""), "あい ")
  call assert_equal(leftpad#Pad("", -4, ""), "あい")
  call assert_equal(leftpad#Pad("a", -4, ""), "aい ")
endfunction

License

MIT

Author

Yasuhiro Matsumoto (a.k.a mattn)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published