255d5232b0f6

Merge.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 12 Oct 2012 19:25:40 -0400
parents 8b4e68184795 (current diff) 7a30f287900b (diff)
children e3bb00c0db49
branches/tags (none)
files

Changes

--- 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
 -------------