roxma / vim-tmux-clipboard

seamless integration for vim and tmux's clipboard
MIT License
290 stars 24 forks source link

Fix issue #4 #14

Closed rvega closed 3 years ago

rvega commented 4 years ago

As suggested by @erahhal in #4

roxma commented 4 years ago

hmm... :help join() says that it only accepts 2 arguments.

join({list} [, {sep}])                                  join()                                                                                                                                                                                
                Join the items in {list} together into one String.                                                                                                                                                                            
                When {sep} is specified it is put in between the items.  If                                                                                                                                                                   
                {sep} is omitted a single space is used.                                                                                                                                                                                      
                Note that {sep} is not added at the end.  You might want to                                                                                                                                                                   
                add it there too:                                                                                                                                                                                                             
                        let lines = join(mylist, "\n") . "\n"                                                                                                                                                                                 
                String items are used as-is.  Lists and Dictionaries are                                                                                                                                                                      
                converted into a string like with string().                                                                                                                                                                                   
                The opposite function is split().