# HG changeset patch # User Steve Losh # Date 1350084340 14400 # Node ID 255d5232b0f6b73cdf950687e34437717df37392 # Parent 8b4e6818479532269039ca8ea444f7464e92838e# Parent 7a30f287900b880f4505d37ceb64ba83a2ab89d3 Merge. diff -r 8b4e68184795 -r 255d5232b0f6 chapters/35.markdown --- a/chapters/35.markdown Fri Oct 12 19:16:46 2012 -0400 +++ b/chapters/35.markdown Fri Oct 12 19:25:40 2012 -0400 @@ -76,7 +76,12 @@ :::vim :echo "abcd"[0:2] -Vim displays "abc". +Vim displays "abc". It does not allow you to use negative indices with strings though: + + :::vim + :echo "abcd"[-1] "abcd"[-1:] + +will echo " d". Concatenation -------------