Question: I switch panes often and when I press ctrl-a-right I move the the right. Then if I start typing "vim", the 'v' causes a ctrl-a-v (split vertically) to be issued, but I don't want this. How do I make tmux realize this?

Answer: 
Try using .filter when adding each array to the final one, filtering out the duplicates:

```
a.filter(function(item) {
    return !finalArray.contains(item));
});

```
```js
var a = [1,2,3,4,5];
var b = [1,2,7,8];
var c = [1,2,3,4,5,6,7,8];
var d = [9,10,11,12];
var result = a.concat(b,c,d);
function remvDup(result){
    var tmp = [];
    for(var i = 0; i < result.length; i++){
        if(tmp.indexOf(result[i]) == -1){
        tmp.push(result[i]);
        }
    }
    return tmp;
}
console.log(remvDup(result));
```