quicksilver/Quicksilver — Issue #516: Formatting Inconsistency when Appending or Prepending in the Middle of a File
Author: Viewer
Created: 2011-10-25 02:00:50+00:00
State: open

(QS B61, Snow Leopard 10.6.8)

I was about to post a feature request for the ability to append and prepend text in between the lines of a text file. However, it turns out that QS already does this.

Unfortunately, in doing so it doesn't seem to play nicely with MacVim (7.3) or Vim (7.2, version came with Snow Leopard, also tested w/o vimrc). In either of those text editors, this:

```
test
test29
test1

test2
test3
test3
```
...turns into this:

```
test^Mappend^Mtest29^Mtest1^M^Mtest2^Mtest3^Mtest3^M
```

I understand that `^M` must be some kind of new line character as this behavior does not occur in TextEdit nor when the text is pasted here (had to change the text to get my point across). Outside of Vim, the above text looks like this:

```
test
append
test29
test1

test2
test3
test3
```

However, I am still suspicious of it as the `^M` characters do not show up if I append/prepend to the file (that is, I do not press spacebar when viewing a file in QS before using the 'Append Text' or 'Prepend Text' actions).

How much (if any), of this behavior was by design? Is there still something I don't understand or have I found a bug? Hope I was clear in my query.