This library implements a simple gap buffer for Nim. I won't claim it's fast, but it should be good enough for most uses.
If you're interested in exactly how fast this library is, take a look at benchmark.nim and run nim c -r benchmark.nim.
benchmark.nim
nim c -r benchmark.nim