corrade-nucleus-nucleons – Blame information for rev 20

Subversion Repositories:
Rev:
Rev Author Line No. Line
20 office 1 ace.define("ace/keyboard/vim",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/dom","ace/lib/oop","ace/lib/keys","ace/lib/event","ace/search","ace/lib/useragent","ace/search_highlight","ace/commands/multi_select_commands","ace/mode/text","ace/multi_select"], function(require, exports, module) {
2 'use strict';
3  
4 function log() {
5 var d = "";
6 function format(p) {
7 if (typeof p != "object")
8 return p + "";
9 if ("line" in p) {
10 return p.line + ":" + p.ch;
11 }
12 if ("anchor" in p) {
13 return format(p.anchor) + "->" + format(p.head);
14 }
15 if (Array.isArray(p))
16 return "[" + p.map(function(x) {
17 return format(x);
18 }) + "]";
19 return JSON.stringify(p);
20 }
21 for (var i = 0; i < arguments.length; i++) {
22 var p = arguments[i];
23 var f = format(p);
24 d += f + " ";
25 }
26 console.log(d);
27 }
28 var Range = require("../range").Range;
29 var EventEmitter = require("../lib/event_emitter").EventEmitter;
30 var dom = require("../lib/dom");
31 var oop = require("../lib/oop");
32 var KEYS = require("../lib/keys");
33 var event = require("../lib/event");
34 var Search = require("../search").Search;
35 var useragent = require("../lib/useragent");
36 var SearchHighlight = require("../search_highlight").SearchHighlight;
37 var multiSelectCommands = require("../commands/multi_select_commands");
38 var TextModeTokenRe = require("../mode/text").Mode.prototype.tokenRe;
39 require("../multi_select");
40  
41 var CodeMirror = function(ace) {
42 this.ace = ace;
43 this.state = {};
44 this.marks = {};
45 this.$uid = 0;
46 this.onChange = this.onChange.bind(this);
47 this.onSelectionChange = this.onSelectionChange.bind(this);
48 this.onBeforeEndOperation = this.onBeforeEndOperation.bind(this);
49 this.ace.on('change', this.onChange);
50 this.ace.on('changeSelection', this.onSelectionChange);
51 this.ace.on('beforeEndOperation', this.onBeforeEndOperation);
52 };
53 CodeMirror.Pos = function(line, ch) {
54 if (!(this instanceof Pos)) return new Pos(line, ch);
55 this.line = line; this.ch = ch;
56 };
57 CodeMirror.defineOption = function(name, val, setter) {};
58 CodeMirror.commands = {
59 redo: function(cm) { cm.ace.redo(); },
60 undo: function(cm) { cm.ace.undo(); },
61 newlineAndIndent: function(cm) { cm.ace.insert("\n"); }
62 };
63 CodeMirror.keyMap = {};
64 CodeMirror.addClass = CodeMirror.rmClass =
65 CodeMirror.e_stop = function() {};
66 CodeMirror.keyName = function(e) {
67 if (e.key) return e.key;
68 var key = (KEYS[e.keyCode] || "");
69 if (key.length == 1) key = key.toUpperCase();
70 key = event.getModifierString(e).replace(/(^|-)\w/g, function(m) {
71 return m.toUpperCase();
72 }) + key;
73 return key;
74 };
75 CodeMirror.keyMap['default'] = function(key) {
76 return function(cm) {
77 var cmd = cm.ace.commands.commandKeyBinding[key.toLowerCase()];
78 return cmd && cm.ace.execCommand(cmd) !== false;
79 };
80 };
81 CodeMirror.lookupKey = function lookupKey(key, map, handle) {
82 if (typeof map == "string")
83 map = CodeMirror.keyMap[map];
84 var found = typeof map == "function" ? map(key) : map[key];
85 if (found === false) return "nothing";
86 if (found === "...") return "multi";
87 if (found != null && handle(found)) return "handled";
88  
89 if (map.fallthrough) {
90 if (!Array.isArray(map.fallthrough))
91 return lookupKey(key, map.fallthrough, handle);
92 for (var i = 0; i < map.fallthrough.length; i++) {
93 var result = lookupKey(key, map.fallthrough[i], handle);
94 if (result) return result;
95 }
96 }
97 };
98  
99 CodeMirror.signal = function(o, name, e) { return o._signal(name, e) };
100 CodeMirror.on = event.addListener;
101 CodeMirror.off = event.removeListener;
102 CodeMirror.isWordChar = function(ch) {
103 if (ch < "\x7f") return /^\w$/.test(ch);
104 TextModeTokenRe.lastIndex = 0;
105 return TextModeTokenRe.test(ch);
106 };
107  
108 (function() {
109 oop.implement(CodeMirror.prototype, EventEmitter);
110  
111 this.destroy = function() {
112 this.ace.off('change', this.onChange);
113 this.ace.off('changeSelection', this.onSelectionChange);
114 this.ace.off('beforeEndOperation', this.onBeforeEndOperation);
115 this.removeOverlay();
116 };
117 this.virtualSelectionMode = function() {
118 return this.ace.inVirtualSelectionMode && this.ace.selection.index;
119 };
120 this.onChange = function(delta) {
121 var change = { text: delta.action[0] == 'i' ? delta.lines : [] };
122 var curOp = this.curOp = this.curOp || {};
123 if (!curOp.changeHandlers)
124 curOp.changeHandlers = this._eventRegistry["change"] && this._eventRegistry["change"].slice();
125 if (this.virtualSelectionMode()) return;
126 if (!curOp.lastChange) {
127 curOp.lastChange = curOp.change = change;
128 } else {
129 curOp.lastChange.next = curOp.lastChange = change;
130 }
131 this.$updateMarkers(delta);
132 };
133 this.onSelectionChange = function() {
134 var curOp = this.curOp = this.curOp || {};
135 if (!curOp.cursorActivityHandlers)
136 curOp.cursorActivityHandlers = this._eventRegistry["cursorActivity"] && this._eventRegistry["cursorActivity"].slice();
137 this.curOp.cursorActivity = true;
138 if (this.ace.inMultiSelectMode) {
139 this.ace.keyBinding.removeKeyboardHandler(multiSelectCommands.keyboardHandler);
140 }
141 };
142 this.operation = function(fn, force) {
143 if (!force && this.curOp || force && this.curOp && this.curOp.force) {
144 return fn();
145 }
146 if (force || !this.ace.curOp) {
147 if (this.curOp)
148 this.onBeforeEndOperation();
149 }
150 if (!this.ace.curOp) {
151 var prevOp = this.ace.prevOp;
152 this.ace.startOperation({
153 command: { name: "vim", scrollIntoView: "cursor" }
154 });
155 }
156 var curOp = this.curOp = this.curOp || {};
157 this.curOp.force = force;
158 var result = fn();
159 if (this.ace.curOp && this.ace.curOp.command.name == "vim") {
160 this.ace.endOperation();
161 if (!curOp.cursorActivity && !curOp.lastChange && prevOp)
162 this.ace.prevOp = prevOp;
163 }
164 if (force || !this.ace.curOp) {
165 if (this.curOp)
166 this.onBeforeEndOperation();
167 }
168 return result;
169 };
170 this.onBeforeEndOperation = function() {
171 var op = this.curOp;
172 if (op) {
173 if (op.change) { this.signal("change", op.change, op); }
174 if (op && op.cursorActivity) { this.signal("cursorActivity", null, op); }
175 this.curOp = null;
176 }
177 };
178  
179 this.signal = function(eventName, e, handlers) {
180 var listeners = handlers ? handlers[eventName + "Handlers"]
181 : (this._eventRegistry || {})[eventName];
182 if (!listeners)
183 return;
184 listeners = listeners.slice();
185 for (var i=0; i<listeners.length; i++)
186 listeners[i](this, e);
187 };
188 this.firstLine = function() { return 0; };
189 this.lastLine = function() { return this.ace.session.getLength() - 1; };
190 this.lineCount = function() { return this.ace.session.getLength(); };
191 this.setCursor = function(line, ch) {
192 if (typeof line === 'object') {
193 ch = line.ch;
194 line = line.line;
195 }
196 if (!this.ace.inVirtualSelectionMode)
197 this.ace.exitMultiSelectMode();
198 this.ace.session.unfold({row: line, column: ch});
199 this.ace.selection.moveTo(line, ch);
200 };
201 this.getCursor = function(p) {
202 var sel = this.ace.selection;
203 var pos = p == 'anchor' ? (sel.isEmpty() ? sel.lead : sel.anchor) :
204 p == 'head' || !p ? sel.lead : sel.getRange()[p];
205 return toCmPos(pos);
206 };
207 this.listSelections = function(p) {
208 var ranges = this.ace.multiSelect.rangeList.ranges;
209 if (!ranges.length || this.ace.inVirtualSelectionMode)
210 return [{anchor: this.getCursor('anchor'), head: this.getCursor('head')}];
211 return ranges.map(function(r) {
212 return {
213 anchor: this.clipPos(toCmPos(r.cursor == r.end ? r.start : r.end)),
214 head: this.clipPos(toCmPos(r.cursor))
215 };
216 }, this);
217 };
218 this.setSelections = function(p, primIndex) {
219 var sel = this.ace.multiSelect;
220 var ranges = p.map(function(x) {
221 var anchor = toAcePos(x.anchor);
222 var head = toAcePos(x.head);
223 var r = Range.comparePoints(anchor, head) < 0
224 ? new Range.fromPoints(anchor, head)
225 : new Range.fromPoints(head, anchor);
226 r.cursor = Range.comparePoints(r.start, head) ? r.end : r.start;
227 return r;
228 });
229  
230 if (this.ace.inVirtualSelectionMode) {
231 this.ace.selection.fromOrientedRange(ranges[0]);
232 return;
233 }
234 if (!primIndex) {
235 ranges = ranges.reverse();
236 } else if (ranges[primIndex]) {
237 ranges.push(ranges.splice(primIndex, 1)[0]);
238 }
239 sel.toSingleRange(ranges[0].clone());
240 var session = this.ace.session;
241 for (var i = 0; i < ranges.length; i++) {
242 var range = session.$clipRangeToDocument(ranges[i]); // todo why ace doesn't do this?
243 sel.addRange(range);
244 }
245 };
246 this.setSelection = function(a, h, options) {
247 var sel = this.ace.selection;
248 sel.moveTo(a.line, a.ch);
249 sel.selectTo(h.line, h.ch);
250 if (options && options.origin == '*mouse') {
251 this.onBeforeEndOperation();
252 }
253 };
254 this.somethingSelected = function(p) {
255 return !this.ace.selection.isEmpty();
256 };
257 this.clipPos = function(p) {
258 var pos = this.ace.session.$clipPositionToDocument(p.line, p.ch);
259 return toCmPos(pos);
260 };
261 this.markText = function(cursor) {
262 return {clear: function() {}, find: function() {}};
263 };
264 this.$updateMarkers = function(delta) {
265 var isInsert = delta.action == "insert";
266 var start = delta.start;
267 var end = delta.end;
268 var rowShift = (end.row - start.row) * (isInsert ? 1 : -1);
269 var colShift = (end.column - start.column) * (isInsert ? 1 : -1);
270 if (isInsert) end = start;
271  
272 for (var i in this.marks) {
273 var point = this.marks[i];
274 var cmp = Range.comparePoints(point, start);
275 if (cmp < 0) {
276 continue; // delta starts after the range
277 }
278 if (cmp === 0) {
279 if (isInsert) {
280 if (point.bias == 1) {
281 cmp = 1;
282 } else {
283 point.bias == -1;
284 continue;
285 }
286 }
287 }
288 var cmp2 = isInsert ? cmp : Range.comparePoints(point, end);
289 if (cmp2 > 0) {
290 point.row += rowShift;
291 point.column += point.row == end.row ? colShift : 0;
292 continue;
293 }
294 if (!isInsert && cmp2 <= 0) {
295 point.row = start.row;
296 point.column = start.column;
297 if (cmp2 === 0)
298 point.bias = 1;
299 }
300 }
301 };
302 var Marker = function(cm, id, row, column) {
303 this.cm = cm;
304 this.id = id;
305 this.row = row;
306 this.column = column;
307 cm.marks[this.id] = this;
308 };
309 Marker.prototype.clear = function() { delete this.cm.marks[this.id] };
310 Marker.prototype.find = function() { return toCmPos(this) };
311 this.setBookmark = function(cursor, options) {
312 var bm = new Marker(this, this.$uid++, cursor.line, cursor.ch);
313 if (!options || !options.insertLeft)
314 bm.$insertRight = true;
315 this.marks[bm.id] = bm;
316 return bm;
317 };
318 this.moveH = function(increment, unit) {
319 if (unit == 'char') {
320 var sel = this.ace.selection;
321 sel.clearSelection();
322 sel.moveCursorBy(0, increment);
323 }
324 };
325 this.findPosV = function(start, amount, unit, goalColumn) {
326 if (unit == 'page') {
327 var renderer = this.ace.renderer;
328 var config = renderer.layerConfig;
329 amount = amount * Math.floor(config.height / config.lineHeight);
330 unit = 'line';
331 }
332 if (unit == 'line') {
333 var screenPos = this.ace.session.documentToScreenPosition(start.line, start.ch);
334 if (goalColumn != null)
335 screenPos.column = goalColumn;
336 screenPos.row += amount;
337 screenPos.row = Math.min(Math.max(0, screenPos.row), this.ace.session.getScreenLength() - 1);
338 var pos = this.ace.session.screenToDocumentPosition(screenPos.row, screenPos.column);
339 return toCmPos(pos);
340 } else {
341 debugger;
342 }
343 };
344 this.charCoords = function(pos, mode) {
345 if (mode == 'div' || !mode) {
346 var sc = this.ace.session.documentToScreenPosition(pos.line, pos.ch);
347 return {left: sc.column, top: sc.row};
348 }if (mode == 'local') {
349 var renderer = this.ace.renderer;
350 var sc = this.ace.session.documentToScreenPosition(pos.line, pos.ch);
351 var lh = renderer.layerConfig.lineHeight;
352 var cw = renderer.layerConfig.characterWidth;
353 var top = lh * sc.row;
354 return {left: sc.column * cw, top: top, bottom: top + lh};
355 }
356 };
357 this.coordsChar = function(pos, mode) {
358 var renderer = this.ace.renderer;
359 if (mode == 'local') {
360 var row = Math.max(0, Math.floor(pos.top / renderer.lineHeight));
361 var col = Math.max(0, Math.floor(pos.left / renderer.characterWidth));
362 var ch = renderer.session.screenToDocumentPosition(row, col);
363 return toCmPos(ch);
364 } else if (mode == 'div') {
365 throw "not implemented";
366 }
367 };
368 this.getSearchCursor = function(query, pos, caseFold) {
369 var caseSensitive = false;
370 var isRegexp = false;
371 if (query instanceof RegExp && !query.global) {
372 caseSensitive = !query.ignoreCase;
373 query = query.source;
374 isRegexp = true;
375 }
376 var search = new Search();
377 if (pos.ch == undefined) pos.ch = Number.MAX_VALUE;
378 var acePos = {row: pos.line, column: pos.ch};
379 var cm = this;
380 var last = null;
381 return {
382 findNext: function() { return this.find(false) },
383 findPrevious: function() {return this.find(true) },
384 find: function(back) {
385 search.setOptions({
386 needle: query,
387 caseSensitive: caseSensitive,
388 wrap: false,
389 backwards: back,
390 regExp: isRegexp,
391 start: last || acePos
392 });
393 var range = search.find(cm.ace.session);
394 if (range && range.isEmpty()) {
395 if (cm.getLine(range.start.row).length == range.start.column) {
396 search.$options.start = range;
397 range = search.find(cm.ace.session);
398 }
399 }
400 last = range;
401 return last;
402 },
403 from: function() { return last && toCmPos(last.start) },
404 to: function() { return last && toCmPos(last.end) },
405 replace: function(text) {
406 if (last) {
407 last.end = cm.ace.session.doc.replace(last, text);
408 }
409 }
410 };
411 };
412 this.scrollTo = function(x, y) {
413 var renderer = this.ace.renderer;
414 var config = renderer.layerConfig;
415 var maxHeight = config.maxHeight;
416 maxHeight -= (renderer.$size.scrollerHeight - renderer.lineHeight) * renderer.$scrollPastEnd;
417 if (y != null) this.ace.session.setScrollTop(Math.max(0, Math.min(y, maxHeight)));
418 if (x != null) this.ace.session.setScrollLeft(Math.max(0, Math.min(x, config.width)));
419 };
420 this.scrollInfo = function() { return 0; };
421 this.scrollIntoView = function(pos, margin) {
422 if (pos) {
423 var renderer = this.ace.renderer;
424 var viewMargin = { "top": 0, "bottom": margin };
425 renderer.scrollCursorIntoView(toAcePos(pos),
426 (renderer.lineHeight * 2) / renderer.$size.scrollerHeight, viewMargin);
427 }
428 };
429 this.getLine = function(row) { return this.ace.session.getLine(row) };
430 this.getRange = function(s, e) {
431 return this.ace.session.getTextRange(new Range(s.line, s.ch, e.line, e.ch));
432 };
433 this.replaceRange = function(text, s, e) {
434 if (!e) e = s;
435 return this.ace.session.replace(new Range(s.line, s.ch, e.line, e.ch), text);
436 };
437 this.replaceSelections = function(p) {
438 var sel = this.ace.selection;
439 if (this.ace.inVirtualSelectionMode) {
440 this.ace.session.replace(sel.getRange(), p[0] || "");
441 return;
442 }
443 sel.inVirtualSelectionMode = true;
444 var ranges = sel.rangeList.ranges;
445 if (!ranges.length) ranges = [this.ace.multiSelect.getRange()];
446 for (var i = ranges.length; i--;)
447 this.ace.session.replace(ranges[i], p[i] || "");
448 sel.inVirtualSelectionMode = false;
449 };
450 this.getSelection = function() {
451 return this.ace.getSelectedText();
452 };
453 this.getSelections = function() {
454 return this.listSelections().map(function(x) {
455 return this.getRange(x.anchor, x.head);
456 }, this);
457 };
458 this.getInputField = function() {
459 return this.ace.textInput.getElement();
460 };
461 this.getWrapperElement = function() {
462 return this.ace.containter;
463 };
464 var optMap = {
465 indentWithTabs: "useSoftTabs",
466 indentUnit: "tabSize",
467 tabSize: "tabSize",
468 firstLineNumber: "firstLineNumber",
469 readOnly: "readOnly"
470 };
471 this.setOption = function(name, val) {
472 this.state[name] = val;
473 switch (name) {
474 case 'indentWithTabs':
475 name = optMap[name];
476 val = !val;
477 break;
478 default:
479 name = optMap[name];
480 }
481 if (name)
482 this.ace.setOption(name, val);
483 };
484 this.getOption = function(name, val) {
485 var aceOpt = optMap[name];
486 if (aceOpt)
487 val = this.ace.getOption(aceOpt);
488 switch (name) {
489 case 'indentWithTabs':
490 name = optMap[name];
491 return !val;
492 }
493 return aceOpt ? val : this.state[name];
494 };
495 this.toggleOverwrite = function(on) {
496 this.state.overwrite = on;
497 return this.ace.setOverwrite(on);
498 };
499 this.addOverlay = function(o) {
500 if (!this.$searchHighlight || !this.$searchHighlight.session) {
501 var highlight = new SearchHighlight(null, "ace_highlight-marker", "text");
502 var marker = this.ace.session.addDynamicMarker(highlight);
503 highlight.id = marker.id;
504 highlight.session = this.ace.session;
505 highlight.destroy = function(o) {
506 highlight.session.off("change", highlight.updateOnChange);
507 highlight.session.off("changeEditor", highlight.destroy);
508 highlight.session.removeMarker(highlight.id);
509 highlight.session = null;
510 };
511 highlight.updateOnChange = function(delta) {
512 var row = delta.start.row;
513 if (row == delta.end.row) highlight.cache[row] = undefined;
514 else highlight.cache.splice(row, highlight.cache.length);
515 };
516 highlight.session.on("changeEditor", highlight.destroy);
517 highlight.session.on("change", highlight.updateOnChange);
518 }
519 var re = new RegExp(o.query.source, "gmi");
520 this.$searchHighlight = o.highlight = highlight;
521 this.$searchHighlight.setRegexp(re);
522 this.ace.renderer.updateBackMarkers();
523 };
524 this.removeOverlay = function(o) {
525 if (this.$searchHighlight && this.$searchHighlight.session) {
526 this.$searchHighlight.destroy();
527 }
528 };
529 this.getScrollInfo = function() {
530 var renderer = this.ace.renderer;
531 var config = renderer.layerConfig;
532 return {
533 left: renderer.scrollLeft,
534 top: renderer.scrollTop,
535 height: config.maxHeight,
536 width: config.width,
537 clientHeight: config.height,
538 clientWidth: config.width
539 };
540 };
541 this.getValue = function() {
542 return this.ace.getValue();
543 };
544 this.setValue = function(v) {
545 return this.ace.setValue(v);
546 };
547 this.getTokenTypeAt = function(pos) {
548 var token = this.ace.session.getTokenAt(pos.line, pos.ch);
549 return token && /comment|string/.test(token.type) ? "string" : "";
550 };
551 this.findMatchingBracket = function(pos) {
552 var m = this.ace.session.findMatchingBracket(toAcePos(pos));
553 return {to: m && toCmPos(m)};
554 };
555 this.indentLine = function(line, method) {
556 if (method === true)
557 this.ace.session.indentRows(line, line, "\t");
558 else if (method === false)
559 this.ace.session.outdentRows(new Range(line, 0, line, 0));
560 };
561 this.indexFromPos = function(pos) {
562 return this.ace.session.doc.positionToIndex(toAcePos(pos));
563 };
564 this.posFromIndex = function(index) {
565 return toCmPos(this.ace.session.doc.indexToPosition(index));
566 };
567 this.focus = function(index) {
568 return this.ace.focus();
569 };
570 this.blur = function(index) {
571 return this.ace.blur();
572 };
573 this.defaultTextHeight = function(index) {
574 return this.ace.renderer.layerConfig.lineHeight;
575 };
576 this.scanForBracket = function(pos, dir, _, options) {
577 var re = options.bracketRegex.source;
578 if (dir == 1) {
579 var m = this.ace.session.$findClosingBracket(re.slice(1, 2), toAcePos(pos), /paren|text/);
580 } else {
581 var m = this.ace.session.$findOpeningBracket(re.slice(-2, -1), {row: pos.line, column: pos.ch + 1}, /paren|text/);
582 }
583 return m && {pos: toCmPos(m)};
584 };
585 this.refresh = function() {
586 return this.ace.resize(true);
587 };
588 this.getMode = function() {
589 return { name : this.getOption("mode") };
590 }
591 }).call(CodeMirror.prototype);
592 function toAcePos(cmPos) {
593 return {row: cmPos.line, column: cmPos.ch};
594 }
595 function toCmPos(acePos) {
596 return new Pos(acePos.row, acePos.column);
597 }
598  
599 var StringStream = CodeMirror.StringStream = function(string, tabSize) {
600 this.pos = this.start = 0;
601 this.string = string;
602 this.tabSize = tabSize || 8;
603 this.lastColumnPos = this.lastColumnValue = 0;
604 this.lineStart = 0;
605 };
606  
607 StringStream.prototype = {
608 eol: function() {return this.pos >= this.string.length;},
609 sol: function() {return this.pos == this.lineStart;},
610 peek: function() {return this.string.charAt(this.pos) || undefined;},
611 next: function() {
612 if (this.pos < this.string.length)
613 return this.string.charAt(this.pos++);
614 },
615 eat: function(match) {
616 var ch = this.string.charAt(this.pos);
617 if (typeof match == "string") var ok = ch == match;
618 else var ok = ch && (match.test ? match.test(ch) : match(ch));
619 if (ok) {++this.pos; return ch;}
620 },
621 eatWhile: function(match) {
622 var start = this.pos;
623 while (this.eat(match)){}
624 return this.pos > start;
625 },
626 eatSpace: function() {
627 var start = this.pos;
628 while (/[\s\u00a0]/.test(this.string.charAt(this.pos))) ++this.pos;
629 return this.pos > start;
630 },
631 skipToEnd: function() {this.pos = this.string.length;},
632 skipTo: function(ch) {
633 var found = this.string.indexOf(ch, this.pos);
634 if (found > -1) {this.pos = found; return true;}
635 },
636 backUp: function(n) {this.pos -= n;},
637 column: function() {
638 throw "not implemented";
639 },
640 indentation: function() {
641 throw "not implemented";
642 },
643 match: function(pattern, consume, caseInsensitive) {
644 if (typeof pattern == "string") {
645 var cased = function(str) {return caseInsensitive ? str.toLowerCase() : str;};
646 var substr = this.string.substr(this.pos, pattern.length);
647 if (cased(substr) == cased(pattern)) {
648 if (consume !== false) this.pos += pattern.length;
649 return true;
650 }
651 } else {
652 var match = this.string.slice(this.pos).match(pattern);
653 if (match && match.index > 0) return null;
654 if (match && consume !== false) this.pos += match[0].length;
655 return match;
656 }
657 },
658 current: function(){return this.string.slice(this.start, this.pos);},
659 hideFirstChars: function(n, inner) {
660 this.lineStart += n;
661 try { return inner(); }
662 finally { this.lineStart -= n; }
663 }
664 };
665 CodeMirror.defineExtension = function(name, fn) {
666 CodeMirror.prototype[name] = fn;
667 };
668 dom.importCssString(".normal-mode .ace_cursor{\
669 border: 1px solid red;\
670 background-color: red;\
671 opacity: 0.5;\
672 }\
673 .normal-mode .ace_hidden-cursors .ace_cursor{\
674 background-color: transparent;\
675 }\
676 .ace_dialog {\
677 position: absolute;\
678 left: 0; right: 0;\
679 background: white;\
680 z-index: 15;\
681 padding: .1em .8em;\
682 overflow: hidden;\
683 color: #333;\
684 }\
685 .ace_dialog-top {\
686 border-bottom: 1px solid #eee;\
687 top: 0;\
688 }\
689 .ace_dialog-bottom {\
690 border-top: 1px solid #eee;\
691 bottom: 0;\
692 }\
693 .ace_dialog input {\
694 border: none;\
695 outline: none;\
696 background: transparent;\
697 width: 20em;\
698 color: inherit;\
699 font-family: monospace;\
700 }", "vimMode");
701 (function() {
702 function dialogDiv(cm, template, bottom) {
703 var wrap = cm.ace.container;
704 var dialog;
705 dialog = wrap.appendChild(document.createElement("div"));
706 if (bottom)
707 dialog.className = "ace_dialog ace_dialog-bottom";
708 else
709 dialog.className = "ace_dialog ace_dialog-top";
710  
711 if (typeof template == "string") {
712 dialog.innerHTML = template;
713 } else { // Assuming it's a detached DOM element.
714 dialog.appendChild(template);
715 }
716 return dialog;
717 }
718  
719 function closeNotification(cm, newVal) {
720 if (cm.state.currentNotificationClose)
721 cm.state.currentNotificationClose();
722 cm.state.currentNotificationClose = newVal;
723 }
724  
725 CodeMirror.defineExtension("openDialog", function(template, callback, options) {
726 if (this.virtualSelectionMode()) return;
727 if (!options) options = {};
728  
729 closeNotification(this, null);
730  
731 var dialog = dialogDiv(this, template, options.bottom);
732 var closed = false, me = this;
733 function close(newVal) {
734 if (typeof newVal == 'string') {
735 inp.value = newVal;
736 } else {
737 if (closed) return;
738 closed = true;
739 dialog.parentNode.removeChild(dialog);
740 me.focus();
741  
742 if (options.onClose) options.onClose(dialog);
743 }
744 }
745  
746 var inp = dialog.getElementsByTagName("input")[0], button;
747 if (inp) {
748 if (options.value) {
749 inp.value = options.value;
750 if (options.select !== false) inp.select();
751 }
752  
753 if (options.onInput)
754 CodeMirror.on(inp, "input", function(e) { options.onInput(e, inp.value, close);});
755 if (options.onKeyUp)
756 CodeMirror.on(inp, "keyup", function(e) {options.onKeyUp(e, inp.value, close);});
757  
758 CodeMirror.on(inp, "keydown", function(e) {
759 if (options && options.onKeyDown && options.onKeyDown(e, inp.value, close)) { return; }
760 if (e.keyCode == 27 || (options.closeOnEnter !== false && e.keyCode == 13)) {
761 inp.blur();
762 CodeMirror.e_stop(e);
763 close();
764 }
765 if (e.keyCode == 13) callback(inp.value);
766 });
767  
768 if (options.closeOnBlur !== false) CodeMirror.on(inp, "blur", close);
769  
770 inp.focus();
771 } else if (button = dialog.getElementsByTagName("button")[0]) {
772 CodeMirror.on(button, "click", function() {
773 close();
774 me.focus();
775 });
776  
777 if (options.closeOnBlur !== false) CodeMirror.on(button, "blur", close);
778  
779 button.focus();
780 }
781 return close;
782 });
783  
784 CodeMirror.defineExtension("openNotification", function(template, options) {
785 if (this.virtualSelectionMode()) return;
786 closeNotification(this, close);
787 var dialog = dialogDiv(this, template, options && options.bottom);
788 var closed = false, doneTimer;
789 var duration = options && typeof options.duration !== "undefined" ? options.duration : 5000;
790  
791 function close() {
792 if (closed) return;
793 closed = true;
794 clearTimeout(doneTimer);
795 dialog.parentNode.removeChild(dialog);
796 }
797  
798 CodeMirror.on(dialog, 'click', function(e) {
799 CodeMirror.e_preventDefault(e);
800 close();
801 });
802  
803 if (duration)
804 doneTimer = setTimeout(close, duration);
805  
806 return close;
807 });
808 })();
809  
810  
811 var defaultKeymap = [
812 { keys: '<Left>', type: 'keyToKey', toKeys: 'h' },
813 { keys: '<Right>', type: 'keyToKey', toKeys: 'l' },
814 { keys: '<Up>', type: 'keyToKey', toKeys: 'k' },
815 { keys: '<Down>', type: 'keyToKey', toKeys: 'j' },
816 { keys: '<Space>', type: 'keyToKey', toKeys: 'l' },
817 { keys: '<BS>', type: 'keyToKey', toKeys: 'h', context: 'normal'},
818 { keys: '<C-Space>', type: 'keyToKey', toKeys: 'W' },
819 { keys: '<C-BS>', type: 'keyToKey', toKeys: 'B', context: 'normal' },
820 { keys: '<S-Space>', type: 'keyToKey', toKeys: 'w' },
821 { keys: '<S-BS>', type: 'keyToKey', toKeys: 'b', context: 'normal' },
822 { keys: '<C-n>', type: 'keyToKey', toKeys: 'j' },
823 { keys: '<C-p>', type: 'keyToKey', toKeys: 'k' },
824 { keys: '<C-[>', type: 'keyToKey', toKeys: '<Esc>' },
825 { keys: '<C-c>', type: 'keyToKey', toKeys: '<Esc>' },
826 { keys: '<C-[>', type: 'keyToKey', toKeys: '<Esc>', context: 'insert' },
827 { keys: '<C-c>', type: 'keyToKey', toKeys: '<Esc>', context: 'insert' },
828 { keys: 's', type: 'keyToKey', toKeys: 'cl', context: 'normal' },
829 { keys: 's', type: 'keyToKey', toKeys: 'c', context: 'visual'},
830 { keys: 'S', type: 'keyToKey', toKeys: 'cc', context: 'normal' },
831 { keys: 'S', type: 'keyToKey', toKeys: 'VdO', context: 'visual' },
832 { keys: '<Home>', type: 'keyToKey', toKeys: '0' },
833 { keys: '<End>', type: 'keyToKey', toKeys: '$' },
834 { keys: '<PageUp>', type: 'keyToKey', toKeys: '<C-b>' },
835 { keys: '<PageDown>', type: 'keyToKey', toKeys: '<C-f>' },
836 { keys: '<CR>', type: 'keyToKey', toKeys: 'j^', context: 'normal' },
837 { keys: 'H', type: 'motion', motion: 'moveToTopLine', motionArgs: { linewise: true, toJumplist: true }},
838 { keys: 'M', type: 'motion', motion: 'moveToMiddleLine', motionArgs: { linewise: true, toJumplist: true }},
839 { keys: 'L', type: 'motion', motion: 'moveToBottomLine', motionArgs: { linewise: true, toJumplist: true }},
840 { keys: 'h', type: 'motion', motion: 'moveByCharacters', motionArgs: { forward: false }},
841 { keys: 'l', type: 'motion', motion: 'moveByCharacters', motionArgs: { forward: true }},
842 { keys: 'j', type: 'motion', motion: 'moveByLines', motionArgs: { forward: true, linewise: true }},
843 { keys: 'k', type: 'motion', motion: 'moveByLines', motionArgs: { forward: false, linewise: true }},
844 { keys: 'gj', type: 'motion', motion: 'moveByDisplayLines', motionArgs: { forward: true }},
845 { keys: 'gk', type: 'motion', motion: 'moveByDisplayLines', motionArgs: { forward: false }},
846 { keys: 'w', type: 'motion', motion: 'moveByWords', motionArgs: { forward: true, wordEnd: false }},
847 { keys: 'W', type: 'motion', motion: 'moveByWords', motionArgs: { forward: true, wordEnd: false, bigWord: true }},
848 { keys: 'e', type: 'motion', motion: 'moveByWords', motionArgs: { forward: true, wordEnd: true, inclusive: true }},
849 { keys: 'E', type: 'motion', motion: 'moveByWords', motionArgs: { forward: true, wordEnd: true, bigWord: true, inclusive: true }},
850 { keys: 'b', type: 'motion', motion: 'moveByWords', motionArgs: { forward: false, wordEnd: false }},
851 { keys: 'B', type: 'motion', motion: 'moveByWords', motionArgs: { forward: false, wordEnd: false, bigWord: true }},
852 { keys: 'ge', type: 'motion', motion: 'moveByWords', motionArgs: { forward: false, wordEnd: true, inclusive: true }},
853 { keys: 'gE', type: 'motion', motion: 'moveByWords', motionArgs: { forward: false, wordEnd: true, bigWord: true, inclusive: true }},
854 { keys: '{', type: 'motion', motion: 'moveByParagraph', motionArgs: { forward: false, toJumplist: true }},
855 { keys: '}', type: 'motion', motion: 'moveByParagraph', motionArgs: { forward: true, toJumplist: true }},
856 { keys: '<C-f>', type: 'motion', motion: 'moveByPage', motionArgs: { forward: true }},
857 { keys: '<C-b>', type: 'motion', motion: 'moveByPage', motionArgs: { forward: false }},
858 { keys: '<C-d>', type: 'motion', motion: 'moveByScroll', motionArgs: { forward: true, explicitRepeat: true }},
859 { keys: '<C-u>', type: 'motion', motion: 'moveByScroll', motionArgs: { forward: false, explicitRepeat: true }},
860 { keys: 'gg', type: 'motion', motion: 'moveToLineOrEdgeOfDocument', motionArgs: { forward: false, explicitRepeat: true, linewise: true, toJumplist: true }},
861 { keys: 'G', type: 'motion', motion: 'moveToLineOrEdgeOfDocument', motionArgs: { forward: true, explicitRepeat: true, linewise: true, toJumplist: true }},
862 { keys: '0', type: 'motion', motion: 'moveToStartOfLine' },
863 { keys: '^', type: 'motion', motion: 'moveToFirstNonWhiteSpaceCharacter' },
864 { keys: '+', type: 'motion', motion: 'moveByLines', motionArgs: { forward: true, toFirstChar:true }},
865 { keys: '-', type: 'motion', motion: 'moveByLines', motionArgs: { forward: false, toFirstChar:true }},
866 { keys: '_', type: 'motion', motion: 'moveByLines', motionArgs: { forward: true, toFirstChar:true, repeatOffset:-1 }},
867 { keys: '$', type: 'motion', motion: 'moveToEol', motionArgs: { inclusive: true }},
868 { keys: '%', type: 'motion', motion: 'moveToMatchedSymbol', motionArgs: { inclusive: true, toJumplist: true }},
869 { keys: 'f<character>', type: 'motion', motion: 'moveToCharacter', motionArgs: { forward: true , inclusive: true }},
870 { keys: 'F<character>', type: 'motion', motion: 'moveToCharacter', motionArgs: { forward: false }},
871 { keys: 't<character>', type: 'motion', motion: 'moveTillCharacter', motionArgs: { forward: true, inclusive: true }},
872 { keys: 'T<character>', type: 'motion', motion: 'moveTillCharacter', motionArgs: { forward: false }},
873 { keys: ';', type: 'motion', motion: 'repeatLastCharacterSearch', motionArgs: { forward: true }},
874 { keys: ',', type: 'motion', motion: 'repeatLastCharacterSearch', motionArgs: { forward: false }},
875 { keys: '\'<character>', type: 'motion', motion: 'goToMark', motionArgs: {toJumplist: true, linewise: true}},
876 { keys: '`<character>', type: 'motion', motion: 'goToMark', motionArgs: {toJumplist: true}},
877 { keys: ']`', type: 'motion', motion: 'jumpToMark', motionArgs: { forward: true } },
878 { keys: '[`', type: 'motion', motion: 'jumpToMark', motionArgs: { forward: false } },
879 { keys: ']\'', type: 'motion', motion: 'jumpToMark', motionArgs: { forward: true, linewise: true } },
880 { keys: '[\'', type: 'motion', motion: 'jumpToMark', motionArgs: { forward: false, linewise: true } },
881 { keys: ']p', type: 'action', action: 'paste', isEdit: true, actionArgs: { after: true, isEdit: true, matchIndent: true}},
882 { keys: '[p', type: 'action', action: 'paste', isEdit: true, actionArgs: { after: false, isEdit: true, matchIndent: true}},
883 { keys: ']<character>', type: 'motion', motion: 'moveToSymbol', motionArgs: { forward: true, toJumplist: true}},
884 { keys: '[<character>', type: 'motion', motion: 'moveToSymbol', motionArgs: { forward: false, toJumplist: true}},
885 { keys: '|', type: 'motion', motion: 'moveToColumn'},
886 { keys: 'o', type: 'motion', motion: 'moveToOtherHighlightedEnd', context:'visual'},
887 { keys: 'O', type: 'motion', motion: 'moveToOtherHighlightedEnd', motionArgs: {sameLine: true}, context:'visual'},
888 { keys: 'd', type: 'operator', operator: 'delete' },
889 { keys: 'y', type: 'operator', operator: 'yank' },
890 { keys: 'c', type: 'operator', operator: 'change' },
891 { keys: '>', type: 'operator', operator: 'indent', operatorArgs: { indentRight: true }},
892 { keys: '<', type: 'operator', operator: 'indent', operatorArgs: { indentRight: false }},
893 { keys: 'g~', type: 'operator', operator: 'changeCase' },
894 { keys: 'gu', type: 'operator', operator: 'changeCase', operatorArgs: {toLower: true}, isEdit: true },
895 { keys: 'gU', type: 'operator', operator: 'changeCase', operatorArgs: {toLower: false}, isEdit: true },
896 { keys: 'n', type: 'motion', motion: 'findNext', motionArgs: { forward: true, toJumplist: true }},
897 { keys: 'N', type: 'motion', motion: 'findNext', motionArgs: { forward: false, toJumplist: true }},
898 { keys: 'x', type: 'operatorMotion', operator: 'delete', motion: 'moveByCharacters', motionArgs: { forward: true }, operatorMotionArgs: { visualLine: false }},
899 { keys: 'X', type: 'operatorMotion', operator: 'delete', motion: 'moveByCharacters', motionArgs: { forward: false }, operatorMotionArgs: { visualLine: true }},
900 { keys: 'D', type: 'operatorMotion', operator: 'delete', motion: 'moveToEol', motionArgs: { inclusive: true }, context: 'normal'},
901 { keys: 'D', type: 'operator', operator: 'delete', operatorArgs: { linewise: true }, context: 'visual'},
902 { keys: 'Y', type: 'operatorMotion', operator: 'yank', motion: 'moveToEol', motionArgs: { inclusive: true }, context: 'normal'},
903 { keys: 'Y', type: 'operator', operator: 'yank', operatorArgs: { linewise: true }, context: 'visual'},
904 { keys: 'C', type: 'operatorMotion', operator: 'change', motion: 'moveToEol', motionArgs: { inclusive: true }, context: 'normal'},
905 { keys: 'C', type: 'operator', operator: 'change', operatorArgs: { linewise: true }, context: 'visual'},
906 { keys: '~', type: 'operatorMotion', operator: 'changeCase', motion: 'moveByCharacters', motionArgs: { forward: true }, operatorArgs: { shouldMoveCursor: true }, context: 'normal'},
907 { keys: '~', type: 'operator', operator: 'changeCase', context: 'visual'},
908 { keys: '<C-w>', type: 'operatorMotion', operator: 'delete', motion: 'moveByWords', motionArgs: { forward: false, wordEnd: false }, context: 'insert' },
909 { keys: '<C-i>', type: 'action', action: 'jumpListWalk', actionArgs: { forward: true }},
910 { keys: '<C-o>', type: 'action', action: 'jumpListWalk', actionArgs: { forward: false }},
911 { keys: '<C-e>', type: 'action', action: 'scroll', actionArgs: { forward: true, linewise: true }},
912 { keys: '<C-y>', type: 'action', action: 'scroll', actionArgs: { forward: false, linewise: true }},
913 { keys: 'a', type: 'action', action: 'enterInsertMode', isEdit: true, actionArgs: { insertAt: 'charAfter' }, context: 'normal' },
914 { keys: 'A', type: 'action', action: 'enterInsertMode', isEdit: true, actionArgs: { insertAt: 'eol' }, context: 'normal' },
915 { keys: 'A', type: 'action', action: 'enterInsertMode', isEdit: true, actionArgs: { insertAt: 'endOfSelectedArea' }, context: 'visual' },
916 { keys: 'i', type: 'action', action: 'enterInsertMode', isEdit: true, actionArgs: { insertAt: 'inplace' }, context: 'normal' },
917 { keys: 'I', type: 'action', action: 'enterInsertMode', isEdit: true, actionArgs: { insertAt: 'firstNonBlank'}, context: 'normal' },
918 { keys: 'I', type: 'action', action: 'enterInsertMode', isEdit: true, actionArgs: { insertAt: 'startOfSelectedArea' }, context: 'visual' },
919 { keys: 'o', type: 'action', action: 'newLineAndEnterInsertMode', isEdit: true, interlaceInsertRepeat: true, actionArgs: { after: true }, context: 'normal' },
920 { keys: 'O', type: 'action', action: 'newLineAndEnterInsertMode', isEdit: true, interlaceInsertRepeat: true, actionArgs: { after: false }, context: 'normal' },
921 { keys: 'v', type: 'action', action: 'toggleVisualMode' },
922 { keys: 'V', type: 'action', action: 'toggleVisualMode', actionArgs: { linewise: true }},
923 { keys: '<C-v>', type: 'action', action: 'toggleVisualMode', actionArgs: { blockwise: true }},
924 { keys: '<C-q>', type: 'action', action: 'toggleVisualMode', actionArgs: { blockwise: true }},
925 { keys: 'gv', type: 'action', action: 'reselectLastSelection' },
926 { keys: 'J', type: 'action', action: 'joinLines', isEdit: true },
927 { keys: 'p', type: 'action', action: 'paste', isEdit: true, actionArgs: { after: true, isEdit: true }},
928 { keys: 'P', type: 'action', action: 'paste', isEdit: true, actionArgs: { after: false, isEdit: true }},
929 { keys: 'r<character>', type: 'action', action: 'replace', isEdit: true },
930 { keys: '@<character>', type: 'action', action: 'replayMacro' },
931 { keys: 'q<character>', type: 'action', action: 'enterMacroRecordMode' },
932 { keys: 'R', type: 'action', action: 'enterInsertMode', isEdit: true, actionArgs: { replace: true }},
933 { keys: 'u', type: 'action', action: 'undo', context: 'normal' },
934 { keys: 'u', type: 'operator', operator: 'changeCase', operatorArgs: {toLower: true}, context: 'visual', isEdit: true },
935 { keys: 'U', type: 'operator', operator: 'changeCase', operatorArgs: {toLower: false}, context: 'visual', isEdit: true },
936 { keys: '<C-r>', type: 'action', action: 'redo' },
937 { keys: 'm<character>', type: 'action', action: 'setMark' },
938 { keys: '"<character>', type: 'action', action: 'setRegister' },
939 { keys: 'zz', type: 'action', action: 'scrollToCursor', actionArgs: { position: 'center' }},
940 { keys: 'z.', type: 'action', action: 'scrollToCursor', actionArgs: { position: 'center' }, motion: 'moveToFirstNonWhiteSpaceCharacter' },
941 { keys: 'zt', type: 'action', action: 'scrollToCursor', actionArgs: { position: 'top' }},
942 { keys: 'z<CR>', type: 'action', action: 'scrollToCursor', actionArgs: { position: 'top' }, motion: 'moveToFirstNonWhiteSpaceCharacter' },
943 { keys: 'z-', type: 'action', action: 'scrollToCursor', actionArgs: { position: 'bottom' }},
944 { keys: 'zb', type: 'action', action: 'scrollToCursor', actionArgs: { position: 'bottom' }, motion: 'moveToFirstNonWhiteSpaceCharacter' },
945 { keys: '.', type: 'action', action: 'repeatLastEdit' },
946 { keys: '<C-a>', type: 'action', action: 'incrementNumberToken', isEdit: true, actionArgs: {increase: true, backtrack: false}},
947 { keys: '<C-x>', type: 'action', action: 'incrementNumberToken', isEdit: true, actionArgs: {increase: false, backtrack: false}},
948 { keys: 'a<character>', type: 'motion', motion: 'textObjectManipulation' },
949 { keys: 'i<character>', type: 'motion', motion: 'textObjectManipulation', motionArgs: { textObjectInner: true }},
950 { keys: '/', type: 'search', searchArgs: { forward: true, querySrc: 'prompt', toJumplist: true }},
951 { keys: '?', type: 'search', searchArgs: { forward: false, querySrc: 'prompt', toJumplist: true }},
952 { keys: '*', type: 'search', searchArgs: { forward: true, querySrc: 'wordUnderCursor', wholeWordOnly: true, toJumplist: true }},
953 { keys: '#', type: 'search', searchArgs: { forward: false, querySrc: 'wordUnderCursor', wholeWordOnly: true, toJumplist: true }},
954 { keys: 'g*', type: 'search', searchArgs: { forward: true, querySrc: 'wordUnderCursor', toJumplist: true }},
955 { keys: 'g#', type: 'search', searchArgs: { forward: false, querySrc: 'wordUnderCursor', toJumplist: true }},
956 { keys: ':', type: 'ex' }
957 ];
958 var defaultExCommandMap = [
959 { name: 'colorscheme', shortName: 'colo' },
960 { name: 'map' },
961 { name: 'imap', shortName: 'im' },
962 { name: 'nmap', shortName: 'nm' },
963 { name: 'vmap', shortName: 'vm' },
964 { name: 'unmap' },
965 { name: 'write', shortName: 'w' },
966 { name: 'undo', shortName: 'u' },
967 { name: 'redo', shortName: 'red' },
968 { name: 'set', shortName: 'se' },
969 { name: 'set', shortName: 'se' },
970 { name: 'setlocal', shortName: 'setl' },
971 { name: 'setglobal', shortName: 'setg' },
972 { name: 'sort', shortName: 'sor' },
973 { name: 'substitute', shortName: 's', possiblyAsync: true },
974 { name: 'nohlsearch', shortName: 'noh' },
975 { name: 'delmarks', shortName: 'delm' },
976 { name: 'registers', shortName: 'reg', excludeFromCommandHistory: true },
977 { name: 'global', shortName: 'g' }
978 ];
979  
980 var Pos = CodeMirror.Pos;
981  
982 var Vim = function() { return vimApi; } //{
983 function enterVimMode(cm) {
984 cm.setOption('disableInput', true);
985 cm.setOption('showCursorWhenSelecting', false);
986 CodeMirror.signal(cm, "vim-mode-change", {mode: "normal"});
987 cm.on('cursorActivity', onCursorActivity);
988 maybeInitVimState(cm);
989 CodeMirror.on(cm.getInputField(), 'paste', getOnPasteFn(cm));
990 }
991  
992 function leaveVimMode(cm) {
993 cm.setOption('disableInput', false);
994 cm.off('cursorActivity', onCursorActivity);
995 CodeMirror.off(cm.getInputField(), 'paste', getOnPasteFn(cm));
996 cm.state.vim = null;
997 }
998  
999 function detachVimMap(cm, next) {
1000 if (this == CodeMirror.keyMap.vim)
1001 CodeMirror.rmClass(cm.getWrapperElement(), "cm-fat-cursor");
1002  
1003 if (!next || next.attach != attachVimMap)
1004 leaveVimMode(cm, false);
1005 }
1006 function attachVimMap(cm, prev) {
1007 if (this == CodeMirror.keyMap.vim)
1008 CodeMirror.addClass(cm.getWrapperElement(), "cm-fat-cursor");
1009  
1010 if (!prev || prev.attach != attachVimMap)
1011 enterVimMode(cm);
1012 }
1013 CodeMirror.defineOption('vimMode', false, function(cm, val, prev) {
1014 if (val && cm.getOption("keyMap") != "vim")
1015 cm.setOption("keyMap", "vim");
1016 else if (!val && prev != CodeMirror.Init && /^vim/.test(cm.getOption("keyMap")))
1017 cm.setOption("keyMap", "default");
1018 });
1019  
1020 function cmKey(key, cm) {
1021 if (!cm) { return undefined; }
1022 var vimKey = cmKeyToVimKey(key);
1023 if (!vimKey) {
1024 return false;
1025 }
1026 var cmd = CodeMirror.Vim.findKey(cm, vimKey);
1027 if (typeof cmd == 'function') {
1028 CodeMirror.signal(cm, 'vim-keypress', vimKey);
1029 }
1030 return cmd;
1031 }
1032  
1033 var modifiers = {'Shift': 'S', 'Ctrl': 'C', 'Alt': 'A', 'Cmd': 'D', 'Mod': 'A'};
1034 var specialKeys = {Enter:'CR',Backspace:'BS',Delete:'Del'};
1035 function cmKeyToVimKey(key) {
1036 if (key.charAt(0) == '\'') {
1037 return key.charAt(1);
1038 }
1039 var pieces = key.split(/-(?!$)/);
1040 var lastPiece = pieces[pieces.length - 1];
1041 if (pieces.length == 1 && pieces[0].length == 1) {
1042 return false;
1043 } else if (pieces.length == 2 && pieces[0] == 'Shift' && lastPiece.length == 1) {
1044 return false;
1045 }
1046 var hasCharacter = false;
1047 for (var i = 0; i < pieces.length; i++) {
1048 var piece = pieces[i];
1049 if (piece in modifiers) { pieces[i] = modifiers[piece]; }
1050 else { hasCharacter = true; }
1051 if (piece in specialKeys) { pieces[i] = specialKeys[piece]; }
1052 }
1053 if (!hasCharacter) {
1054 return false;
1055 }
1056 if (isUpperCase(lastPiece)) {
1057 pieces[pieces.length - 1] = lastPiece.toLowerCase();
1058 }
1059 return '<' + pieces.join('-') + '>';
1060 }
1061  
1062 function getOnPasteFn(cm) {
1063 var vim = cm.state.vim;
1064 if (!vim.onPasteFn) {
1065 vim.onPasteFn = function() {
1066 if (!vim.insertMode) {
1067 cm.setCursor(offsetCursor(cm.getCursor(), 0, 1));
1068 actions.enterInsertMode(cm, {}, vim);
1069 }
1070 };
1071 }
1072 return vim.onPasteFn;
1073 }
1074  
1075 var numberRegex = /[\d]/;
1076 var wordCharTest = [CodeMirror.isWordChar, function(ch) {
1077 return ch && !CodeMirror.isWordChar(ch) && !/\s/.test(ch);
1078 }], bigWordCharTest = [function(ch) {
1079 return /\S/.test(ch);
1080 }];
1081 function makeKeyRange(start, size) {
1082 var keys = [];
1083 for (var i = start; i < start + size; i++) {
1084 keys.push(String.fromCharCode(i));
1085 }
1086 return keys;
1087 }
1088 var upperCaseAlphabet = makeKeyRange(65, 26);
1089 var lowerCaseAlphabet = makeKeyRange(97, 26);
1090 var numbers = makeKeyRange(48, 10);
1091 var validMarks = [].concat(upperCaseAlphabet, lowerCaseAlphabet, numbers, ['<', '>']);
1092 var validRegisters = [].concat(upperCaseAlphabet, lowerCaseAlphabet, numbers, ['-', '"', '.', ':', '/']);
1093  
1094 function isLine(cm, line) {
1095 return line >= cm.firstLine() && line <= cm.lastLine();
1096 }
1097 function isLowerCase(k) {
1098 return (/^[a-z]$/).test(k);
1099 }
1100 function isMatchableSymbol(k) {
1101 return '()[]{}'.indexOf(k) != -1;
1102 }
1103 function isNumber(k) {
1104 return numberRegex.test(k);
1105 }
1106 function isUpperCase(k) {
1107 return (/^[A-Z]$/).test(k);
1108 }
1109 function isWhiteSpaceString(k) {
1110 return (/^\s*$/).test(k);
1111 }
1112 function inArray(val, arr) {
1113 for (var i = 0; i < arr.length; i++) {
1114 if (arr[i] == val) {
1115 return true;
1116 }
1117 }
1118 return false;
1119 }
1120  
1121 var options = {};
1122 function defineOption(name, defaultValue, type, aliases, callback) {
1123 if (defaultValue === undefined && !callback) {
1124 throw Error('defaultValue is required unless callback is provided');
1125 }
1126 if (!type) { type = 'string'; }
1127 options[name] = {
1128 type: type,
1129 defaultValue: defaultValue,
1130 callback: callback
1131 };
1132 if (aliases) {
1133 for (var i = 0; i < aliases.length; i++) {
1134 options[aliases[i]] = options[name];
1135 }
1136 }
1137 if (defaultValue) {
1138 setOption(name, defaultValue);
1139 }
1140 }
1141  
1142 function setOption(name, value, cm, cfg) {
1143 var option = options[name];
1144 cfg = cfg || {};
1145 var scope = cfg.scope;
1146 if (!option) {
1147 throw Error('Unknown option: ' + name);
1148 }
1149 if (option.type == 'boolean') {
1150 if (value && value !== true) {
1151 throw Error('Invalid argument: ' + name + '=' + value);
1152 } else if (value !== false) {
1153 value = true;
1154 }
1155 }
1156 if (option.callback) {
1157 if (scope !== 'local') {
1158 option.callback(value, undefined);
1159 }
1160 if (scope !== 'global' && cm) {
1161 option.callback(value, cm);
1162 }
1163 } else {
1164 if (scope !== 'local') {
1165 option.value = option.type == 'boolean' ? !!value : value;
1166 }
1167 if (scope !== 'global' && cm) {
1168 cm.state.vim.options[name] = {value: value};
1169 }
1170 }
1171 }
1172  
1173 function getOption(name, cm, cfg) {
1174 var option = options[name];
1175 cfg = cfg || {};
1176 var scope = cfg.scope;
1177 if (!option) {
1178 throw Error('Unknown option: ' + name);
1179 }
1180 if (option.callback) {
1181 var local = cm && option.callback(undefined, cm);
1182 if (scope !== 'global' && local !== undefined) {
1183 return local;
1184 }
1185 if (scope !== 'local') {
1186 return option.callback();
1187 }
1188 return;
1189 } else {
1190 var local = (scope !== 'global') && (cm && cm.state.vim.options[name]);
1191 return (local || (scope !== 'local') && option || {}).value;
1192 }
1193 }
1194  
1195 defineOption('filetype', undefined, 'string', ['ft'], function(name, cm) {
1196 if (cm === undefined) {
1197 return;
1198 }
1199 if (name === undefined) {
1200 var mode = cm.getOption('mode');
1201 return mode == 'null' ? '' : mode;
1202 } else {
1203 var mode = name == '' ? 'null' : name;
1204 cm.setOption('mode', mode);
1205 }
1206 });
1207  
1208 var createCircularJumpList = function() {
1209 var size = 100;
1210 var pointer = -1;
1211 var head = 0;
1212 var tail = 0;
1213 var buffer = new Array(size);
1214 function add(cm, oldCur, newCur) {
1215 var current = pointer % size;
1216 var curMark = buffer[current];
1217 function useNextSlot(cursor) {
1218 var next = ++pointer % size;
1219 var trashMark = buffer[next];
1220 if (trashMark) {
1221 trashMark.clear();
1222 }
1223 buffer[next] = cm.setBookmark(cursor);
1224 }
1225 if (curMark) {
1226 var markPos = curMark.find();
1227 if (markPos && !cursorEqual(markPos, oldCur)) {
1228 useNextSlot(oldCur);
1229 }
1230 } else {
1231 useNextSlot(oldCur);
1232 }
1233 useNextSlot(newCur);
1234 head = pointer;
1235 tail = pointer - size + 1;
1236 if (tail < 0) {
1237 tail = 0;
1238 }
1239 }
1240 function move(cm, offset) {
1241 pointer += offset;
1242 if (pointer > head) {
1243 pointer = head;
1244 } else if (pointer < tail) {
1245 pointer = tail;
1246 }
1247 var mark = buffer[(size + pointer) % size];
1248 if (mark && !mark.find()) {
1249 var inc = offset > 0 ? 1 : -1;
1250 var newCur;
1251 var oldCur = cm.getCursor();
1252 do {
1253 pointer += inc;
1254 mark = buffer[(size + pointer) % size];
1255 if (mark &&
1256 (newCur = mark.find()) &&
1257 !cursorEqual(oldCur, newCur)) {
1258 break;
1259 }
1260 } while (pointer < head && pointer > tail);
1261 }
1262 return mark;
1263 }
1264 return {
1265 cachedCursor: undefined, //used for # and * jumps
1266 add: add,
1267 move: move
1268 };
1269 };
1270 var createInsertModeChanges = function(c) {
1271 if (c) {
1272 return {
1273 changes: c.changes,
1274 expectCursorActivityForChange: c.expectCursorActivityForChange
1275 };
1276 }
1277 return {
1278 changes: [],
1279 expectCursorActivityForChange: false
1280 };
1281 };
1282  
1283 function MacroModeState() {
1284 this.latestRegister = undefined;
1285 this.isPlaying = false;
1286 this.isRecording = false;
1287 this.replaySearchQueries = [];
1288 this.onRecordingDone = undefined;
1289 this.lastInsertModeChanges = createInsertModeChanges();
1290 }
1291 MacroModeState.prototype = {
1292 exitMacroRecordMode: function() {
1293 var macroModeState = vimGlobalState.macroModeState;
1294 if (macroModeState.onRecordingDone) {
1295 macroModeState.onRecordingDone(); // close dialog
1296 }
1297 macroModeState.onRecordingDone = undefined;
1298 macroModeState.isRecording = false;
1299 },
1300 enterMacroRecordMode: function(cm, registerName) {
1301 var register =
1302 vimGlobalState.registerController.getRegister(registerName);
1303 if (register) {
1304 register.clear();
1305 this.latestRegister = registerName;
1306 if (cm.openDialog) {
1307 this.onRecordingDone = cm.openDialog(
1308 '(recording)['+registerName+']', null, {bottom:true});
1309 }
1310 this.isRecording = true;
1311 }
1312 }
1313 };
1314  
1315 function maybeInitVimState(cm) {
1316 if (!cm.state.vim) {
1317 cm.state.vim = {
1318 inputState: new InputState(),
1319 lastEditInputState: undefined,
1320 lastEditActionCommand: undefined,
1321 lastHPos: -1,
1322 lastHSPos: -1,
1323 lastMotion: null,
1324 marks: {},
1325 fakeCursor: null,
1326 insertMode: false,
1327 insertModeRepeat: undefined,
1328 visualMode: false,
1329 visualLine: false,
1330 visualBlock: false,
1331 lastSelection: null,
1332 lastPastedText: null,
1333 sel: {},
1334 options: {}
1335 };
1336 }
1337 return cm.state.vim;
1338 }
1339 var vimGlobalState;
1340 function resetVimGlobalState() {
1341 vimGlobalState = {
1342 searchQuery: null,
1343 searchIsReversed: false,
1344 lastSubstituteReplacePart: undefined,
1345 jumpList: createCircularJumpList(),
1346 macroModeState: new MacroModeState,
1347 lastChararacterSearch: {increment:0, forward:true, selectedCharacter:''},
1348 registerController: new RegisterController({}),
1349 searchHistoryController: new HistoryController({}),
1350 exCommandHistoryController : new HistoryController({})
1351 };
1352 for (var optionName in options) {
1353 var option = options[optionName];
1354 option.value = option.defaultValue;
1355 }
1356 }
1357  
1358 var lastInsertModeKeyTimer;
1359 var vimApi= {
1360 buildKeyMap: function() {
1361 },
1362 getRegisterController: function() {
1363 return vimGlobalState.registerController;
1364 },
1365 resetVimGlobalState_: resetVimGlobalState,
1366 getVimGlobalState_: function() {
1367 return vimGlobalState;
1368 },
1369 maybeInitVimState_: maybeInitVimState,
1370  
1371 suppressErrorLogging: false,
1372  
1373 InsertModeKey: InsertModeKey,
1374 map: function(lhs, rhs, ctx) {
1375 exCommandDispatcher.map(lhs, rhs, ctx);
1376 },
1377 unmap: function(lhs, ctx) {
1378 exCommandDispatcher.unmap(lhs, ctx);
1379 },
1380 setOption: setOption,
1381 getOption: getOption,
1382 defineOption: defineOption,
1383 defineEx: function(name, prefix, func){
1384 if (!prefix) {
1385 prefix = name;
1386 } else if (name.indexOf(prefix) !== 0) {
1387 throw new Error('(Vim.defineEx) "'+prefix+'" is not a prefix of "'+name+'", command not registered');
1388 }
1389 exCommands[name]=func;
1390 exCommandDispatcher.commandMap_[prefix]={name:name, shortName:prefix, type:'api'};
1391 },
1392 handleKey: function (cm, key, origin) {
1393 var command = this.findKey(cm, key, origin);
1394 if (typeof command === 'function') {
1395 return command();
1396 }
1397 },
1398 findKey: function(cm, key, origin) {
1399 var vim = maybeInitVimState(cm);
1400 function handleMacroRecording() {
1401 var macroModeState = vimGlobalState.macroModeState;
1402 if (macroModeState.isRecording) {
1403 if (key == 'q') {
1404 macroModeState.exitMacroRecordMode();
1405 clearInputState(cm);
1406 return true;
1407 }
1408 if (origin != 'mapping') {
1409 logKey(macroModeState, key);
1410 }
1411 }
1412 }
1413 function handleEsc() {
1414 if (key == '<Esc>') {
1415 clearInputState(cm);
1416 if (vim.visualMode) {
1417 exitVisualMode(cm);
1418 } else if (vim.insertMode) {
1419 exitInsertMode(cm);
1420 }
1421 return true;
1422 }
1423 }
1424 function doKeyToKey(keys) {
1425 var match;
1426 while (keys) {
1427 match = (/<\w+-.+?>|<\w+>|./).exec(keys);
1428 <\w+-.+?><\w+> key = match[0];
1429 <\w+-.+?><\w+> keys = keys.substring(match.index + key.length);
1430 <\w+-.+?><\w+> CodeMirror.Vim.handleKey(cm, key, 'mapping');
1431 <\w+-.+?><\w+> }
1432 <\w+-.+?><\w+> }
1433  
1434 <\w+-.+?><\w+> function handleKeyInsertMode() {
1435 <\w+-.+?><\w+> if (handleEsc()) { return true; }
1436 <\w+-.+?><\w+> var keys = vim.inputState.keyBuffer = vim.inputState.keyBuffer + key;
1437 <\w+-.+?><\w+> var keysAreChars = key.length == 1;
1438 <\w+-.+?><\w+> var match = commandDispatcher.matchCommand(keys, defaultKeymap, vim.inputState, 'insert');
1439 <\w+-.+?><\w+> while (keys.length > 1 && match.type != 'full') {
1440 <\w+-.+?><\w+> var keys = vim.inputState.keyBuffer = keys.slice(1);
1441 <\w+-.+?><\w+> var thisMatch = commandDispatcher.matchCommand(keys, defaultKeymap, vim.inputState, 'insert');
1442 <\w+-.+?><\w+> if (thisMatch.type != 'none') { match = thisMatch; }
1443 <\w+-.+?><\w+> }
1444 <\w+-.+?><\w+> if (match.type == 'none') { clearInputState(cm); return false; }
1445 <\w+-.+?><\w+> else if (match.type == 'partial') {
1446 <\w+-.+?><\w+> if (lastInsertModeKeyTimer) { window.clearTimeout(lastInsertModeKeyTimer); }
1447 <\w+-.+?><\w+> lastInsertModeKeyTimer = window.setTimeout(
1448 <\w+-.+?><\w+> function() { if (vim.insertMode && vim.inputState.keyBuffer) { clearInputState(cm); } },
1449 <\w+-.+?><\w+> getOption('insertModeEscKeysTimeout'));
1450 <\w+-.+?><\w+> return !keysAreChars;
1451 <\w+-.+?><\w+> }
1452  
1453 <\w+-.+?><\w+> if (lastInsertModeKeyTimer) { window.clearTimeout(lastInsertModeKeyTimer); }
1454 <\w+-.+?><\w+> if (keysAreChars) {
1455 <\w+-.+?><\w+> var selections = cm.listSelections();
1456 <\w+-.+?><\w+> for (var i = 0; i < selections.length; i++) {
1457 <\w+-.+?><\w+> var here = selections[i].head;
1458 <\w+-.+?><\w+> cm.replaceRange('', offsetCursor(here, 0, -(keys.length - 1)), here, '+input');
1459 <\w+-.+?><\w+> }
1460 <\w+-.+?><\w+> vimGlobalState.macroModeState.lastInsertModeChanges.changes.pop();
1461 <\w+-.+?><\w+> }
1462 <\w+-.+?><\w+> clearInputState(cm);
1463 <\w+-.+?><\w+> return match.command;
1464 <\w+-.+?><\w+> }
1465  
1466 <\w+-.+?><\w+> function handleKeyNonInsertMode() {
1467 <\w+-.+?><\w+> if (handleMacroRecording() || handleEsc()) { return true; }
1468  
1469 <\w+-.+?><\w+> var keys = vim.inputState.keyBuffer = vim.inputState.keyBuffer + key;
1470 <\w+-.+?><\w+> if (/^[1-9]\d*$/.test(keys)) { return true; }
1471  
1472 <\w+-.+?><\w+> var keysMatcher = /^(\d*)(.*)$/.exec(keys);
1473 <\w+-.+?><\w+> if (!keysMatcher) { clearInputState(cm); return false; }
1474 <\w+-.+?><\w+> var context = vim.visualMode ? 'visual' :
1475 <\w+-.+?><\w+> 'normal';
1476 <\w+-.+?><\w+> var match = commandDispatcher.matchCommand(keysMatcher[2] || keysMatcher[1], defaultKeymap, vim.inputState, context);
1477 <\w+-.+?><\w+> if (match.type == 'none') { clearInputState(cm); return false; }
1478 <\w+-.+?><\w+> else if (match.type == 'partial') { return true; }
1479  
1480 <\w+-.+?><\w+> vim.inputState.keyBuffer = '';
1481 <\w+-.+?><\w+> var keysMatcher = /^(\d*)(.*)$/.exec(keys);
1482 <\w+-.+?><\w+> if (keysMatcher[1] && keysMatcher[1] != '0') {
1483 <\w+-.+?><\w+> vim.inputState.pushRepeatDigit(keysMatcher[1]);
1484 <\w+-.+?><\w+> }
1485 <\w+-.+?><\w+> return match.command;
1486 <\w+-.+?><\w+> }
1487  
1488 <\w+-.+?><\w+> var command;
1489 <\w+-.+?><\w+> if (vim.insertMode) { command = handleKeyInsertMode(); }
1490 <\w+-.+?><\w+> else { command = handleKeyNonInsertMode(); }
1491 <\w+-.+?><\w+> if (command === false) {
1492 <\w+-.+?><\w+> return undefined;
1493 <\w+-.+?><\w+> } else if (command === true) {
1494 <\w+-.+?><\w+> return function() { return true; };
1495 <\w+-.+?><\w+> } else {
1496 <\w+-.+?><\w+> return function() {
1497 <\w+-.+?><\w+> if ((command.operator || command.isEdit) && cm.getOption('readOnly'))
1498 <\w+-.+?><\w+> return; // ace_patch
1499 <\w+-.+?><\w+> return cm.operation(function() {
1500 <\w+-.+?><\w+> cm.curOp.isVimOp = true;
1501 <\w+-.+?><\w+> try {
1502 <\w+-.+?><\w+> if (command.type == 'keyToKey') {
1503 <\w+-.+?><\w+> doKeyToKey(command.toKeys);
1504 <\w+-.+?><\w+> } else {
1505 <\w+-.+?><\w+> commandDispatcher.processCommand(cm, vim, command);
1506 <\w+-.+?><\w+> }
1507 <\w+-.+?><\w+> } catch (e) {
1508 <\w+-.+?><\w+> cm.state.vim = undefined;
1509 <\w+-.+?><\w+> maybeInitVimState(cm);
1510 <\w+-.+?><\w+> if (!CodeMirror.Vim.suppressErrorLogging) {
1511 <\w+-.+?><\w+> console['log'](e);
1512 <\w+-.+?><\w+> }
1513 <\w+-.+?><\w+> throw e;
1514 <\w+-.+?><\w+> }
1515 <\w+-.+?><\w+> return true;
1516 <\w+-.+?><\w+> });
1517 <\w+-.+?><\w+> };
1518 <\w+-.+?><\w+> }
1519 <\w+-.+?><\w+> },
1520 <\w+-.+?><\w+> handleEx: function(cm, input) {
1521 <\w+-.+?><\w+> exCommandDispatcher.processCommand(cm, input);
1522 <\w+-.+?><\w+> },
1523  
1524 <\w+-.+?><\w+> defineMotion: defineMotion,
1525 <\w+-.+?><\w+> defineAction: defineAction,
1526 <\w+-.+?><\w+> defineOperator: defineOperator,
1527 <\w+-.+?><\w+> mapCommand: mapCommand,
1528 <\w+-.+?><\w+> _mapCommand: _mapCommand,
1529  
1530 <\w+-.+?><\w+> defineRegister: defineRegister,
1531  
1532 <\w+-.+?><\w+> exitVisualMode: exitVisualMode,
1533 <\w+-.+?><\w+> exitInsertMode: exitInsertMode
1534 <\w+-.+?><\w+> };
1535 <\w+-.+?><\w+> function InputState() {
1536 <\w+-.+?><\w+> this.prefixRepeat = [];
1537 <\w+-.+?><\w+> this.motionRepeat = [];
1538  
1539 <\w+-.+?><\w+> this.operator = null;
1540 <\w+-.+?><\w+> this.operatorArgs = null;
1541 <\w+-.+?><\w+> this.motion = null;
1542 <\w+-.+?><\w+> this.motionArgs = null;
1543 <\w+-.+?><\w+> this.keyBuffer = []; // For matching multi-key commands.
1544 <\w+-.+?><\w+> this.registerName = null; // Defaults to the unnamed register.
1545 <\w+-.+?><\w+> }
1546 <\w+-.+?><\w+> InputState.prototype.pushRepeatDigit = function(n) {
1547 <\w+-.+?><\w+> if (!this.operator) {
1548 <\w+-.+?><\w+> this.prefixRepeat = this.prefixRepeat.concat(n);
1549 <\w+-.+?><\w+> } else {
1550 <\w+-.+?><\w+> this.motionRepeat = this.motionRepeat.concat(n);
1551 <\w+-.+?><\w+> }
1552 <\w+-.+?><\w+> };
1553 <\w+-.+?><\w+> InputState.prototype.getRepeat = function() {
1554 <\w+-.+?><\w+> var repeat = 0;
1555 <\w+-.+?><\w+> if (this.prefixRepeat.length > 0 || this.motionRepeat.length > 0) {
1556 <\w+-.+?><\w+> repeat = 1;
1557 <\w+-.+?><\w+> if (this.prefixRepeat.length > 0) {
1558 <\w+-.+?><\w+> repeat *= parseInt(this.prefixRepeat.join(''), 10);
1559 <\w+-.+?><\w+> }
1560 <\w+-.+?><\w+> if (this.motionRepeat.length > 0) {
1561 <\w+-.+?><\w+> repeat *= parseInt(this.motionRepeat.join(''), 10);
1562 <\w+-.+?><\w+> }
1563 <\w+-.+?><\w+> }
1564 <\w+-.+?><\w+> return repeat;
1565 <\w+-.+?><\w+> };
1566  
1567 <\w+-.+?><\w+> function clearInputState(cm, reason) {
1568 <\w+-.+?><\w+> cm.state.vim.inputState = new InputState();
1569 <\w+-.+?><\w+> CodeMirror.signal(cm, 'vim-command-done', reason);
1570 <\w+-.+?><\w+> }
1571 <\w+-.+?><\w+> function Register(text, linewise, blockwise) {
1572 <\w+-.+?><\w+> this.clear();
1573 <\w+-.+?><\w+> this.keyBuffer = [text || ''];
1574 <\w+-.+?><\w+> this.insertModeChanges = [];
1575 <\w+-.+?><\w+> this.searchQueries = [];
1576 <\w+-.+?><\w+> this.linewise = !!linewise;
1577 <\w+-.+?><\w+> this.blockwise = !!blockwise;
1578 <\w+-.+?><\w+> }
1579 <\w+-.+?><\w+> Register.prototype = {
1580 <\w+-.+?><\w+> setText: function(text, linewise, blockwise) {
1581 <\w+-.+?><\w+> this.keyBuffer = [text || ''];
1582 <\w+-.+?><\w+> this.linewise = !!linewise;
1583 <\w+-.+?><\w+> this.blockwise = !!blockwise;
1584 <\w+-.+?><\w+> },
1585 <\w+-.+?><\w+> pushText: function(text, linewise) {
1586 <\w+-.+?><\w+> if (linewise) {
1587 <\w+-.+?><\w+> if (!this.linewise) {
1588 <\w+-.+?><\w+> this.keyBuffer.push('\n');
1589 <\w+-.+?><\w+> }
1590 <\w+-.+?><\w+> this.linewise = true;
1591 <\w+-.+?><\w+> }
1592 <\w+-.+?><\w+> this.keyBuffer.push(text);
1593 <\w+-.+?><\w+> },
1594 <\w+-.+?><\w+> pushInsertModeChanges: function(changes) {
1595 <\w+-.+?><\w+> this.insertModeChanges.push(createInsertModeChanges(changes));
1596 <\w+-.+?><\w+> },
1597 <\w+-.+?><\w+> pushSearchQuery: function(query) {
1598 <\w+-.+?><\w+> this.searchQueries.push(query);
1599 <\w+-.+?><\w+> },
1600 <\w+-.+?><\w+> clear: function() {
1601 <\w+-.+?><\w+> this.keyBuffer = [];
1602 <\w+-.+?><\w+> this.insertModeChanges = [];
1603 <\w+-.+?><\w+> this.searchQueries = [];
1604 <\w+-.+?><\w+> this.linewise = false;
1605 <\w+-.+?><\w+> },
1606 <\w+-.+?><\w+> toString: function() {
1607 <\w+-.+?><\w+> return this.keyBuffer.join('');
1608 <\w+-.+?><\w+> }
1609 <\w+-.+?><\w+> };
1610 <\w+-.+?><\w+> function defineRegister(name, register) {
1611 <\w+-.+?><\w+> var registers = vimGlobalState.registerController.registers[name];
1612 <\w+-.+?><\w+> if (!name || name.length != 1) {
1613 <\w+-.+?><\w+> throw Error('Register name must be 1 character');
1614 <\w+-.+?><\w+> }
1615 <\w+-.+?><\w+> registers[name] = register;
1616 <\w+-.+?><\w+> validRegisters.push(name);
1617 <\w+-.+?><\w+> }
1618 <\w+-.+?><\w+> function RegisterController(registers) {
1619 <\w+-.+?><\w+> this.registers = registers;
1620 <\w+-.+?><\w+> this.unnamedRegister = registers['"'] = new Register();
1621 <\w+-.+?><\w+> registers['.'] = new Register();
1622 <\w+-.+?><\w+> registers[':'] = new Register();
1623 <\w+-.+?><\w+> registers['/'] = new Register();
1624 <\w+-.+?><\w+> }
1625 <\w+-.+?><\w+> RegisterController.prototype = {
1626 <\w+-.+?><\w+> pushText: function(registerName, operator, text, linewise, blockwise) {
1627 <\w+-.+?><\w+> if (linewise && text.charAt(0) == '\n') {
1628 <\w+-.+?><\w+> text = text.slice(1) + '\n';
1629 <\w+-.+?><\w+> }
1630 <\w+-.+?><\w+> if (linewise && text.charAt(text.length - 1) !== '\n'){
1631 <\w+-.+?><\w+> text += '\n';
1632 <\w+-.+?><\w+> }
1633 <\w+-.+?><\w+> var register = this.isValidRegister(registerName) ?
1634 <\w+-.+?><\w+> this.getRegister(registerName) : null;
1635 <\w+-.+?><\w+> if (!register) {
1636 <\w+-.+?><\w+> switch (operator) {
1637 <\w+-.+?><\w+> case 'yank':
1638 <\w+-.+?><\w+> this.registers['0'] = new Register(text, linewise, blockwise);
1639 <\w+-.+?><\w+> break;
1640 <\w+-.+?><\w+> case 'delete':
1641 <\w+-.+?><\w+> case 'change':
1642 <\w+-.+?><\w+> if (text.indexOf('\n') == -1) {
1643 <\w+-.+?><\w+> this.registers['-'] = new Register(text, linewise);
1644 <\w+-.+?><\w+> } else {
1645 <\w+-.+?><\w+> this.shiftNumericRegisters_();
1646 <\w+-.+?><\w+> this.registers['1'] = new Register(text, linewise);
1647 <\w+-.+?><\w+> }
1648 <\w+-.+?><\w+> break;
1649 <\w+-.+?><\w+> }
1650 <\w+-.+?><\w+> this.unnamedRegister.setText(text, linewise, blockwise);
1651 <\w+-.+?><\w+> return;
1652 <\w+-.+?><\w+> }
1653 <\w+-.+?><\w+> var append = isUpperCase(registerName);
1654 <\w+-.+?><\w+> if (append) {
1655 <\w+-.+?><\w+> register.pushText(text, linewise);
1656 <\w+-.+?><\w+> } else {
1657 <\w+-.+?><\w+> register.setText(text, linewise, blockwise);
1658 <\w+-.+?><\w+> }
1659 <\w+-.+?><\w+> this.unnamedRegister.setText(register.toString(), linewise);
1660 <\w+-.+?><\w+> },
1661 <\w+-.+?><\w+> getRegister: function(name) {
1662 <\w+-.+?><\w+> if (!this.isValidRegister(name)) {
1663 <\w+-.+?><\w+> return this.unnamedRegister;
1664 <\w+-.+?><\w+> }
1665 <\w+-.+?><\w+> name = name.toLowerCase();
1666 <\w+-.+?><\w+> if (!this.registers[name]) {
1667 <\w+-.+?><\w+> this.registers[name] = new Register();
1668 <\w+-.+?><\w+> }
1669 <\w+-.+?><\w+> return this.registers[name];
1670 <\w+-.+?><\w+> },
1671 <\w+-.+?><\w+> isValidRegister: function(name) {
1672 <\w+-.+?><\w+> return name && inArray(name, validRegisters);
1673 <\w+-.+?><\w+> },
1674 <\w+-.+?><\w+> shiftNumericRegisters_: function() {
1675 <\w+-.+?><\w+> for (var i = 9; i >= 2; i--) {
1676 <\w+-.+?><\w+> this.registers[i] = this.getRegister('' + (i - 1));
1677 <\w+-.+?><\w+> }
1678 <\w+-.+?><\w+> }
1679 <\w+-.+?><\w+> };
1680 <\w+-.+?><\w+> function HistoryController() {
1681 <\w+-.+?><\w+> this.historyBuffer = [];
1682 <\w+-.+?><\w+> this.iterator;
1683 <\w+-.+?><\w+> this.initialPrefix = null;
1684 <\w+-.+?><\w+> }
1685 <\w+-.+?><\w+> HistoryController.prototype = {
1686 <\w+-.+?><\w+> nextMatch: function (input, up) {
1687 <\w+-.+?><\w+> var historyBuffer = this.historyBuffer;
1688 <\w+-.+?><\w+> var dir = up ? -1 : 1;
1689 <\w+-.+?><\w+> if (this.initialPrefix === null) this.initialPrefix = input;
1690 <\w+-.+?><\w+> for (var i = this.iterator + dir; up ? i >= 0 : i < historyBuffer.length; i+= dir) {
1691 <\w+-.+?><\w+> var element = historyBuffer[i];
1692 <\w+-.+?><\w+> for (var j = 0; j <= element.length; j++) {
1693 <\w+-.+?><\w+> if (this.initialPrefix == element.substring(0, j)) {
1694 <\w+-.+?><\w+> this.iterator = i;
1695 <\w+-.+?><\w+> return element;
1696 <\w+-.+?><\w+> }
1697 <\w+-.+?><\w+> }
1698 <\w+-.+?><\w+> }
1699 <\w+-.+?><\w+> if (i >= historyBuffer.length) {
1700 <\w+-.+?><\w+> this.iterator = historyBuffer.length;
1701 <\w+-.+?><\w+> return this.initialPrefix;
1702 <\w+-.+?><\w+> }
1703 <\w+-.+?><\w+> if (i < 0 ) return input;
1704 <\w+-.+?><\w+> },
1705 <\w+-.+?><\w+> pushInput: function(input) {
1706 <\w+-.+?><\w+> var index = this.historyBuffer.indexOf(input);
1707 <\w+-.+?><\w+> if (index > -1) this.historyBuffer.splice(index, 1);
1708 <\w+-.+?><\w+> if (input.length) this.historyBuffer.push(input);
1709 <\w+-.+?><\w+> },
1710 <\w+-.+?><\w+> reset: function() {
1711 <\w+-.+?><\w+> this.initialPrefix = null;
1712 <\w+-.+?><\w+> this.iterator = this.historyBuffer.length;
1713 <\w+-.+?><\w+> }
1714 <\w+-.+?><\w+> };
1715 <\w+-.+?><\w+> var commandDispatcher = {
1716 <\w+-.+?><\w+> matchCommand: function(keys, keyMap, inputState, context) {
1717 <\w+-.+?><\w+> var matches = commandMatches(keys, keyMap, context, inputState);
1718 <\w+-.+?><\w+> if (!matches.full && !matches.partial) {
1719 <\w+-.+?><\w+> return {type: 'none'};
1720 <\w+-.+?><\w+> } else if (!matches.full && matches.partial) {
1721 <\w+-.+?><\w+> return {type: 'partial'};
1722 <\w+-.+?><\w+> }
1723  
1724 <\w+-.+?><\w+> var bestMatch;
1725 <\w+-.+?><\w+> for (var i = 0; i < matches.full.length; i++) {
1726 <\w+-.+?><\w+> var match = matches.full[i];
1727 <\w+-.+?><\w+> if (!bestMatch) {
1728 <\w+-.+?><\w+> bestMatch = match;
1729 <\w+-.+?><\w+> }
1730 <\w+-.+?><\w+> }
1731 <\w+-.+?><\w+> if (bestMatch.keys.slice(-11) == '<character>') {
1732 <\w+-.+?><\w+> inputState.selectedCharacter = lastChar(keys);
1733 <\w+-.+?><\w+> }
1734 <\w+-.+?><\w+> return {type: 'full', command: bestMatch};
1735 <\w+-.+?><\w+> },
1736 <\w+-.+?><\w+> processCommand: function(cm, vim, command) {
1737 <\w+-.+?><\w+> vim.inputState.repeatOverride = command.repeatOverride;
1738 <\w+-.+?><\w+> switch (command.type) {
1739 <\w+-.+?><\w+> case 'motion':
1740 <\w+-.+?><\w+> this.processMotion(cm, vim, command);
1741 <\w+-.+?><\w+> break;
1742 <\w+-.+?><\w+> case 'operator':
1743 <\w+-.+?><\w+> this.processOperator(cm, vim, command);
1744 <\w+-.+?><\w+> break;
1745 <\w+-.+?><\w+> case 'operatorMotion':
1746 <\w+-.+?><\w+> this.processOperatorMotion(cm, vim, command);
1747 <\w+-.+?><\w+> break;
1748 <\w+-.+?><\w+> case 'action':
1749 <\w+-.+?><\w+> this.processAction(cm, vim, command);
1750 <\w+-.+?><\w+> break;
1751 <\w+-.+?><\w+> case 'search':
1752 <\w+-.+?><\w+> this.processSearch(cm, vim, command);
1753 <\w+-.+?><\w+> break;
1754 <\w+-.+?><\w+> case 'ex':
1755 <\w+-.+?><\w+> case 'keyToEx':
1756 <\w+-.+?><\w+> this.processEx(cm, vim, command);
1757 <\w+-.+?><\w+> break;
1758 <\w+-.+?><\w+> default:
1759 <\w+-.+?><\w+> break;
1760 <\w+-.+?><\w+> }
1761 <\w+-.+?><\w+> },
1762 <\w+-.+?><\w+> processMotion: function(cm, vim, command) {
1763 <\w+-.+?><\w+> vim.inputState.motion = command.motion;
1764 <\w+-.+?><\w+> vim.inputState.motionArgs = copyArgs(command.motionArgs);
1765 <\w+-.+?><\w+> this.evalInput(cm, vim);
1766 <\w+-.+?><\w+> },
1767 <\w+-.+?><\w+> processOperator: function(cm, vim, command) {
1768 <\w+-.+?><\w+> var inputState = vim.inputState;
1769 <\w+-.+?><\w+> if (inputState.operator) {
1770 <\w+-.+?><\w+> if (inputState.operator == command.operator) {
1771 <\w+-.+?><\w+> inputState.motion = 'expandToLine';
1772 <\w+-.+?><\w+> inputState.motionArgs = { linewise: true };
1773 <\w+-.+?><\w+> this.evalInput(cm, vim);
1774 <\w+-.+?><\w+> return;
1775 <\w+-.+?><\w+> } else {
1776 <\w+-.+?><\w+> clearInputState(cm);
1777 <\w+-.+?><\w+> }
1778 <\w+-.+?><\w+> }
1779 <\w+-.+?><\w+> inputState.operator = command.operator;
1780 <\w+-.+?><\w+> inputState.operatorArgs = copyArgs(command.operatorArgs);
1781 <\w+-.+?><\w+> if (vim.visualMode) {
1782 <\w+-.+?><\w+> this.evalInput(cm, vim);
1783 <\w+-.+?><\w+> }
1784 <\w+-.+?><\w+> },
1785 <\w+-.+?><\w+> processOperatorMotion: function(cm, vim, command) {
1786 <\w+-.+?><\w+> var visualMode = vim.visualMode;
1787 <\w+-.+?><\w+> var operatorMotionArgs = copyArgs(command.operatorMotionArgs);
1788 <\w+-.+?><\w+> if (operatorMotionArgs) {
1789 <\w+-.+?><\w+> if (visualMode && operatorMotionArgs.visualLine) {
1790 <\w+-.+?><\w+> vim.visualLine = true;
1791 <\w+-.+?><\w+> }
1792 <\w+-.+?><\w+> }
1793 <\w+-.+?><\w+> this.processOperator(cm, vim, command);
1794 <\w+-.+?><\w+> if (!visualMode) {
1795 <\w+-.+?><\w+> this.processMotion(cm, vim, command);
1796 <\w+-.+?><\w+> }
1797 <\w+-.+?><\w+> },
1798 <\w+-.+?><\w+> processAction: function(cm, vim, command) {
1799 <\w+-.+?><\w+> var inputState = vim.inputState;
1800 <\w+-.+?><\w+> var repeat = inputState.getRepeat();
1801 <\w+-.+?><\w+> var repeatIsExplicit = !!repeat;
1802 <\w+-.+?><\w+> var actionArgs = copyArgs(command.actionArgs) || {};
1803 <\w+-.+?><\w+> if (inputState.selectedCharacter) {
1804 <\w+-.+?><\w+> actionArgs.selectedCharacter = inputState.selectedCharacter;
1805 <\w+-.+?><\w+> }
1806 <\w+-.+?><\w+> if (command.operator) {
1807 <\w+-.+?><\w+> this.processOperator(cm, vim, command);
1808 <\w+-.+?><\w+> }
1809 <\w+-.+?><\w+> if (command.motion) {
1810 <\w+-.+?><\w+> this.processMotion(cm, vim, command);
1811 <\w+-.+?><\w+> }
1812 <\w+-.+?><\w+> if (command.motion || command.operator) {
1813 <\w+-.+?><\w+> this.evalInput(cm, vim);
1814 <\w+-.+?><\w+> }
1815 <\w+-.+?><\w+> actionArgs.repeat = repeat || 1;
1816 <\w+-.+?><\w+> actionArgs.repeatIsExplicit = repeatIsExplicit;
1817 <\w+-.+?><\w+> actionArgs.registerName = inputState.registerName;
1818 <\w+-.+?><\w+> clearInputState(cm);
1819 <\w+-.+?><\w+> vim.lastMotion = null;
1820 <\w+-.+?><\w+> if (command.isEdit) {
1821 <\w+-.+?><\w+> this.recordLastEdit(vim, inputState, command);
1822 <\w+-.+?><\w+> }
1823 <\w+-.+?><\w+> actions[command.action](cm, actionArgs, vim);
1824 <\w+-.+?><\w+> },
1825 <\w+-.+?><\w+> processSearch: function(cm, vim, command) {
1826 <\w+-.+?><\w+> if (!cm.getSearchCursor) {
1827 <\w+-.+?><\w+> return;
1828 <\w+-.+?><\w+> }
1829 <\w+-.+?><\w+> var forward = command.searchArgs.forward;
1830 <\w+-.+?><\w+> var wholeWordOnly = command.searchArgs.wholeWordOnly;
1831 <\w+-.+?><\w+> getSearchState(cm).setReversed(!forward);
1832 <\w+-.+?><\w+> var promptPrefix = (forward) ? '/' : '?';
1833 <\w+-.+?><\w+> var originalQuery = getSearchState(cm).getQuery();
1834 <\w+-.+?><\w+> var originalScrollPos = cm.getScrollInfo();
1835 <\w+-.+?><\w+> function handleQuery(query, ignoreCase, smartCase) {
1836 <\w+-.+?><\w+> vimGlobalState.searchHistoryController.pushInput(query);
1837 <\w+-.+?><\w+> vimGlobalState.searchHistoryController.reset();
1838 <\w+-.+?><\w+> try {
1839 <\w+-.+?><\w+> updateSearchQuery(cm, query, ignoreCase, smartCase);
1840 <\w+-.+?><\w+> } catch (e) {
1841 <\w+-.+?><\w+> showConfirm(cm, 'Invalid regex: ' + query);
1842 <\w+-.+?><\w+> clearInputState(cm);
1843 <\w+-.+?><\w+> return;
1844 <\w+-.+?><\w+> }
1845 <\w+-.+?><\w+> commandDispatcher.processMotion(cm, vim, {
1846 <\w+-.+?><\w+> type: 'motion',
1847 <\w+-.+?><\w+> motion: 'findNext',
1848 <\w+-.+?><\w+> motionArgs: { forward: true, toJumplist: command.searchArgs.toJumplist }
1849 <\w+-.+?><\w+> });
1850 <\w+-.+?><\w+> }
1851 <\w+-.+?><\w+> function onPromptClose(query) {
1852 <\w+-.+?><\w+> cm.scrollTo(originalScrollPos.left, originalScrollPos.top);
1853 <\w+-.+?><\w+> handleQuery(query, true /** ignoreCase */, true /** smartCase */);
1854 <\w+-.+?><\w+> var macroModeState = vimGlobalState.macroModeState;
1855 <\w+-.+?><\w+> if (macroModeState.isRecording) {
1856 <\w+-.+?><\w+> logSearchQuery(macroModeState, query);
1857 <\w+-.+?><\w+> }
1858 <\w+-.+?><\w+> }
1859 <\w+-.+?><\w+> function onPromptKeyUp(e, query, close) {
1860 <\w+-.+?><\w+> var keyName = CodeMirror.keyName(e), up;
1861 <\w+-.+?><\w+> if (keyName == 'Up' || keyName == 'Down') {
1862 <\w+-.+?><\w+> up = keyName == 'Up' ? true : false;
1863 <\w+-.+?><\w+> query = vimGlobalState.searchHistoryController.nextMatch(query, up) || '';
1864 <\w+-.+?><\w+> close(query);
1865 <\w+-.+?><\w+> } else {
1866 <\w+-.+?><\w+> if ( keyName != 'Left' && keyName != 'Right' && keyName != 'Ctrl' && keyName != 'Alt' && keyName != 'Shift')
1867 <\w+-.+?><\w+> vimGlobalState.searchHistoryController.reset();
1868 <\w+-.+?><\w+> }
1869 <\w+-.+?><\w+> var parsedQuery;
1870 <\w+-.+?><\w+> try {
1871 <\w+-.+?><\w+> parsedQuery = updateSearchQuery(cm, query,
1872 <\w+-.+?><\w+> true /** ignoreCase */, true /** smartCase */);
1873 <\w+-.+?><\w+> } catch (e) {
1874 <\w+-.+?><\w+> }
1875 <\w+-.+?><\w+> if (parsedQuery) {
1876 <\w+-.+?><\w+> cm.scrollIntoView(findNext(cm, !forward, parsedQuery), 30);
1877 <\w+-.+?><\w+> } else {
1878 <\w+-.+?><\w+> clearSearchHighlight(cm);
1879 <\w+-.+?><\w+> cm.scrollTo(originalScrollPos.left, originalScrollPos.top);
1880 <\w+-.+?><\w+> }
1881 <\w+-.+?><\w+> }
1882 <\w+-.+?><\w+> function onPromptKeyDown(e, query, close) {
1883 <\w+-.+?><\w+> var keyName = CodeMirror.keyName(e);
1884 <\w+-.+?><\w+> if (keyName == 'Esc' || keyName == 'Ctrl-C' || keyName == 'Ctrl-[' ||
1885 <\w+-.+?><\w+> (keyName == 'Backspace' && query == '')) {
1886 <\w+-.+?><\w+> vimGlobalState.searchHistoryController.pushInput(query);
1887 <\w+-.+?><\w+> vimGlobalState.searchHistoryController.reset();
1888 <\w+-.+?><\w+> updateSearchQuery(cm, originalQuery);
1889 <\w+-.+?><\w+> clearSearchHighlight(cm);
1890 <\w+-.+?><\w+> cm.scrollTo(originalScrollPos.left, originalScrollPos.top);
1891 <\w+-.+?><\w+> CodeMirror.e_stop(e);
1892 <\w+-.+?><\w+> clearInputState(cm);
1893 <\w+-.+?><\w+> close();
1894 <\w+-.+?><\w+> cm.focus();
1895 <\w+-.+?><\w+> } else if (keyName == 'Ctrl-U') {
1896 <\w+-.+?><\w+> CodeMirror.e_stop(e);
1897 <\w+-.+?><\w+> close('');
1898 <\w+-.+?><\w+> }
1899 <\w+-.+?><\w+> }
1900 <\w+-.+?><\w+> switch (command.searchArgs.querySrc) {
1901 <\w+-.+?><\w+> case 'prompt':
1902 <\w+-.+?><\w+> var macroModeState = vimGlobalState.macroModeState;
1903 <\w+-.+?><\w+> if (macroModeState.isPlaying) {
1904 <\w+-.+?><\w+> var query = macroModeState.replaySearchQueries.shift();
1905 <\w+-.+?><\w+> handleQuery(query, true /** ignoreCase */, false /** smartCase */);
1906 <\w+-.+?><\w+> } else {
1907 <\w+-.+?><\w+> showPrompt(cm, {
1908 <\w+-.+?><\w+> onClose: onPromptClose,
1909 <\w+-.+?><\w+> prefix: promptPrefix,
1910 <\w+-.+?><\w+> desc: searchPromptDesc,
1911 <\w+-.+?><\w+> onKeyUp: onPromptKeyUp,
1912 <\w+-.+?><\w+> onKeyDown: onPromptKeyDown
1913 <\w+-.+?><\w+> });
1914 <\w+-.+?><\w+> }
1915 <\w+-.+?><\w+> break;
1916 <\w+-.+?><\w+> case 'wordUnderCursor':
1917 <\w+-.+?><\w+> var word = expandWordUnderCursor(cm, false /** inclusive */,
1918 <\w+-.+?><\w+> true /** forward */, false /** bigWord */,
1919 <\w+-.+?><\w+> true /** noSymbol */);
1920 <\w+-.+?><\w+> var isKeyword = true;
1921 <\w+-.+?><\w+> if (!word) {
1922 <\w+-.+?><\w+> word = expandWordUnderCursor(cm, false /** inclusive */,
1923 <\w+-.+?><\w+> true /** forward */, false /** bigWord */,
1924 <\w+-.+?><\w+> false /** noSymbol */);
1925 <\w+-.+?><\w+> isKeyword = false;
1926 <\w+-.+?><\w+> }
1927 <\w+-.+?><\w+> if (!word) {
1928 <\w+-.+?><\w+> return;
1929 <\w+-.+?><\w+> }
1930 <\w+-.+?><\w+> var query = cm.getLine(word.start.line).substring(word.start.ch,
1931 <\w+-.+?><\w+> word.end.ch);
1932 <\w+-.+?><\w+> if (isKeyword && wholeWordOnly) {
1933 <\w+-.+?><\w+> query = '\\b' + query + '\\b';
1934 <\w+-.+?><\w+> } else {
1935 <\w+-.+?><\w+> query = escapeRegex(query);
1936 <\w+-.+?><\w+> }
1937 <\w+-.+?><\w+> vimGlobalState.jumpList.cachedCursor = cm.getCursor();
1938 <\w+-.+?><\w+> cm.setCursor(word.start);
1939  
1940 <\w+-.+?><\w+> handleQuery(query, true /** ignoreCase */, false /** smartCase */);
1941 <\w+-.+?><\w+> break;
1942 <\w+-.+?><\w+> }
1943 <\w+-.+?><\w+> },
1944 <\w+-.+?><\w+> processEx: function(cm, vim, command) {
1945 <\w+-.+?><\w+> function onPromptClose(input) {
1946 <\w+-.+?><\w+> vimGlobalState.exCommandHistoryController.pushInput(input);
1947 <\w+-.+?><\w+> vimGlobalState.exCommandHistoryController.reset();
1948 <\w+-.+?><\w+> exCommandDispatcher.processCommand(cm, input);
1949 <\w+-.+?><\w+> }
1950 <\w+-.+?><\w+> function onPromptKeyDown(e, input, close) {
1951 <\w+-.+?><\w+> var keyName = CodeMirror.keyName(e), up;
1952 <\w+-.+?><\w+> if (keyName == 'Esc' || keyName == 'Ctrl-C' || keyName == 'Ctrl-[' ||
1953 <\w+-.+?><\w+> (keyName == 'Backspace' && input == '')) {
1954 <\w+-.+?><\w+> vimGlobalState.exCommandHistoryController.pushInput(input);
1955 <\w+-.+?><\w+> vimGlobalState.exCommandHistoryController.reset();
1956 <\w+-.+?><\w+> CodeMirror.e_stop(e);
1957 <\w+-.+?><\w+> clearInputState(cm);
1958 <\w+-.+?><\w+> close();
1959 <\w+-.+?><\w+> cm.focus();
1960 <\w+-.+?><\w+> }
1961 <\w+-.+?><\w+> if (keyName == 'Up' || keyName == 'Down') {
1962 <\w+-.+?><\w+> up = keyName == 'Up' ? true : false;
1963 <\w+-.+?><\w+> input = vimGlobalState.exCommandHistoryController.nextMatch(input, up) || '';
1964 <\w+-.+?><\w+> close(input);
1965 <\w+-.+?><\w+> } else if (keyName == 'Ctrl-U') {
1966 <\w+-.+?><\w+> CodeMirror.e_stop(e);
1967 <\w+-.+?><\w+> close('');
1968 <\w+-.+?><\w+> } else {
1969 <\w+-.+?><\w+> if ( keyName != 'Left' && keyName != 'Right' && keyName != 'Ctrl' && keyName != 'Alt' && keyName != 'Shift')
1970 <\w+-.+?><\w+> vimGlobalState.exCommandHistoryController.reset();
1971 <\w+-.+?><\w+> }
1972 <\w+-.+?><\w+> }
1973 <\w+-.+?><\w+> if (command.type == 'keyToEx') {
1974 <\w+-.+?><\w+> exCommandDispatcher.processCommand(cm, command.exArgs.input);
1975 <\w+-.+?><\w+> } else {
1976 <\w+-.+?><\w+> if (vim.visualMode) {
1977 <\w+-.+?><\w+> showPrompt(cm, { onClose: onPromptClose, prefix: ':', value: '\'<,\'>',
1978 <\w+-.+?><\w+> onKeyDown: onPromptKeyDown});
1979 <\w+-.+?><\w+> } else {
1980 <\w+-.+?><\w+> showPrompt(cm, { onClose: onPromptClose, prefix: ':',
1981 <\w+-.+?><\w+> onKeyDown: onPromptKeyDown});
1982 <\w+-.+?><\w+> }
1983 <\w+-.+?><\w+> }
1984 <\w+-.+?><\w+> },
1985 <\w+-.+?><\w+> evalInput: function(cm, vim) {
1986 <\w+-.+?><\w+> var inputState = vim.inputState;
1987 <\w+-.+?><\w+> var motion = inputState.motion;
1988 <\w+-.+?><\w+> var motionArgs = inputState.motionArgs || {};
1989 <\w+-.+?><\w+> var operator = inputState.operator;
1990 <\w+-.+?><\w+> var operatorArgs = inputState.operatorArgs || {};
1991 <\w+-.+?><\w+> var registerName = inputState.registerName;
1992 <\w+-.+?><\w+> var sel = vim.sel;
1993 <\w+-.+?><\w+> var origHead = copyCursor(vim.visualMode ? clipCursorToContent(cm, sel.head): cm.getCursor('head'));
1994 <\w+-.+?><\w+> var origAnchor = copyCursor(vim.visualMode ? clipCursorToContent(cm, sel.anchor) : cm.getCursor('anchor'));
1995 <\w+-.+?><\w+> var oldHead = copyCursor(origHead);
1996 <\w+-.+?><\w+> var oldAnchor = copyCursor(origAnchor);
1997 <\w+-.+?><\w+> var newHead, newAnchor;
1998 <\w+-.+?><\w+> var repeat;
1999 <\w+-.+?><\w+> if (operator) {
2000 <\w+-.+?><\w+> this.recordLastEdit(vim, inputState);
2001 <\w+-.+?><\w+> }
2002 <\w+-.+?><\w+> if (inputState.repeatOverride !== undefined) {
2003 <\w+-.+?><\w+> repeat = inputState.repeatOverride;
2004 <\w+-.+?><\w+> } else {
2005 <\w+-.+?><\w+> repeat = inputState.getRepeat();
2006 <\w+-.+?><\w+> }
2007 <\w+-.+?><\w+> if (repeat > 0 && motionArgs.explicitRepeat) {
2008 <\w+-.+?><\w+> motionArgs.repeatIsExplicit = true;
2009 <\w+-.+?><\w+> } else if (motionArgs.noRepeat ||
2010 <\w+-.+?><\w+> (!motionArgs.explicitRepeat && repeat === 0)) {
2011 <\w+-.+?><\w+> repeat = 1;
2012 <\w+-.+?><\w+> motionArgs.repeatIsExplicit = false;
2013 <\w+-.+?><\w+> }
2014 <\w+-.+?><\w+> if (inputState.selectedCharacter) {
2015 <\w+-.+?><\w+> motionArgs.selectedCharacter = operatorArgs.selectedCharacter =
2016 <\w+-.+?><\w+> inputState.selectedCharacter;
2017 <\w+-.+?><\w+> }
2018 <\w+-.+?><\w+> motionArgs.repeat = repeat;
2019 <\w+-.+?><\w+> clearInputState(cm);
2020 <\w+-.+?><\w+> if (motion) {
2021 <\w+-.+?><\w+> var motionResult = motions[motion](cm, origHead, motionArgs, vim);
2022 <\w+-.+?><\w+> vim.lastMotion = motions[motion];
2023 <\w+-.+?><\w+> if (!motionResult) {
2024 <\w+-.+?><\w+> return;
2025 <\w+-.+?><\w+> }
2026 <\w+-.+?><\w+> if (motionArgs.toJumplist) {
2027 <\w+-.+?><\w+> if (!operator && cm.ace.curOp != null)
2028 <\w+-.+?><\w+> cm.ace.curOp.command.scrollIntoView = "center-animate"; // ace_patch
2029 <\w+-.+?><\w+> var jumpList = vimGlobalState.jumpList;
2030 <\w+-.+?><\w+> var cachedCursor = jumpList.cachedCursor;
2031 <\w+-.+?><\w+> if (cachedCursor) {
2032 <\w+-.+?><\w+> recordJumpPosition(cm, cachedCursor, motionResult);
2033 <\w+-.+?><\w+> delete jumpList.cachedCursor;
2034 <\w+-.+?><\w+> } else {
2035 <\w+-.+?><\w+> recordJumpPosition(cm, origHead, motionResult);
2036 <\w+-.+?><\w+> }
2037 <\w+-.+?><\w+> }
2038 <\w+-.+?><\w+> if (motionResult instanceof Array) {
2039 <\w+-.+?><\w+> newAnchor = motionResult[0];
2040 <\w+-.+?><\w+> newHead = motionResult[1];
2041 <\w+-.+?><\w+> } else {
2042 <\w+-.+?><\w+> newHead = motionResult;
2043 <\w+-.+?><\w+> }
2044 <\w+-.+?><\w+> if (!newHead) {
2045 <\w+-.+?><\w+> newHead = copyCursor(origHead);
2046 <\w+-.+?><\w+> }
2047 <\w+-.+?><\w+> if (vim.visualMode) {
2048 <\w+-.+?><\w+> if (!(vim.visualBlock && newHead.ch === Infinity)) {
2049 <\w+-.+?><\w+> newHead = clipCursorToContent(cm, newHead, vim.visualBlock);
2050 <\w+-.+?><\w+> }
2051 <\w+-.+?><\w+> if (newAnchor) {
2052 <\w+-.+?><\w+> newAnchor = clipCursorToContent(cm, newAnchor, true);
2053 <\w+-.+?><\w+> }
2054 <\w+-.+?><\w+> newAnchor = newAnchor || oldAnchor;
2055 <\w+-.+?><\w+> sel.anchor = newAnchor;
2056 <\w+-.+?><\w+> sel.head = newHead;
2057 <\w+-.+?><\w+> updateCmSelection(cm);
2058 <\w+-.+?><\w+> updateMark(cm, vim, '<',
2059 <\w+-.+?><\w+> cursorIsBefore(newAnchor, newHead) ? newAnchor
2060 <\w+-.+?><\w+> : newHead);
2061 <\w+-.+?><\w+> updateMark(cm, vim, '>',
2062 <\w+-.+?><\w+> cursorIsBefore(newAnchor, newHead) ? newHead
2063 <\w+-.+?><\w+> : newAnchor);
2064 <\w+-.+?><\w+> } else if (!operator) {
2065 <\w+-.+?><\w+> newHead = clipCursorToContent(cm, newHead);
2066 <\w+-.+?><\w+> cm.setCursor(newHead.line, newHead.ch);
2067 <\w+-.+?><\w+> }
2068 <\w+-.+?><\w+> }
2069 <\w+-.+?><\w+> if (operator) {
2070 <\w+-.+?><\w+> if (operatorArgs.lastSel) {
2071 <\w+-.+?><\w+> newAnchor = oldAnchor;
2072 <\w+-.+?><\w+> var lastSel = operatorArgs.lastSel;
2073 <\w+-.+?><\w+> var lineOffset = Math.abs(lastSel.head.line - lastSel.anchor.line);
2074 <\w+-.+?><\w+> var chOffset = Math.abs(lastSel.head.ch - lastSel.anchor.ch);
2075 <\w+-.+?><\w+> if (lastSel.visualLine) {
2076 <\w+-.+?><\w+> newHead = Pos(oldAnchor.line + lineOffset, oldAnchor.ch);
2077 <\w+-.+?><\w+> } else if (lastSel.visualBlock) {
2078 <\w+-.+?><\w+> newHead = Pos(oldAnchor.line + lineOffset, oldAnchor.ch + chOffset);
2079 <\w+-.+?><\w+> } else if (lastSel.head.line == lastSel.anchor.line) {
2080 <\w+-.+?><\w+> newHead = Pos(oldAnchor.line, oldAnchor.ch + chOffset);
2081 <\w+-.+?><\w+> } else {
2082 <\w+-.+?><\w+> newHead = Pos(oldAnchor.line + lineOffset, oldAnchor.ch);
2083 <\w+-.+?><\w+> }
2084 <\w+-.+?><\w+> vim.visualMode = true;
2085 <\w+-.+?><\w+> vim.visualLine = lastSel.visualLine;
2086 <\w+-.+?><\w+> vim.visualBlock = lastSel.visualBlock;
2087 <\w+-.+?><\w+> sel = vim.sel = {
2088 <\w+-.+?><\w+> anchor: newAnchor,
2089 <\w+-.+?><\w+> head: newHead
2090 <\w+-.+?><\w+> };
2091 <\w+-.+?><\w+> updateCmSelection(cm);
2092 <\w+-.+?><\w+> } else if (vim.visualMode) {
2093 <\w+-.+?><\w+> operatorArgs.lastSel = {
2094 <\w+-.+?><\w+> anchor: copyCursor(sel.anchor),
2095 <\w+-.+?><\w+> head: copyCursor(sel.head),
2096 <\w+-.+?><\w+> visualBlock: vim.visualBlock,
2097 <\w+-.+?><\w+> visualLine: vim.visualLine
2098 <\w+-.+?><\w+> };
2099 <\w+-.+?><\w+> }
2100 <\w+-.+?><\w+> var curStart, curEnd, linewise, mode;
2101 <\w+-.+?><\w+> var cmSel;
2102 <\w+-.+?><\w+> if (vim.visualMode) {
2103 <\w+-.+?><\w+> curStart = cursorMin(sel.head, sel.anchor);
2104 <\w+-.+?><\w+> curEnd = cursorMax(sel.head, sel.anchor);
2105 <\w+-.+?><\w+> linewise = vim.visualLine || operatorArgs.linewise;
2106 <\w+-.+?><\w+> mode = vim.visualBlock ? 'block' :
2107 <\w+-.+?><\w+> linewise ? 'line' :
2108 <\w+-.+?><\w+> 'char';
2109 <\w+-.+?><\w+> cmSel = makeCmSelection(cm, {
2110 <\w+-.+?><\w+> anchor: curStart,
2111 <\w+-.+?><\w+> head: curEnd
2112 <\w+-.+?><\w+> }, mode);
2113 <\w+-.+?><\w+> if (linewise) {
2114 <\w+-.+?><\w+> var ranges = cmSel.ranges;
2115 <\w+-.+?><\w+> if (mode == 'block') {
2116 <\w+-.+?><\w+> for (var i = 0; i < ranges.length; i++) {
2117 <\w+-.+?><\w+> ranges[i].head.ch = lineLength(cm, ranges[i].head.line);
2118 <\w+-.+?><\w+> }
2119 <\w+-.+?><\w+> } else if (mode == 'line') {
2120 <\w+-.+?><\w+> ranges[0].head = Pos(ranges[0].head.line + 1, 0);
2121 <\w+-.+?><\w+> }
2122 <\w+-.+?><\w+> }
2123 <\w+-.+?><\w+> } else {
2124 <\w+-.+?><\w+> curStart = copyCursor(newAnchor || oldAnchor);
2125 <\w+-.+?><\w+> curEnd = copyCursor(newHead || oldHead);
2126 <\w+-.+?><\w+> if (cursorIsBefore(curEnd, curStart)) {
2127 <\w+-.+?><\w+> var tmp = curStart;
2128 <\w+-.+?><\w+> curStart = curEnd;
2129 <\w+-.+?><\w+> curEnd = tmp;
2130 <\w+-.+?><\w+> }
2131 <\w+-.+?><\w+> linewise = motionArgs.linewise || operatorArgs.linewise;
2132 <\w+-.+?><\w+> if (linewise) {
2133 <\w+-.+?><\w+> expandSelectionToLine(cm, curStart, curEnd);
2134 <\w+-.+?><\w+> } else if (motionArgs.forward) {
2135 <\w+-.+?><\w+> clipToLine(cm, curStart, curEnd);
2136 <\w+-.+?><\w+> }
2137 <\w+-.+?><\w+> mode = 'char';
2138 <\w+-.+?><\w+> var exclusive = !motionArgs.inclusive || linewise;
2139 <\w+-.+?><\w+> cmSel = makeCmSelection(cm, {
2140 <\w+-.+?><\w+> anchor: curStart,
2141 <\w+-.+?><\w+> head: curEnd
2142 <\w+-.+?><\w+> }, mode, exclusive);
2143 <\w+-.+?><\w+> }
2144 <\w+-.+?><\w+> cm.setSelections(cmSel.ranges, cmSel.primary);
2145 <\w+-.+?><\w+> vim.lastMotion = null;
2146 <\w+-.+?><\w+> operatorArgs.repeat = repeat; // For indent in visual mode.
2147 <\w+-.+?><\w+> operatorArgs.registerName = registerName;
2148 <\w+-.+?><\w+> operatorArgs.linewise = linewise;
2149 <\w+-.+?><\w+> var operatorMoveTo = operators[operator](
2150 <\w+-.+?><\w+> cm, operatorArgs, cmSel.ranges, oldAnchor, newHead);
2151 <\w+-.+?><\w+> if (vim.visualMode) {
2152 <\w+-.+?><\w+> exitVisualMode(cm, operatorMoveTo != null);
2153 <\w+-.+?><\w+> }
2154 <\w+-.+?><\w+> if (operatorMoveTo) {
2155 <\w+-.+?><\w+> cm.setCursor(operatorMoveTo);
2156 <\w+-.+?><\w+> }
2157 <\w+-.+?><\w+> }
2158 <\w+-.+?><\w+> },
2159 <\w+-.+?><\w+> recordLastEdit: function(vim, inputState, actionCommand) {
2160 <\w+-.+?><\w+> var macroModeState = vimGlobalState.macroModeState;
2161 <\w+-.+?><\w+> if (macroModeState.isPlaying) { return; }
2162 <\w+-.+?><\w+> vim.lastEditInputState = inputState;
2163 <\w+-.+?><\w+> vim.lastEditActionCommand = actionCommand;
2164 <\w+-.+?><\w+> macroModeState.lastInsertModeChanges.changes = [];
2165 <\w+-.+?><\w+> macroModeState.lastInsertModeChanges.expectCursorActivityForChange = false;
2166 <\w+-.+?><\w+> }
2167 <\w+-.+?><\w+> };
2168 <\w+-.+?><\w+> var motions = {
2169 <\w+-.+?><\w+> moveToTopLine: function(cm, _head, motionArgs) {
2170 <\w+-.+?><\w+> var line = getUserVisibleLines(cm).top + motionArgs.repeat -1;
2171 <\w+-.+?><\w+> return Pos(line, findFirstNonWhiteSpaceCharacter(cm.getLine(line)));
2172 <\w+-.+?><\w+> },
2173 <\w+-.+?><\w+> moveToMiddleLine: function(cm) {
2174 <\w+-.+?><\w+> var range = getUserVisibleLines(cm);
2175 <\w+-.+?><\w+> var line = Math.floor((range.top + range.bottom) * 0.5);
2176 <\w+-.+?><\w+> return Pos(line, findFirstNonWhiteSpaceCharacter(cm.getLine(line)));
2177 <\w+-.+?><\w+> },
2178 <\w+-.+?><\w+> moveToBottomLine: function(cm, _head, motionArgs) {
2179 <\w+-.+?><\w+> var line = getUserVisibleLines(cm).bottom - motionArgs.repeat +1;
2180 <\w+-.+?><\w+> return Pos(line, findFirstNonWhiteSpaceCharacter(cm.getLine(line)));
2181 <\w+-.+?><\w+> },
2182 <\w+-.+?><\w+> expandToLine: function(_cm, head, motionArgs) {
2183 <\w+-.+?><\w+> var cur = head;
2184 <\w+-.+?><\w+> return Pos(cur.line + motionArgs.repeat - 1, Infinity);
2185 <\w+-.+?><\w+> },
2186 <\w+-.+?><\w+> findNext: function(cm, _head, motionArgs) {
2187 <\w+-.+?><\w+> var state = getSearchState(cm);
2188 <\w+-.+?><\w+> var query = state.getQuery();
2189 <\w+-.+?><\w+> if (!query) {
2190 <\w+-.+?><\w+> return;
2191 <\w+-.+?><\w+> }
2192 <\w+-.+?><\w+> var prev = !motionArgs.forward;
2193 <\w+-.+?><\w+> prev = (state.isReversed()) ? !prev : prev;
2194 <\w+-.+?><\w+> highlightSearchMatches(cm, query);
2195 <\w+-.+?><\w+> return findNext(cm, prev/** prev */, query, motionArgs.repeat);
2196 <\w+-.+?><\w+> },
2197 <\w+-.+?><\w+> goToMark: function(cm, _head, motionArgs, vim) {
2198 <\w+-.+?><\w+> var mark = vim.marks[motionArgs.selectedCharacter];
2199 <\w+-.+?><\w+> if (mark) {
2200 <\w+-.+?><\w+> var pos = mark.find();
2201 <\w+-.+?><\w+> return motionArgs.linewise ? { line: pos.line, ch: findFirstNonWhiteSpaceCharacter(cm.getLine(pos.line)) } : pos;
2202 <\w+-.+?><\w+> }
2203 <\w+-.+?><\w+> return null;
2204 <\w+-.+?><\w+> },
2205 <\w+-.+?><\w+> moveToOtherHighlightedEnd: function(cm, _head, motionArgs, vim) {
2206 <\w+-.+?><\w+> if (vim.visualBlock && motionArgs.sameLine) {
2207 <\w+-.+?><\w+> var sel = vim.sel;
2208 <\w+-.+?><\w+> return [
2209 <\w+-.+?><\w+> clipCursorToContent(cm, Pos(sel.anchor.line, sel.head.ch)),
2210 <\w+-.+?><\w+> clipCursorToContent(cm, Pos(sel.head.line, sel.anchor.ch))
2211 <\w+-.+?><\w+> ];
2212 <\w+-.+?><\w+> } else {
2213 <\w+-.+?><\w+> return ([vim.sel.head, vim.sel.anchor]);
2214 <\w+-.+?><\w+> }
2215 <\w+-.+?><\w+> },
2216 <\w+-.+?><\w+> jumpToMark: function(cm, head, motionArgs, vim) {
2217 <\w+-.+?><\w+> var best = head;
2218 <\w+-.+?><\w+> for (var i = 0; i < motionArgs.repeat; i++) {
2219 <\w+-.+?><\w+> var cursor = best;
2220 <\w+-.+?><\w+> for (var key in vim.marks) {
2221 <\w+-.+?><\w+> if (!isLowerCase(key)) {
2222 <\w+-.+?><\w+> continue;
2223 <\w+-.+?><\w+> }
2224 <\w+-.+?><\w+> var mark = vim.marks[key].find();
2225 <\w+-.+?><\w+> var isWrongDirection = (motionArgs.forward) ?
2226 <\w+-.+?><\w+> cursorIsBefore(mark, cursor) : cursorIsBefore(cursor, mark);
2227  
2228 <\w+-.+?><\w+> if (isWrongDirection) {
2229 <\w+-.+?><\w+> continue;
2230 <\w+-.+?><\w+> }
2231 <\w+-.+?><\w+> if (motionArgs.linewise && (mark.line == cursor.line)) {
2232 <\w+-.+?><\w+> continue;
2233 <\w+-.+?><\w+> }
2234  
2235 <\w+-.+?><\w+> var equal = cursorEqual(cursor, best);
2236 <\w+-.+?><\w+> var between = (motionArgs.forward) ?
2237 <\w+-.+?><\w+> cursorIsBetween(cursor, mark, best) :
2238 <\w+-.+?><\w+> cursorIsBetween(best, mark, cursor);
2239  
2240 <\w+-.+?><\w+> if (equal || between) {
2241 <\w+-.+?><\w+> best = mark;
2242 <\w+-.+?><\w+> }
2243 <\w+-.+?><\w+> }
2244 <\w+-.+?><\w+> }
2245  
2246 <\w+-.+?><\w+> if (motionArgs.linewise) {
2247 <\w+-.+?><\w+> best = Pos(best.line, findFirstNonWhiteSpaceCharacter(cm.getLine(best.line)));
2248 <\w+-.+?><\w+> }
2249 <\w+-.+?><\w+> return best;
2250 <\w+-.+?><\w+> },
2251 <\w+-.+?><\w+> moveByCharacters: function(_cm, head, motionArgs) {
2252 <\w+-.+?><\w+> var cur = head;
2253 <\w+-.+?><\w+> var repeat = motionArgs.repeat;
2254 <\w+-.+?><\w+> var ch = motionArgs.forward ? cur.ch + repeat : cur.ch - repeat;
2255 <\w+-.+?><\w+> return Pos(cur.line, ch);
2256 <\w+-.+?><\w+> },
2257 <\w+-.+?><\w+> moveByLines: function(cm, head, motionArgs, vim) {
2258 <\w+-.+?><\w+> var cur = head;
2259 <\w+-.+?><\w+> var endCh = cur.ch;
2260 <\w+-.+?><\w+> switch (vim.lastMotion) {
2261 <\w+-.+?><\w+> case this.moveByLines:
2262 <\w+-.+?><\w+> case this.moveByDisplayLines:
2263 <\w+-.+?><\w+> case this.moveByScroll:
2264 <\w+-.+?><\w+> case this.moveToColumn:
2265 <\w+-.+?><\w+> case this.moveToEol:
2266 <\w+-.+?><\w+> endCh = vim.lastHPos;
2267 <\w+-.+?><\w+> break;
2268 <\w+-.+?><\w+> default:
2269 <\w+-.+?><\w+> vim.lastHPos = endCh;
2270 <\w+-.+?><\w+> }
2271 <\w+-.+?><\w+> var repeat = motionArgs.repeat+(motionArgs.repeatOffset||0);
2272 <\w+-.+?><\w+> var line = motionArgs.forward ? cur.line + repeat : cur.line - repeat;
2273 <\w+-.+?><\w+> var first = cm.firstLine();
2274 <\w+-.+?><\w+> var last = cm.lastLine();
2275 <\w+-.+?><\w+> if ((line < first && cur.line == first) ||
2276 <\w+-.+?><\w+> (line > last && cur.line == last)) {
2277 <\w+-.+?><\w+> return;
2278 <\w+-.+?><\w+> }
2279 <\w+-.+?><\w+> var fold = cm.ace.session.getFoldLine(line);
2280 <\w+-.+?><\w+> if (fold) {
2281 <\w+-.+?><\w+> if (motionArgs.forward) {
2282 <\w+-.+?><\w+> if (line > fold.start.row)
2283 <\w+-.+?><\w+> line = fold.end.row + 1;
2284 <\w+-.+?><\w+> } else {
2285 <\w+-.+?><\w+> line = fold.start.row;
2286 <\w+-.+?><\w+> }
2287 <\w+-.+?><\w+> }
2288 <\w+-.+?><\w+> if (motionArgs.toFirstChar){
2289 <\w+-.+?><\w+> endCh=findFirstNonWhiteSpaceCharacter(cm.getLine(line));
2290 <\w+-.+?><\w+> vim.lastHPos = endCh;
2291 <\w+-.+?><\w+> }
2292 <\w+-.+?><\w+> vim.lastHSPos = cm.charCoords(Pos(line, endCh),'div').left;
2293 <\w+-.+?><\w+> return Pos(line, endCh);
2294 <\w+-.+?><\w+> },
2295 <\w+-.+?><\w+> moveByDisplayLines: function(cm, head, motionArgs, vim) {
2296 <\w+-.+?><\w+> var cur = head;
2297 <\w+-.+?><\w+> switch (vim.lastMotion) {
2298 <\w+-.+?><\w+> case this.moveByDisplayLines:
2299 <\w+-.+?><\w+> case this.moveByScroll:
2300 <\w+-.+?><\w+> case this.moveByLines:
2301 <\w+-.+?><\w+> case this.moveToColumn:
2302 <\w+-.+?><\w+> case this.moveToEol:
2303 <\w+-.+?><\w+> break;
2304 <\w+-.+?><\w+> default:
2305 <\w+-.+?><\w+> vim.lastHSPos = cm.charCoords(cur,'div').left;
2306 <\w+-.+?><\w+> }
2307 <\w+-.+?><\w+> var repeat = motionArgs.repeat;
2308 <\w+-.+?><\w+> var res=cm.findPosV(cur,(motionArgs.forward ? repeat : -repeat),'line',vim.lastHSPos);
2309 <\w+-.+?><\w+> if (res.hitSide) {
2310 <\w+-.+?><\w+> if (motionArgs.forward) {
2311 <\w+-.+?><\w+> var lastCharCoords = cm.charCoords(res, 'div');
2312 <\w+-.+?><\w+> var goalCoords = { top: lastCharCoords.top + 8, left: vim.lastHSPos };
2313 <\w+-.+?><\w+> var res = cm.coordsChar(goalCoords, 'div');
2314 <\w+-.+?><\w+> } else {
2315 <\w+-.+?><\w+> var resCoords = cm.charCoords(Pos(cm.firstLine(), 0), 'div');
2316 <\w+-.+?><\w+> resCoords.left = vim.lastHSPos;
2317 <\w+-.+?><\w+> res = cm.coordsChar(resCoords, 'div');
2318 <\w+-.+?><\w+> }
2319 <\w+-.+?><\w+> }
2320 <\w+-.+?><\w+> vim.lastHPos = res.ch;
2321 <\w+-.+?><\w+> return res;
2322 <\w+-.+?><\w+> },
2323 <\w+-.+?><\w+> moveByPage: function(cm, head, motionArgs) {
2324 <\w+-.+?><\w+> var curStart = head;
2325 <\w+-.+?><\w+> var repeat = motionArgs.repeat;
2326 <\w+-.+?><\w+> return cm.findPosV(curStart, (motionArgs.forward ? repeat : -repeat), 'page');
2327 <\w+-.+?><\w+> },
2328 <\w+-.+?><\w+> moveByParagraph: function(cm, head, motionArgs) {
2329 <\w+-.+?><\w+> var dir = motionArgs.forward ? 1 : -1;
2330 <\w+-.+?><\w+> return findParagraph(cm, head, motionArgs.repeat, dir);
2331 <\w+-.+?><\w+> },
2332 <\w+-.+?><\w+> moveByScroll: function(cm, head, motionArgs, vim) {
2333 <\w+-.+?><\w+> var scrollbox = cm.getScrollInfo();
2334 <\w+-.+?><\w+> var curEnd = null;
2335 <\w+-.+?><\w+> var repeat = motionArgs.repeat;
2336 <\w+-.+?><\w+> if (!repeat) {
2337 <\w+-.+?><\w+> repeat = scrollbox.clientHeight / (2 * cm.defaultTextHeight());
2338 <\w+-.+?><\w+> }
2339 <\w+-.+?><\w+> var orig = cm.charCoords(head, 'local');
2340 <\w+-.+?><\w+> motionArgs.repeat = repeat;
2341 <\w+-.+?><\w+> var curEnd = motions.moveByDisplayLines(cm, head, motionArgs, vim);
2342 <\w+-.+?><\w+> if (!curEnd) {
2343 <\w+-.+?><\w+> return null;
2344 <\w+-.+?><\w+> }
2345 <\w+-.+?><\w+> var dest = cm.charCoords(curEnd, 'local');
2346 <\w+-.+?><\w+> cm.scrollTo(null, scrollbox.top + dest.top - orig.top);
2347 <\w+-.+?><\w+> return curEnd;
2348 <\w+-.+?><\w+> },
2349 <\w+-.+?><\w+> moveByWords: function(cm, head, motionArgs) {
2350 <\w+-.+?><\w+> return moveToWord(cm, head, motionArgs.repeat, !!motionArgs.forward,
2351 <\w+-.+?><\w+> !!motionArgs.wordEnd, !!motionArgs.bigWord);
2352 <\w+-.+?><\w+> },
2353 <\w+-.+?><\w+> moveTillCharacter: function(cm, _head, motionArgs) {
2354 <\w+-.+?><\w+> var repeat = motionArgs.repeat;
2355 <\w+-.+?><\w+> var curEnd = moveToCharacter(cm, repeat, motionArgs.forward,
2356 <\w+-.+?><\w+> motionArgs.selectedCharacter);
2357 <\w+-.+?><\w+> var increment = motionArgs.forward ? -1 : 1;
2358 <\w+-.+?><\w+> recordLastCharacterSearch(increment, motionArgs);
2359 <\w+-.+?><\w+> if (!curEnd) return null;
2360 <\w+-.+?><\w+> curEnd.ch += increment;
2361 <\w+-.+?><\w+> return curEnd;
2362 <\w+-.+?><\w+> },
2363 <\w+-.+?><\w+> moveToCharacter: function(cm, head, motionArgs) {
2364 <\w+-.+?><\w+> var repeat = motionArgs.repeat;
2365 <\w+-.+?><\w+> recordLastCharacterSearch(0, motionArgs);
2366 <\w+-.+?><\w+> return moveToCharacter(cm, repeat, motionArgs.forward,
2367 <\w+-.+?><\w+> motionArgs.selectedCharacter) || head;
2368 <\w+-.+?><\w+> },
2369 <\w+-.+?><\w+> moveToSymbol: function(cm, head, motionArgs) {
2370 <\w+-.+?><\w+> var repeat = motionArgs.repeat;
2371 <\w+-.+?><\w+> return findSymbol(cm, repeat, motionArgs.forward,
2372 <\w+-.+?><\w+> motionArgs.selectedCharacter) || head;
2373 <\w+-.+?><\w+> },
2374 <\w+-.+?><\w+> moveToColumn: function(cm, head, motionArgs, vim) {
2375 <\w+-.+?><\w+> var repeat = motionArgs.repeat;
2376 <\w+-.+?><\w+> vim.lastHPos = repeat - 1;
2377 <\w+-.+?><\w+> vim.lastHSPos = cm.charCoords(head,'div').left;
2378 <\w+-.+?><\w+> return moveToColumn(cm, repeat);
2379 <\w+-.+?><\w+> },
2380 <\w+-.+?><\w+> moveToEol: function(cm, head, motionArgs, vim) {
2381 <\w+-.+?><\w+> var cur = head;
2382 <\w+-.+?><\w+> vim.lastHPos = Infinity;
2383 <\w+-.+?><\w+> var retval= Pos(cur.line + motionArgs.repeat - 1, Infinity);
2384 <\w+-.+?><\w+> var end=cm.clipPos(retval);
2385 <\w+-.+?><\w+> end.ch--;
2386 <\w+-.+?><\w+> vim.lastHSPos = cm.charCoords(end,'div').left;
2387 <\w+-.+?><\w+> return retval;
2388 <\w+-.+?><\w+> },
2389 <\w+-.+?><\w+> moveToFirstNonWhiteSpaceCharacter: function(cm, head) {
2390 <\w+-.+?><\w+> var cursor = head;
2391 <\w+-.+?><\w+> return Pos(cursor.line,
2392 <\w+-.+?><\w+> findFirstNonWhiteSpaceCharacter(cm.getLine(cursor.line)));
2393 <\w+-.+?><\w+> },
2394 <\w+-.+?><\w+> moveToMatchedSymbol: function(cm, head) {
2395 <\w+-.+?><\w+> var cursor = head;
2396 <\w+-.+?><\w+> var line = cursor.line;
2397 <\w+-.+?><\w+> var ch = cursor.ch;
2398 <\w+-.+?><\w+> var lineText = cm.getLine(line);
2399 <\w+-.+?><\w+> var symbol;
2400 <\w+-.+?><\w+> do {
2401 <\w+-.+?><\w+> symbol = lineText.charAt(ch++);
2402 <\w+-.+?><\w+> if (symbol && isMatchableSymbol(symbol)) {
2403 <\w+-.+?><\w+> var style = cm.getTokenTypeAt(Pos(line, ch));
2404 <\w+-.+?><\w+> if (style !== "string" && style !== "comment") {
2405 <\w+-.+?><\w+> break;
2406 <\w+-.+?><\w+> }
2407 <\w+-.+?><\w+> }
2408 <\w+-.+?><\w+> } while (symbol);
2409 <\w+-.+?><\w+> if (symbol) {
2410 <\w+-.+?><\w+> var matched = cm.findMatchingBracket(Pos(line, ch));
2411 <\w+-.+?><\w+> return matched.to;
2412 <\w+-.+?><\w+> } else {
2413 <\w+-.+?><\w+> return cursor;
2414 <\w+-.+?><\w+> }
2415 <\w+-.+?><\w+> },
2416 <\w+-.+?><\w+> moveToStartOfLine: function(_cm, head) {
2417 <\w+-.+?><\w+> return Pos(head.line, 0);
2418 <\w+-.+?><\w+> },
2419 <\w+-.+?><\w+> moveToLineOrEdgeOfDocument: function(cm, _head, motionArgs) {
2420 <\w+-.+?><\w+> var lineNum = motionArgs.forward ? cm.lastLine() : cm.firstLine();
2421 <\w+-.+?><\w+> if (motionArgs.repeatIsExplicit) {
2422 <\w+-.+?><\w+> lineNum = motionArgs.repeat - cm.getOption('firstLineNumber');
2423 <\w+-.+?><\w+> }
2424 <\w+-.+?><\w+> return Pos(lineNum,
2425 <\w+-.+?><\w+> findFirstNonWhiteSpaceCharacter(cm.getLine(lineNum)));
2426 <\w+-.+?><\w+> },
2427 <\w+-.+?><\w+> textObjectManipulation: function(cm, head, motionArgs, vim) {
2428 <\w+-.+?><\w+> var mirroredPairs = {'(': ')', ')': '(',
2429 <\w+-.+?><\w+> '{': '}', '}': '{',
2430 <\w+-.+?><\w+> '[': ']', ']': '['};
2431 <\w+-.+?><\w+> var selfPaired = {'\'': true, '"': true};
2432  
2433 <\w+-.+?><\w+> var character = motionArgs.selectedCharacter;
2434 <\w+-.+?><\w+> if (character == 'b') {
2435 <\w+-.+?><\w+> character = '(';
2436 <\w+-.+?><\w+> } else if (character == 'B') {
2437 <\w+-.+?><\w+> character = '{';
2438 <\w+-.+?><\w+> }
2439 <\w+-.+?><\w+> var inclusive = !motionArgs.textObjectInner;
2440  
2441 <\w+-.+?><\w+> var tmp;
2442 <\w+-.+?><\w+> if (mirroredPairs[character]) {
2443 <\w+-.+?><\w+> tmp = selectCompanionObject(cm, head, character, inclusive);
2444 <\w+-.+?><\w+> } else if (selfPaired[character]) {
2445 <\w+-.+?><\w+> tmp = findBeginningAndEnd(cm, head, character, inclusive);
2446 <\w+-.+?><\w+> } else if (character === 'W') {
2447 <\w+-.+?><\w+> tmp = expandWordUnderCursor(cm, inclusive, true /** forward */,
2448 <\w+-.+?><\w+> true /** bigWord */);
2449 <\w+-.+?><\w+> } else if (character === 'w') {
2450 <\w+-.+?><\w+> tmp = expandWordUnderCursor(cm, inclusive, true /** forward */,
2451 <\w+-.+?><\w+> false /** bigWord */);
2452 <\w+-.+?><\w+> } else if (character === 'p') {
2453 <\w+-.+?><\w+> tmp = findParagraph(cm, head, motionArgs.repeat, 0, inclusive);
2454 <\w+-.+?><\w+> motionArgs.linewise = true;
2455 <\w+-.+?><\w+> if (vim.visualMode) {
2456 <\w+-.+?><\w+> if (!vim.visualLine) { vim.visualLine = true; }
2457 <\w+-.+?><\w+> } else {
2458 <\w+-.+?><\w+> var operatorArgs = vim.inputState.operatorArgs;
2459 <\w+-.+?><\w+> if (operatorArgs) { operatorArgs.linewise = true; }
2460 <\w+-.+?><\w+> tmp.end.line--;
2461 <\w+-.+?><\w+> }
2462 <\w+-.+?><\w+> } else {
2463 <\w+-.+?><\w+> return null;
2464 <\w+-.+?><\w+> }
2465  
2466 <\w+-.+?><\w+> if (!cm.state.vim.visualMode) {
2467 <\w+-.+?><\w+> return [tmp.start, tmp.end];
2468 <\w+-.+?><\w+> } else {
2469 <\w+-.+?><\w+> return expandSelection(cm, tmp.start, tmp.end);
2470 <\w+-.+?><\w+> }
2471 <\w+-.+?><\w+> },
2472  
2473 <\w+-.+?><\w+> repeatLastCharacterSearch: function(cm, head, motionArgs) {
2474 <\w+-.+?><\w+> var lastSearch = vimGlobalState.lastChararacterSearch;
2475 <\w+-.+?><\w+> var repeat = motionArgs.repeat;
2476 <\w+-.+?><\w+> var forward = motionArgs.forward === lastSearch.forward;
2477 <\w+-.+?><\w+> var increment = (lastSearch.increment ? 1 : 0) * (forward ? -1 : 1);
2478 <\w+-.+?><\w+> cm.moveH(-increment, 'char');
2479 <\w+-.+?><\w+> motionArgs.inclusive = forward ? true : false;
2480 <\w+-.+?><\w+> var curEnd = moveToCharacter(cm, repeat, forward, lastSearch.selectedCharacter);
2481 <\w+-.+?><\w+> if (!curEnd) {
2482 <\w+-.+?><\w+> cm.moveH(increment, 'char');
2483 <\w+-.+?><\w+> return head;
2484 <\w+-.+?><\w+> }
2485 <\w+-.+?><\w+> curEnd.ch += increment;
2486 <\w+-.+?><\w+> return curEnd;
2487 <\w+-.+?><\w+> }
2488 <\w+-.+?><\w+> };
2489  
2490 <\w+-.+?><\w+> function defineMotion(name, fn) {
2491 <\w+-.+?><\w+> motions[name] = fn;
2492 <\w+-.+?><\w+> }
2493  
2494 <\w+-.+?><\w+> function fillArray(val, times) {
2495 <\w+-.+?><\w+> var arr = [];
2496 <\w+-.+?><\w+> for (var i = 0; i < times; i++) {
2497 <\w+-.+?><\w+>< times; i++) { arr.push(val);
2498 <\w+-.+?><\w+>< times; i++) { }
2499 <\w+-.+?><\w+>< times; i++) { return arr;
2500 <\w+-.+?><\w+>< times; i++) { }
2501 <\w+-.+?><\w+>< times; i++) { var operators = {
2502 <\w+-.+?><\w+>< times; i++) { change: function(cm, args, ranges) {
2503 <\w+-.+?><\w+>< times; i++) { var finalHead, text;
2504 <\w+-.+?><\w+>< times; i++) { var vim = cm.state.vim;
2505 <\w+-.+?><\w+>< times; i++) { vimGlobalState.macroModeState.lastInsertModeChanges.inVisualBlock = vim.visualBlock;
2506 <\w+-.+?><\w+>< times; i++) { if (!vim.visualMode) {
2507 <\w+-.+?><\w+>< times; i++) { var anchor = ranges[0].anchor,
2508 <\w+-.+?><\w+>< times; i++) { head = ranges[0].head;
2509 <\w+-.+?><\w+>< times; i++) { text = cm.getRange(anchor, head);
2510 <\w+-.+?><\w+>< times; i++) { var lastState = vim.lastEditInputState || {};
2511 <\w+-.+?><\w+>< times; i++) { if (lastState.motion == "moveByWords" && !isWhiteSpaceString(text)) {
2512 <\w+-.+?><\w+>< times; i++) { var match = (/\s+$/).exec(text);
2513 <\w+-.+?><\w+>< times; i++) { if (match && lastState.motionArgs && lastState.motionArgs.forward) {
2514 <\w+-.+?><\w+>< times; i++) { head = offsetCursor(head, 0, - match[0].length);
2515 <\w+-.+?><\w+>< times; i++) { text = text.slice(0, - match[0].length);
2516 <\w+-.+?><\w+>< times; i++) { }
2517 <\w+-.+?><\w+>< times; i++) { }
2518 <\w+-.+?><\w+>< times; i++) { var prevLineEnd = new Pos(anchor.line - 1, Number.MAX_VALUE);
2519 <\w+-.+?><\w+>< times; i++) { var wasLastLine = cm.firstLine() == cm.lastLine();
2520 <\w+-.+?><\w+>< times; i++) { if (head.line > cm.lastLine() && args.linewise && !wasLastLine) {
2521 <\w+-.+?><\w+>< times; i++) { cm.replaceRange('', prevLineEnd, head);
2522 <\w+-.+?><\w+>< times; i++) { } else {
2523 <\w+-.+?><\w+>< times; i++) { cm.replaceRange('', anchor, head);
2524 <\w+-.+?><\w+>< times; i++) { }
2525 <\w+-.+?><\w+>< times; i++) { if (args.linewise) {
2526 <\w+-.+?><\w+>< times; i++) { if (!wasLastLine) {
2527 <\w+-.+?><\w+>< times; i++) { cm.setCursor(prevLineEnd);
2528 <\w+-.+?><\w+>< times; i++) { CodeMirror.commands.newlineAndIndent(cm);
2529 <\w+-.+?><\w+>< times; i++) { }
2530 <\w+-.+?><\w+>< times; i++) { anchor.ch = Number.MAX_VALUE;
2531 <\w+-.+?><\w+>< times; i++) { }
2532 <\w+-.+?><\w+>< times; i++) { finalHead = anchor;
2533 <\w+-.+?><\w+>< times; i++) { } else {
2534 <\w+-.+?><\w+>< times; i++) { text = cm.getSelection();
2535 <\w+-.+?><\w+>< times; i++) { var replacement = fillArray('', ranges.length);
2536 <\w+-.+?><\w+>< times; i++) { cm.replaceSelections(replacement);
2537 <\w+-.+?><\w+>< times; i++) { finalHead = cursorMin(ranges[0].head, ranges[0].anchor);
2538 <\w+-.+?><\w+>< times; i++) { }
2539 <\w+-.+?><\w+>< times; i++) { vimGlobalState.registerController.pushText(
2540 <\w+-.+?><\w+>< times; i++) { args.registerName, 'change', text,
2541 <\w+-.+?><\w+>< times; i++) { args.linewise, ranges.length > 1);
2542 <\w+-.+?><\w+>< times; i++) { actions.enterInsertMode(cm, {head: finalHead}, cm.state.vim);
2543 <\w+-.+?><\w+>< times; i++) { },
2544 <\w+-.+?><\w+>< times; i++) { 'delete': function(cm, args, ranges) {
2545 <\w+-.+?><\w+>< times; i++) { var finalHead, text;
2546 <\w+-.+?><\w+>< times; i++) { var vim = cm.state.vim;
2547 <\w+-.+?><\w+>< times; i++) { if (!vim.visualBlock) {
2548 <\w+-.+?><\w+>< times; i++) { var anchor = ranges[0].anchor,
2549 <\w+-.+?><\w+>< times; i++) { head = ranges[0].head;
2550 <\w+-.+?><\w+>< times; i++) { if (args.linewise &&
2551 <\w+-.+?><\w+>< times; i++) { head.line != cm.firstLine() &&
2552 <\w+-.+?><\w+>< times; i++) { anchor.line == cm.lastLine() &&
2553 <\w+-.+?><\w+>< times; i++) { anchor.line == head.line - 1) {
2554 <\w+-.+?><\w+>< times; i++) { if (anchor.line == cm.firstLine()) {
2555 <\w+-.+?><\w+>< times; i++) { anchor.ch = 0;
2556 <\w+-.+?><\w+>< times; i++) { } else {
2557 <\w+-.+?><\w+>< times; i++) { anchor = Pos(anchor.line - 1, lineLength(cm, anchor.line - 1));
2558 <\w+-.+?><\w+>< times; i++) { }
2559 <\w+-.+?><\w+>< times; i++) { }
2560 <\w+-.+?><\w+>< times; i++) { text = cm.getRange(anchor, head);
2561 <\w+-.+?><\w+>< times; i++) { cm.replaceRange('', anchor, head);
2562 <\w+-.+?><\w+>< times; i++) { finalHead = anchor;
2563 <\w+-.+?><\w+>< times; i++) { if (args.linewise) {
2564 <\w+-.+?><\w+>< times; i++) { finalHead = motions.moveToFirstNonWhiteSpaceCharacter(cm, anchor);
2565 <\w+-.+?><\w+>< times; i++) { }
2566 <\w+-.+?><\w+>< times; i++) { } else {
2567 <\w+-.+?><\w+>< times; i++) { text = cm.getSelection();
2568 <\w+-.+?><\w+>< times; i++) { var replacement = fillArray('', ranges.length);
2569 <\w+-.+?><\w+>< times; i++) { cm.replaceSelections(replacement);
2570 <\w+-.+?><\w+>< times; i++) { finalHead = ranges[0].anchor;
2571 <\w+-.+?><\w+>< times; i++) { }
2572 <\w+-.+?><\w+>< times; i++) { vimGlobalState.registerController.pushText(
2573 <\w+-.+?><\w+>< times; i++) { args.registerName, 'delete', text,
2574 <\w+-.+?><\w+>< times; i++) { args.linewise, vim.visualBlock);
2575 <\w+-.+?><\w+>< times; i++) { return clipCursorToContent(cm, finalHead);
2576 <\w+-.+?><\w+>< times; i++) { },
2577 <\w+-.+?><\w+>< times; i++) { indent: function(cm, args, ranges) {
2578 <\w+-.+?><\w+>< times; i++) { var vim = cm.state.vim;
2579 <\w+-.+?><\w+>< times; i++) { var startLine = ranges[0].anchor.line;
2580 <\w+-.+?><\w+>< times; i++) { var endLine = vim.visualBlock ?
2581 <\w+-.+?><\w+>< times; i++) { ranges[ranges.length - 1].anchor.line :
2582 <\w+-.+?><\w+>< times; i++) { ranges[0].head.line;
2583 <\w+-.+?><\w+>< times; i++) { var repeat = (vim.visualMode) ? args.repeat : 1;
2584 <\w+-.+?><\w+>< times; i++) { if (args.linewise) {
2585 <\w+-.+?><\w+>< times; i++) { endLine--;
2586 <\w+-.+?><\w+>< times; i++) { }
2587 <\w+-.+?><\w+>< times; i++) { for (var i = startLine; i <= endLine; i++) {
2588 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) { for (var j = 0; j < repeat; j++) {
2589 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) { cm.indentLine(i, args.indentRight);
2590 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) { }
2591 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) { }
2592 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) { return motions.moveToFirstNonWhiteSpaceCharacter(cm, ranges[0].anchor);
2593 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) { },
2594 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) { changeCase: function(cm, args, ranges, oldAnchor, newHead) {
2595 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) { var selections = cm.getSelections();
2596 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) { var swapped = [];
2597 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) { var toLower = args.toLower;
2598 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) { for (var j = 0; j < selections.length; j++) {
2599 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) { var toSwap = selections[j];
2600 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) { var text = '';
2601 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) { if (toLower === true) {
2602 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) { text = toSwap.toLowerCase();
2603 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) { } else if (toLower === false) {
2604 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) { text = toSwap.toUpperCase();
2605 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) { } else {
2606 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) { for (var i = 0; i < toSwap.length; i++) {
2607 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var character = toSwap.charAt(i);
2608 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { text += isUpperCase(character) ? character.toLowerCase() :
2609 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { character.toUpperCase();
2610 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2611 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2612 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { swapped.push(text);
2613 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2614 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.replaceSelections(swapped);
2615 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (args.shouldMoveCursor){
2616 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { return newHead;
2617 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else if (!cm.state.vim.visualMode && args.linewise && ranges[0].anchor.line + 1 == ranges[0].head.line) {
2618 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { return motions.moveToFirstNonWhiteSpaceCharacter(cm, oldAnchor);
2619 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else if (args.linewise){
2620 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { return oldAnchor;
2621 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else {
2622 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { return cursorMin(ranges[0].anchor, ranges[0].head);
2623 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2624 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { },
2625 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { yank: function(cm, args, ranges, oldAnchor) {
2626 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var vim = cm.state.vim;
2627 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var text = cm.getSelection();
2628 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var endPos = vim.visualMode
2629 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { ? cursorMin(vim.sel.anchor, vim.sel.head, ranges[0].head, ranges[0].anchor)
2630 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { : oldAnchor;
2631 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { vimGlobalState.registerController.pushText(
2632 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { args.registerName, 'yank',
2633 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { text, args.linewise, vim.visualBlock);
2634 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { return endPos;
2635 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2636 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { };
2637  
2638 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { function defineOperator(name, fn) {
2639 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { operators[name] = fn;
2640 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2641  
2642 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var actions = {
2643 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { jumpListWalk: function(cm, actionArgs, vim) {
2644 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (vim.visualMode) {
2645 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { return;
2646 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2647 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var repeat = actionArgs.repeat;
2648 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var forward = actionArgs.forward;
2649 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var jumpList = vimGlobalState.jumpList;
2650  
2651 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var mark = jumpList.move(cm, forward ? repeat : -repeat);
2652 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var markPos = mark ? mark.find() : undefined;
2653 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { markPos = markPos ? markPos : cm.getCursor();
2654 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.setCursor(markPos);
2655 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.ace.curOp.command.scrollIntoView = "center-animate"; // ace_patch
2656 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { },
2657 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { scroll: function(cm, actionArgs, vim) {
2658 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (vim.visualMode) {
2659 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { return;
2660 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2661 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var repeat = actionArgs.repeat || 1;
2662 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var lineHeight = cm.defaultTextHeight();
2663 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var top = cm.getScrollInfo().top;
2664 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var delta = lineHeight * repeat;
2665 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var newPos = actionArgs.forward ? top + delta : top - delta;
2666 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var cursor = copyCursor(cm.getCursor());
2667 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var cursorCoords = cm.charCoords(cursor, 'local');
2668 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (actionArgs.forward) {
2669 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (newPos > cursorCoords.top) {
2670 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cursor.line += (newPos - cursorCoords.top) / lineHeight;
2671 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cursor.line = Math.ceil(cursor.line);
2672 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.setCursor(cursor);
2673 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cursorCoords = cm.charCoords(cursor, 'local');
2674 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.scrollTo(null, cursorCoords.top);
2675 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else {
2676 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.scrollTo(null, newPos);
2677 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2678 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else {
2679 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var newBottom = newPos + cm.getScrollInfo().clientHeight;
2680 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (newBottom < cursorCoords.bottom) {
2681 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cursor.line -= (cursorCoords.bottom - newBottom) / lineHeight;
2682 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cursor.line = Math.floor(cursor.line);
2683 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.setCursor(cursor);
2684 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cursorCoords = cm.charCoords(cursor, 'local');
2685 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.scrollTo(
2686 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { null, cursorCoords.bottom - cm.getScrollInfo().clientHeight);
2687 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else {
2688 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.scrollTo(null, newPos);
2689 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2690 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2691 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { },
2692 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { scrollToCursor: function(cm, actionArgs) {
2693 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var lineNum = cm.getCursor().line;
2694 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var charCoords = cm.charCoords(Pos(lineNum, 0), 'local');
2695 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var height = cm.getScrollInfo().clientHeight;
2696 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var y = charCoords.top;
2697 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var lineHeight = charCoords.bottom - y;
2698 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { switch (actionArgs.position) {
2699 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { case 'center': y = y - (height / 2) + lineHeight;
2700 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { break;
2701 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { case 'bottom': y = y - height + lineHeight*1.4;
2702 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { break;
2703 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { case 'top': y = y + lineHeight*0.4;
2704 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { break;
2705 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2706 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.scrollTo(null, y);
2707 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { },
2708 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { replayMacro: function(cm, actionArgs, vim) {
2709 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var registerName = actionArgs.selectedCharacter;
2710 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var repeat = actionArgs.repeat;
2711 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var macroModeState = vimGlobalState.macroModeState;
2712 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (registerName == '@') {
2713 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { registerName = macroModeState.latestRegister;
2714 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2715 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { while(repeat--){
2716 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { executeMacroRegister(cm, vim, macroModeState, registerName);
2717 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2718 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { },
2719 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { enterMacroRecordMode: function(cm, actionArgs) {
2720 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var macroModeState = vimGlobalState.macroModeState;
2721 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var registerName = actionArgs.selectedCharacter;
2722 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { macroModeState.enterMacroRecordMode(cm, registerName);
2723 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { },
2724 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { enterInsertMode: function(cm, actionArgs, vim) {
2725 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (cm.getOption('readOnly')) { return; }
2726 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { vim.insertMode = true;
2727 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { vim.insertModeRepeat = actionArgs && actionArgs.repeat || 1;
2728 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var insertAt = (actionArgs) ? actionArgs.insertAt : null;
2729 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var sel = vim.sel;
2730 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var head = actionArgs.head || cm.getCursor('head');
2731 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var height = cm.listSelections().length;
2732 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (insertAt == 'eol') {
2733 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { head = Pos(head.line, lineLength(cm, head.line));
2734 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else if (insertAt == 'charAfter') {
2735 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { head = offsetCursor(head, 0, 1);
2736 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else if (insertAt == 'firstNonBlank') {
2737 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { head = motions.moveToFirstNonWhiteSpaceCharacter(cm, head);
2738 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else if (insertAt == 'startOfSelectedArea') {
2739 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (!vim.visualBlock) {
2740 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (sel.head.line < sel.anchor.line) {
2741 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { head = sel.head;
2742 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else {
2743 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { head = Pos(sel.anchor.line, 0);
2744 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2745 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else {
2746 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { head = Pos(
2747 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { Math.min(sel.head.line, sel.anchor.line),
2748 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { Math.min(sel.head.ch, sel.anchor.ch));
2749 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { height = Math.abs(sel.head.line - sel.anchor.line) + 1;
2750 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2751 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else if (insertAt == 'endOfSelectedArea') {
2752 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (!vim.visualBlock) {
2753 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (sel.head.line >= sel.anchor.line) {
2754 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { head = offsetCursor(sel.head, 0, 1);
2755 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else {
2756 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { head = Pos(sel.anchor.line, 0);
2757 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2758 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else {
2759 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { head = Pos(
2760 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { Math.min(sel.head.line, sel.anchor.line),
2761 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { Math.max(sel.head.ch + 1, sel.anchor.ch));
2762 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { height = Math.abs(sel.head.line - sel.anchor.line) + 1;
2763 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2764 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else if (insertAt == 'inplace') {
2765 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (vim.visualMode){
2766 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { return;
2767 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2768 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2769 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.setOption('keyMap', 'vim-insert');
2770 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.setOption('disableInput', false);
2771 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (actionArgs && actionArgs.replace) {
2772 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.toggleOverwrite(true);
2773 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.setOption('keyMap', 'vim-replace');
2774 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { CodeMirror.signal(cm, "vim-mode-change", {mode: "replace"});
2775 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else {
2776 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.setOption('keyMap', 'vim-insert');
2777 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { CodeMirror.signal(cm, "vim-mode-change", {mode: "insert"});
2778 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2779 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (!vimGlobalState.macroModeState.isPlaying) {
2780 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.on('change', onChange);
2781 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { CodeMirror.on(cm.getInputField(), 'keydown', onKeyEventTargetKeyDown);
2782 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2783 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (vim.visualMode) {
2784 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { exitVisualMode(cm);
2785 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2786 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { selectForInsert(cm, head, height);
2787 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { },
2788 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { toggleVisualMode: function(cm, actionArgs, vim) {
2789 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var repeat = actionArgs.repeat;
2790 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var anchor = cm.getCursor();
2791 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var head;
2792 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (!vim.visualMode) {
2793 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { vim.visualMode = true;
2794 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { vim.visualLine = !!actionArgs.linewise;
2795 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { vim.visualBlock = !!actionArgs.blockwise;
2796 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { head = clipCursorToContent(
2797 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm, Pos(anchor.line, anchor.ch + repeat - 1),
2798 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { true /** includeLineBreak */);
2799 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { vim.sel = {
2800 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { anchor: anchor,
2801 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { head: head
2802 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { };
2803 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { CodeMirror.signal(cm, "vim-mode-change", {mode: "visual", subMode: vim.visualLine ? "linewise" : vim.visualBlock ? "blockwise" : ""});
2804 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { updateCmSelection(cm);
2805 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { updateMark(cm, vim, '<', cursorMin(anchor, head));
2806 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { updateMark(cm, vim, '>', cursorMax(anchor, head));
2807 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else if (vim.visualLine ^ actionArgs.linewise ||
2808 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { vim.visualBlock ^ actionArgs.blockwise) {
2809 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { vim.visualLine = !!actionArgs.linewise;
2810 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { vim.visualBlock = !!actionArgs.blockwise;
2811 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { CodeMirror.signal(cm, "vim-mode-change", {mode: "visual", subMode: vim.visualLine ? "linewise" : vim.visualBlock ? "blockwise" : ""});
2812 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { updateCmSelection(cm);
2813 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else {
2814 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { exitVisualMode(cm);
2815 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2816 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { },
2817 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { reselectLastSelection: function(cm, _actionArgs, vim) {
2818 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var lastSelection = vim.lastSelection;
2819 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (vim.visualMode) {
2820 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { updateLastSelection(cm, vim);
2821 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2822 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (lastSelection) {
2823 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var anchor = lastSelection.anchorMark.find();
2824 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var head = lastSelection.headMark.find();
2825 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (!anchor || !head) {
2826 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { return;
2827 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2828 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { vim.sel = {
2829 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { anchor: anchor,
2830 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { head: head
2831 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { };
2832 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { vim.visualMode = true;
2833 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { vim.visualLine = lastSelection.visualLine;
2834 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { vim.visualBlock = lastSelection.visualBlock;
2835 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { updateCmSelection(cm);
2836 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { updateMark(cm, vim, '<', cursorMin(anchor, head));
2837 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { updateMark(cm, vim, '>', cursorMax(anchor, head));
2838 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { CodeMirror.signal(cm, 'vim-mode-change', {
2839 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { mode: 'visual',
2840 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { subMode: vim.visualLine ? 'linewise' :
2841 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { vim.visualBlock ? 'blockwise' : ''});
2842 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2843 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { },
2844 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { joinLines: function(cm, actionArgs, vim) {
2845 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var curStart, curEnd;
2846 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (vim.visualMode) {
2847 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { curStart = cm.getCursor('anchor');
2848 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { curEnd = cm.getCursor('head');
2849 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (cursorIsBefore(curEnd, curStart)) {
2850 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var tmp = curEnd;
2851 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { curEnd = curStart;
2852 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { curStart = tmp;
2853 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2854 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { curEnd.ch = lineLength(cm, curEnd.line) - 1;
2855 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else {
2856 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var repeat = Math.max(actionArgs.repeat, 2);
2857 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { curStart = cm.getCursor();
2858 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { curEnd = clipCursorToContent(cm, Pos(curStart.line + repeat - 1,
2859 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { Infinity));
2860 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2861 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var finalCh = 0;
2862 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { for (var i = curStart.line; i < curEnd.line; i++) {
2863 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { finalCh = lineLength(cm, curStart.line);
2864 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var tmp = Pos(curStart.line + 1,
2865 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { lineLength(cm, curStart.line + 1));
2866 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var text = cm.getRange(curStart, tmp);
2867 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { text = text.replace(/\n\s*/g, ' ');
2868 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.replaceRange(text, curStart, tmp);
2869 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2870 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var curFinalPos = Pos(curStart.line, finalCh);
2871 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (vim.visualMode) {
2872 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { exitVisualMode(cm, false);
2873 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2874 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.setCursor(curFinalPos);
2875 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { },
2876 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { newLineAndEnterInsertMode: function(cm, actionArgs, vim) {
2877 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { vim.insertMode = true;
2878 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var insertAt = copyCursor(cm.getCursor());
2879 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (insertAt.line === cm.firstLine() && !actionArgs.after) {
2880 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.replaceRange('\n', Pos(cm.firstLine(), 0));
2881 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.setCursor(cm.firstLine(), 0);
2882 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else {
2883 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { insertAt.line = (actionArgs.after) ? insertAt.line :
2884 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { insertAt.line - 1;
2885 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { insertAt.ch = lineLength(cm, insertAt.line);
2886 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cm.setCursor(insertAt);
2887 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var newlineFn = CodeMirror.commands.newlineAndIndentContinueComment ||
2888 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { CodeMirror.commands.newlineAndIndent;
2889 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { newlineFn(cm);
2890 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2891 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { this.enterInsertMode(cm, { repeat: actionArgs.repeat }, vim);
2892 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { },
2893 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { paste: function(cm, actionArgs, vim) {
2894 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var cur = copyCursor(cm.getCursor());
2895 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var register = vimGlobalState.registerController.getRegister(
2896 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { actionArgs.registerName);
2897 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var text = register.toString();
2898 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (!text) {
2899 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { return;
2900 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2901 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (actionArgs.matchIndent) {
2902 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var tabSize = cm.getOption("tabSize");
2903 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var whitespaceLength = function(str) {
2904 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var tabs = (str.split("\t").length - 1);
2905 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var spaces = (str.split(" ").length - 1);
2906 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { return tabs * tabSize + spaces * 1;
2907 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { };
2908 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var currentLine = cm.getLine(cm.getCursor().line);
2909 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var indent = whitespaceLength(currentLine.match(/^\s*/)[0]);
2910 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var chompedText = text.replace(/\n$/, '');
2911 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var wasChomped = text !== chompedText;
2912 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var firstIndent = whitespaceLength(text.match(/^\s*/)[0]);
2913 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var text = chompedText.replace(/^\s*/gm, function(wspace) {
2914 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var newIndent = indent + (whitespaceLength(wspace) - firstIndent);
2915 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (newIndent < 0) {
2916 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { return "";
2917 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2918 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { else if (cm.getOption("indentWithTabs")) {
2919 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var quotient = Math.floor(newIndent / tabSize);
2920 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { return Array(quotient + 1).join('\t');
2921 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2922 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { else {
2923 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { return Array(newIndent + 1).join(' ');
2924 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2925 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { });
2926 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { text += wasChomped ? "\n" : "";
2927 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2928 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (actionArgs.repeat > 1) {
2929 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var text = Array(actionArgs.repeat + 1).join(text);
2930 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2931 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var linewise = register.linewise;
2932 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { var blockwise = register.blockwise;
2933 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (linewise && !blockwise) {
2934 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if(vim.visualMode) {
2935 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { text = vim.visualLine ? text.slice(0, -1) : '\n' + text.slice(0, text.length - 1) + '\n';
2936 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else if (actionArgs.after) {
2937 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { text = '\n' + text.slice(0, text.length - 1);
2938 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cur.ch = lineLength(cm, cur.line);
2939 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else {
2940 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { cur.ch = 0;
2941 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { }
2942 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { } else {
2943 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { if (blockwise) {
2944 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { text = text.split('\n');
2945 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) { for (var i = 0; i < text.length; i++) {
2946 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { text[i] = (text[i] == '') ? ' ' : text[i];
2947 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { }
2948 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { }
2949 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { cur.ch += actionArgs.after ? 1 : 0;
2950 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { }
2951 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { var curPosFinal;
2952 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { var idx;
2953 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { if (vim.visualMode) {
2954 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { vim.lastPastedText = text;
2955 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { var lastSelectionCurEnd;
2956 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { var selectedArea = getSelectedAreaRange(cm, vim);
2957 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { var selectionStart = selectedArea[0];
2958 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { var selectionEnd = selectedArea[1];
2959 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { var selectedText = cm.getSelection();
2960 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { var selections = cm.listSelections();
2961 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { var emptyStrings = new Array(selections.length).join('1').split('1');
2962 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { if (vim.lastSelection) {
2963 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { lastSelectionCurEnd = vim.lastSelection.headMark.find();
2964 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { }
2965 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { vimGlobalState.registerController.unnamedRegister.setText(selectedText);
2966 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { if (blockwise) {
2967 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { cm.replaceSelections(emptyStrings);
2968 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { selectionEnd = Pos(selectionStart.line + text.length-1, selectionStart.ch);
2969 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { cm.setCursor(selectionStart);
2970 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { selectBlock(cm, selectionEnd);
2971 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { cm.replaceSelections(text);
2972 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { curPosFinal = selectionStart;
2973 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { } else if (vim.visualBlock) {
2974 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { cm.replaceSelections(emptyStrings);
2975 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { cm.setCursor(selectionStart);
2976 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { cm.replaceRange(text, selectionStart, selectionStart);
2977 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { curPosFinal = selectionStart;
2978 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { } else {
2979 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { cm.replaceRange(text, selectionStart, selectionEnd);
2980 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { curPosFinal = cm.posFromIndex(cm.indexFromPos(selectionStart) + text.length - 1);
2981 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { }
2982 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { if(lastSelectionCurEnd) {
2983 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { vim.lastSelection.headMark = cm.setBookmark(lastSelectionCurEnd);
2984 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { }
2985 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { if (linewise) {
2986 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { curPosFinal.ch=0;
2987 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { }
2988 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { } else {
2989 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { if (blockwise) {
2990 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { cm.setCursor(cur);
2991 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) { for (var i = 0; i < text.length; i++) {
2992 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) { var line = cur.line+i;
2993 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) { if (line > cm.lastLine()) {
2994 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) { cm.replaceRange('\n', Pos(line, 0));
2995 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) { }
2996 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) { var lastCh = lineLength(cm, line);
2997 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) { if (lastCh < cur.ch) {
2998 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { extendLineToColumn(cm, line, cur.ch);
2999 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { }
3000 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { }
3001 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { cm.setCursor(cur);
3002 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { selectBlock(cm, Pos(cur.line + text.length-1, cur.ch));
3003 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { cm.replaceSelections(text);
3004 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { curPosFinal = cur;
3005 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { } else {
3006 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { cm.replaceRange(text, cur);
3007 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { if (linewise && actionArgs.after) {
3008 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { curPosFinal = Pos(
3009 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { cur.line + 1,
3010 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { findFirstNonWhiteSpaceCharacter(cm.getLine(cur.line + 1)));
3011 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { } else if (linewise && !actionArgs.after) {
3012 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { curPosFinal = Pos(
3013 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { cur.line,
3014 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { findFirstNonWhiteSpaceCharacter(cm.getLine(cur.line)));
3015 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { } else if (!linewise && actionArgs.after) {
3016 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { idx = cm.indexFromPos(cur);
3017 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { curPosFinal = cm.posFromIndex(idx + text.length - 1);
3018 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { } else {
3019 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { idx = cm.indexFromPos(cur);
3020 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { curPosFinal = cm.posFromIndex(idx + text.length);
3021 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { }
3022 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { }
3023 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { }
3024 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { if (vim.visualMode) {
3025 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { exitVisualMode(cm, false);
3026 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { }
3027 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { cm.setCursor(curPosFinal);
3028 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { },
3029 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { undo: function(cm, actionArgs) {
3030 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { cm.operation(function() {
3031 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { repeatFn(cm, CodeMirror.commands.undo, actionArgs.repeat)();
3032 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { cm.setCursor(cm.getCursor('anchor'));
3033 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { });
3034 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { },
3035 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { redo: function(cm, actionArgs) {
3036 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { repeatFn(cm, CodeMirror.commands.redo, actionArgs.repeat)();
3037 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { },
3038 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { setRegister: function(_cm, actionArgs, vim) {
3039 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { vim.inputState.registerName = actionArgs.selectedCharacter;
3040 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { },
3041 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { setMark: function(cm, actionArgs, vim) {
3042 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { var markName = actionArgs.selectedCharacter;
3043 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { updateMark(cm, vim, markName, cm.getCursor());
3044 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { },
3045 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { replace: function(cm, actionArgs, vim) {
3046 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { var replaceWith = actionArgs.selectedCharacter;
3047 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { var curStart = cm.getCursor();
3048 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { var replaceTo;
3049 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { var curEnd;
3050 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { var selections = cm.listSelections();
3051 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { if (vim.visualMode) {
3052 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { curStart = cm.getCursor('start');
3053 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { curEnd = cm.getCursor('end');
3054 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { } else {
3055 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { var line = cm.getLine(curStart.line);
3056 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { replaceTo = curStart.ch + actionArgs.repeat;
3057 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { if (replaceTo > line.length) {
3058 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { replaceTo=line.length;
3059 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { }
3060 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { curEnd = Pos(curStart.line, replaceTo);
3061 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { }
3062 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { if (replaceWith=='\n') {
3063 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { if (!vim.visualMode) cm.replaceRange('', curStart, curEnd);
3064 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { (CodeMirror.commands.newlineAndIndentContinueComment || CodeMirror.commands.newlineAndIndent)(cm);
3065 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { } else {
3066 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { var replaceWithStr = cm.getRange(curStart, curEnd);
3067 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { replaceWithStr = replaceWithStr.replace(/[^\n]/g, replaceWith);
3068 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { if (vim.visualBlock) {
3069 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { var spaces = new Array(cm.getOption("tabSize")+1).join(' ');
3070 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { replaceWithStr = cm.getSelection();
3071 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { replaceWithStr = replaceWithStr.replace(/\t/g, spaces).replace(/[^\n]/g, replaceWith).split('\n');
3072 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { cm.replaceSelections(replaceWithStr);
3073 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { } else {
3074 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { cm.replaceRange(replaceWithStr, curStart, curEnd);
3075 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { }
3076 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { if (vim.visualMode) {
3077 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { curStart = cursorIsBefore(selections[0].anchor, selections[0].head) ?
3078 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { selections[0].anchor : selections[0].head;
3079 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { cm.setCursor(curStart);
3080 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { exitVisualMode(cm, false);
3081 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { } else {
3082 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { cm.setCursor(offsetCursor(curEnd, 0, -1));
3083 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { }
3084 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { }
3085 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { },
3086 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { incrementNumberToken: function(cm, actionArgs) {
3087 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { var cur = cm.getCursor();
3088 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { var lineStr = cm.getLine(cur.line);
3089 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { var re = /-?\d+/g;
3090 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { var match;
3091 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { var start;
3092 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { var end;
3093 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { var numberStr;
3094 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { var token;
3095 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { while ((match = re.exec(lineStr)) !== null) {
3096 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { token = match[0];
3097 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { start = match.index;
3098 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { end = start + token.length;
3099 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) { if (cur.ch < end)break;
3100 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break; }
3101 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break; if (!actionArgs.backtrack && (end <= cur.ch))return;
3102 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; if (token) {
3103 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; var increment = actionArgs.increase ? 1 : -1;
3104 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; var number = parseInt(token) + (increment * actionArgs.repeat);
3105 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; var from = Pos(cur.line, start);
3106 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; var to = Pos(cur.line, end);
3107 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; numberStr = number.toString();
3108 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; cm.replaceRange(numberStr, from, to);
3109 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; } else {
3110 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; return;
3111 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; }
3112 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; cm.setCursor(Pos(cur.line, start + numberStr.length - 1));
3113 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; },
3114 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; repeatLastEdit: function(cm, actionArgs, vim) {
3115 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; var lastEditInputState = vim.lastEditInputState;
3116 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; if (!lastEditInputState) { return; }
3117 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; var repeat = actionArgs.repeat;
3118 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; if (repeat && actionArgs.repeatIsExplicit) {
3119 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; vim.lastEditInputState.repeatOverride = repeat;
3120 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; } else {
3121 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; repeat = vim.lastEditInputState.repeatOverride || repeat;
3122 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; }
3123 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; repeatLastEdit(cm, vim, repeat, false /** repeatForInsert */);
3124 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; },
3125 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; exitInsertMode: exitInsertMode
3126 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; };
3127  
3128 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; function defineAction(name, fn) {
3129 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; actions[name] = fn;
3130 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; }
3131 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; function clipCursorToContent(cm, cur, includeLineBreak) {
3132 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; var line = Math.min(Math.max(cm.firstLine(), cur.line), cm.lastLine() );
3133 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; var maxCh = lineLength(cm, line) - 1;
3134 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; maxCh = (includeLineBreak) ? maxCh + 1 : maxCh;
3135 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; var ch = Math.min(Math.max(0, cur.ch), maxCh);
3136 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; return Pos(line, ch);
3137 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; }
3138 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; function copyArgs(args) {
3139 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; var ret = {};
3140 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; for (var prop in args) {
3141 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; if (args.hasOwnProperty(prop)) {
3142 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; ret[prop] = args[prop];
3143 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; }
3144 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; }
3145 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; return ret;
3146 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; }
3147 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; function offsetCursor(cur, offsetLine, offsetCh) {
3148 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; if (typeof offsetLine === 'object') {
3149 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; offsetCh = offsetLine.ch;
3150 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; offsetLine = offsetLine.line;
3151 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; }
3152 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; return Pos(cur.line + offsetLine, cur.ch + offsetCh);
3153 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; }
3154 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; function getOffset(anchor, head) {
3155 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; return {
3156 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; line: head.line - anchor.line,
3157 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; ch: head.line - anchor.line
3158 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; };
3159 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; }
3160 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; function commandMatches(keys, keyMap, context, inputState) {
3161 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; var match, partial = [], full = [];
3162 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return; for (var i = 0; i < keyMap.length; i++) {
3163 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { var command = keyMap[i];
3164 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { if (context == 'insert' && command.context != 'insert' ||
3165 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { command.context && command.context != context ||
3166 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { inputState.operator && command.type == 'action' ||
3167 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { !(match = commandMatch(keys, command.keys))) { continue; }
3168 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { if (match == 'partial') { partial.push(command); }
3169 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { if (match == 'full') { full.push(command); }
3170 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { }
3171 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { return {
3172 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { partial: partial.length && partial,
3173 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { full: full.length && full
3174 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { };
3175 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { }
3176 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { function commandMatch(pressed, mapped) {
3177 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { if (mapped.slice(-11) == '') {
3178 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { var prefixLen = mapped.length - 11;
3179 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { var pressedPrefix = pressed.slice(0, prefixLen);
3180 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { var mappedPrefix = mapped.slice(0, prefixLen);
3181 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { return pressedPrefix == mappedPrefix && pressed.length > prefixLen ? 'full' :
3182 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { mappedPrefix.indexOf(pressedPrefix) == 0 ? 'partial' : false;
3183 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { } else {
3184 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { return pressed == mapped ? 'full' :
3185 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { mapped.indexOf(pressed) == 0 ? 'partial' : false;
3186 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { }
3187 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { }
3188 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { function lastChar(keys) {
3189 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { var match = /^.*(<[\w\-]+>)$/.exec(keys);
3190 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { var selectedCharacter = match ? match[1] : keys.slice(-1);
3191 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { if (selectedCharacter.length > 1){
3192 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { switch(selectedCharacter){
3193 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { case '':
3194 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { selectedCharacter='\n';
3195 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { break;
3196 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { case '':
3197 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { selectedCharacter=' ';
3198 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { break;
3199 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { default:
3200 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { break;
3201 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { }
3202 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { }
3203 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { return selectedCharacter;
3204 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { }
3205 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { function repeatFn(cm, fn, repeat) {
3206 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { return function() {
3207 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) { for (var i = 0; i < repeat; i++) {
3208 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) { fn(cm);
3209 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) { }
3210 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) { };
3211 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) { }
3212 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) { function copyCursor(cur) {
3213 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) { return Pos(cur.line, cur.ch);
3214 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) { }
3215 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) { function cursorEqual(cur1, cur2) {
3216 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) { return cur1.ch == cur2.ch && cur1.line == cur2.line;
3217 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) { }
3218 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) { function cursorIsBefore(cur1, cur2) {
3219 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) { if (cur1.line < cur2.line) {
3220 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) { return true;
3221 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) { }
3222 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) { if (cur1.line == cur2.line && cur1.ch < cur2.ch) {
3223 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return true;
3224 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3225 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return false;
3226 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3227 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function cursorMin(cur1, cur2) {
3228 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (arguments.length > 2) {
3229 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cur2 = cursorMin.apply(undefined, Array.prototype.slice.call(arguments, 1));
3230 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3231 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return cursorIsBefore(cur1, cur2) ? cur1 : cur2;
3232 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3233 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function cursorMax(cur1, cur2) {
3234 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (arguments.length > 2) {
3235 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cur2 = cursorMax.apply(undefined, Array.prototype.slice.call(arguments, 1));
3236 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3237 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return cursorIsBefore(cur1, cur2) ? cur2 : cur1;
3238 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3239 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function cursorIsBetween(cur1, cur2, cur3) {
3240 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var cur1before2 = cursorIsBefore(cur1, cur2);
3241 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var cur2before3 = cursorIsBefore(cur2, cur3);
3242 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return cur1before2 && cur2before3;
3243 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3244 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function lineLength(cm, lineNum) {
3245 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return cm.getLine(lineNum).length;
3246 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3247 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function trim(s) {
3248 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (s.trim) {
3249 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return s.trim();
3250 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3251 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return s.replace(/^\s+|\s+$/g, '');
3252 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3253 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function escapeRegex(s) {
3254 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return s.replace(/([.?*+$\[\]\/\\(){}|\-])/g, '\\$1');
3255 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3256 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function extendLineToColumn(cm, lineNum, column) {
3257 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var endCh = lineLength(cm, lineNum);
3258 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var spaces = new Array(column-endCh+1).join(' ');
3259 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.setCursor(Pos(lineNum, endCh));
3260 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.replaceRange(spaces, cm.getCursor());
3261 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3262 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function selectBlock(cm, selectionEnd) {
3263 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var selections = [], ranges = cm.listSelections();
3264 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var head = copyCursor(cm.clipPos(selectionEnd));
3265 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var isClipped = !cursorEqual(selectionEnd, head);
3266 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var curHead = cm.getCursor('head');
3267 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var primIndex = getIndex(ranges, curHead);
3268 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var wasClipped = cursorEqual(ranges[primIndex].head, ranges[primIndex].anchor);
3269 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var max = ranges.length - 1;
3270 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var index = max - primIndex > primIndex ? max : 0;
3271 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var base = ranges[index].anchor;
3272  
3273 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var firstLine = Math.min(base.line, head.line);
3274 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lastLine = Math.max(base.line, head.line);
3275 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var baseCh = base.ch, headCh = head.ch;
3276  
3277 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var dir = ranges[index].head.ch - baseCh;
3278 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var newDir = headCh - baseCh;
3279 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (dir > 0 && newDir <= 0) {
3280 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { baseCh++;
3281 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!isClipped) { headCh--; }
3282 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else if (dir < 0 && newDir >= 0) {
3283 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { baseCh--;
3284 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!wasClipped) { headCh++; }
3285 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else if (dir < 0 && newDir == -1) {
3286 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { baseCh--;
3287 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { headCh++;
3288 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3289 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var line = firstLine; line <= lastLine; line++) {
3290 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var range = {anchor: new Pos(line, baseCh), head: new Pos(line, headCh)};
3291 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { selections.push(range);
3292 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3293 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { primIndex = head.line == lastLine ? selections.length - 1 : 0;
3294 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.setSelections(selections);
3295 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { selectionEnd.ch = headCh;
3296 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { base.ch = baseCh;
3297 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return base;
3298 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3299 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function selectForInsert(cm, head, height) {
3300 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var sel = [];
3301 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = 0; i < height; i++) {
3302 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lineHead = offsetCursor(head, i, 0);
3303 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { sel.push({anchor: lineHead, head: lineHead});
3304 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3305 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.setSelections(sel, 0);
3306 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3307 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function getIndex(ranges, cursor, end) {
3308 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = 0; i < ranges.length; i++) {
3309 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var atAnchor = end != 'head' && cursorEqual(ranges[i].anchor, cursor);
3310 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var atHead = end != 'anchor' && cursorEqual(ranges[i].head, cursor);
3311 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (atAnchor || atHead) {
3312 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return i;
3313 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3314 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3315 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return -1;
3316 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3317 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function getSelectedAreaRange(cm, vim) {
3318 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lastSelection = vim.lastSelection;
3319 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var getCurrentSelectedAreaRange = function() {
3320 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var selections = cm.listSelections();
3321 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var start = selections[0];
3322 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var end = selections[selections.length-1];
3323 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var selectionStart = cursorIsBefore(start.anchor, start.head) ? start.anchor : start.head;
3324 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var selectionEnd = cursorIsBefore(end.anchor, end.head) ? end.head : end.anchor;
3325 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return [selectionStart, selectionEnd];
3326 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
3327 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var getLastSelectedAreaRange = function() {
3328 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var selectionStart = cm.getCursor();
3329 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var selectionEnd = cm.getCursor();
3330 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var block = lastSelection.visualBlock;
3331 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (block) {
3332 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var width = block.width;
3333 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var height = block.height;
3334 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { selectionEnd = Pos(selectionStart.line + height, selectionStart.ch + width);
3335 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var selections = [];
3336 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = selectionStart.line; i < selectionEnd.line; i++) {
3337 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var anchor = Pos(i, selectionStart.ch);
3338 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var head = Pos(i, selectionEnd.ch);
3339 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var range = {anchor: anchor, head: head};
3340 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { selections.push(range);
3341 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3342 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.setSelections(selections);
3343 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
3344 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var start = lastSelection.anchorMark.find();
3345 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var end = lastSelection.headMark.find();
3346 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var line = end.line - start.line;
3347 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var ch = end.ch - start.ch;
3348 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { selectionEnd = {line: selectionEnd.line + line, ch: line ? selectionEnd.ch : ch + selectionEnd.ch};
3349 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (lastSelection.visualLine) {
3350 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { selectionStart = Pos(selectionStart.line, 0);
3351 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { selectionEnd = Pos(selectionEnd.line, lineLength(cm, selectionEnd.line));
3352 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3353 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.setSelection(selectionStart, selectionEnd);
3354 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3355 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return [selectionStart, selectionEnd];
3356 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
3357 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!vim.visualMode) {
3358 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return getLastSelectedAreaRange();
3359 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
3360 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return getCurrentSelectedAreaRange();
3361 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3362 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3363 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function updateLastSelection(cm, vim) {
3364 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var anchor = vim.sel.anchor;
3365 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var head = vim.sel.head;
3366 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (vim.lastPastedText) {
3367 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { head = cm.posFromIndex(cm.indexFromPos(anchor) + vim.lastPastedText.length);
3368 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vim.lastPastedText = null;
3369 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3370 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vim.lastSelection = {'anchorMark': cm.setBookmark(anchor),
3371 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { 'headMark': cm.setBookmark(head),
3372 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { 'anchor': copyCursor(anchor),
3373 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { 'head': copyCursor(head),
3374 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { 'visualMode': vim.visualMode,
3375 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { 'visualLine': vim.visualLine,
3376 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { 'visualBlock': vim.visualBlock};
3377 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3378 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function expandSelection(cm, start, end) {
3379 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var sel = cm.state.vim.sel;
3380 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var head = sel.head;
3381 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var anchor = sel.anchor;
3382 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var tmp;
3383 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (cursorIsBefore(end, start)) {
3384 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { tmp = end;
3385 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { end = start;
3386 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { start = tmp;
3387 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3388 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (cursorIsBefore(head, anchor)) {
3389 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { head = cursorMin(start, head);
3390 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { anchor = cursorMax(anchor, end);
3391 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
3392 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { anchor = cursorMin(start, anchor);
3393 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { head = cursorMax(head, end);
3394 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { head = offsetCursor(head, 0, -1);
3395 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (head.ch == -1 && head.line != cm.firstLine()) {
3396 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { head = Pos(head.line - 1, lineLength(cm, head.line - 1));
3397 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3398 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3399 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return [anchor, head];
3400 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3401 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function updateCmSelection(cm, sel, mode) {
3402 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var vim = cm.state.vim;
3403 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { sel = sel || vim.sel;
3404 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var mode = mode ||
3405 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vim.visualLine ? 'line' : vim.visualBlock ? 'block' : 'char';
3406 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var cmSel = makeCmSelection(cm, sel, mode);
3407 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.setSelections(cmSel.ranges, cmSel.primary);
3408 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { updateFakeCursor(cm);
3409 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3410 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function makeCmSelection(cm, sel, mode, exclusive) {
3411 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var head = copyCursor(sel.head);
3412 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var anchor = copyCursor(sel.anchor);
3413 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (mode == 'char') {
3414 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var headOffset = !exclusive && !cursorIsBefore(sel.head, sel.anchor) ? 1 : 0;
3415 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var anchorOffset = cursorIsBefore(sel.head, sel.anchor) ? 1 : 0;
3416 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { head = offsetCursor(sel.head, 0, headOffset);
3417 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { anchor = offsetCursor(sel.anchor, 0, anchorOffset);
3418 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return {
3419 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { ranges: [{anchor: anchor, head: head}],
3420 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { primary: 0
3421 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
3422 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else if (mode == 'line') {
3423 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!cursorIsBefore(sel.head, sel.anchor)) {
3424 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { anchor.ch = 0;
3425  
3426 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lastLine = cm.lastLine();
3427 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (head.line > lastLine) {
3428 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { head.line = lastLine;
3429 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3430 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { head.ch = lineLength(cm, head.line);
3431 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
3432 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { head.ch = 0;
3433 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { anchor.ch = lineLength(cm, anchor.line);
3434 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3435 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return {
3436 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { ranges: [{anchor: anchor, head: head}],
3437 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { primary: 0
3438 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
3439 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else if (mode == 'block') {
3440 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var top = Math.min(anchor.line, head.line),
3441 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { left = Math.min(anchor.ch, head.ch),
3442 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { bottom = Math.max(anchor.line, head.line),
3443 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { right = Math.max(anchor.ch, head.ch) + 1;
3444 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var height = bottom - top + 1;
3445 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var primary = head.line == top ? 0 : height - 1;
3446 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var ranges = [];
3447 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = 0; i < height; i++) {
3448 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { ranges.push({
3449 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { anchor: Pos(top + i, left),
3450 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { head: Pos(top + i, right)
3451 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { });
3452 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3453 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return {
3454 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { ranges: ranges,
3455 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { primary: primary
3456 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
3457 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3458 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3459 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function getHead(cm) {
3460 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var cur = cm.getCursor('head');
3461 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (cm.getSelection().length == 1) {
3462 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cur = cursorMin(cur, cm.getCursor('anchor'));
3463 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3464 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return cur;
3465 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3466 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function exitVisualMode(cm, moveHead) {
3467 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var vim = cm.state.vim;
3468 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (moveHead !== false) {
3469 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.setCursor(clipCursorToContent(cm, vim.sel.head));
3470 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3471 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { updateLastSelection(cm, vim);
3472 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vim.visualMode = false;
3473 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vim.visualLine = false;
3474 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vim.visualBlock = false;
3475 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { CodeMirror.signal(cm, "vim-mode-change", {mode: "normal"});
3476 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (vim.fakeCursor) {
3477 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vim.fakeCursor.clear();
3478 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3479 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3480 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function clipToLine(cm, curStart, curEnd) {
3481 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var selection = cm.getRange(curStart, curEnd);
3482 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (/\n\s*$/.test(selection)) {
3483 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lines = selection.split('\n');
3484 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { lines.pop();
3485 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var line;
3486 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var line = lines.pop(); lines.length > 0 && line && isWhiteSpaceString(line); line = lines.pop()) {
3487 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { curEnd.line--;
3488 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { curEnd.ch = 0;
3489 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3490 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (line) {
3491 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { curEnd.line--;
3492 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { curEnd.ch = lineLength(cm, curEnd.line);
3493 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
3494 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { curEnd.ch = 0;
3495 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3496 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3497 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3498 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function expandSelectionToLine(_cm, curStart, curEnd) {
3499 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { curStart.ch = 0;
3500 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { curEnd.ch = 0;
3501 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { curEnd.line++;
3502 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3503  
3504 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function findFirstNonWhiteSpaceCharacter(text) {
3505 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!text) {
3506 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return 0;
3507 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3508 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var firstNonWS = text.search(/\S/);
3509 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return firstNonWS == -1 ? text.length : firstNonWS;
3510 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3511  
3512 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function expandWordUnderCursor(cm, inclusive, _forward, bigWord, noSymbol) {
3513 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var cur = getHead(cm);
3514 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var line = cm.getLine(cur.line);
3515 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var idx = cur.ch;
3516 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var test = noSymbol ? wordCharTest[0] : bigWordCharTest [0];
3517 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { while (!test(line.charAt(idx))) {
3518 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { idx++;
3519 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (idx >= line.length) { return null; }
3520 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3521  
3522 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (bigWord) {
3523 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { test = bigWordCharTest[0];
3524 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
3525 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { test = wordCharTest[0];
3526 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!test(line.charAt(idx))) {
3527 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { test = wordCharTest[1];
3528 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3529 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3530  
3531 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var end = idx, start = idx;
3532 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { while (test(line.charAt(end)) && end < line.length) { end++; }
3533 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { while (test(line.charAt(start)) && start >= 0) { start--; }
3534 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { start++;
3535  
3536 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (inclusive) {
3537 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var wordEnd = end;
3538 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { while (/\s/.test(line.charAt(end)) && end < line.length) { end++; }
3539 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (wordEnd == end) {
3540 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var wordStart = start;
3541 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { while (/\s/.test(line.charAt(start - 1)) && start > 0) { start--; }
3542 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!start) { start = wordStart; }
3543 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3544 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3545 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return { start: Pos(cur.line, start), end: Pos(cur.line, end) };
3546 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3547  
3548 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function recordJumpPosition(cm, oldCur, newCur) {
3549 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!cursorEqual(oldCur, newCur)) {
3550 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vimGlobalState.jumpList.add(cm, oldCur, newCur);
3551 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3552 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3553  
3554 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function recordLastCharacterSearch(increment, args) {
3555 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vimGlobalState.lastChararacterSearch.increment = increment;
3556 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vimGlobalState.lastChararacterSearch.forward = args.forward;
3557 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vimGlobalState.lastChararacterSearch.selectedCharacter = args.selectedCharacter;
3558 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3559  
3560 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var symbolToMode = {
3561 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { '(': 'bracket', ')': 'bracket', '{': 'bracket', '}': 'bracket',
3562 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { '[': 'section', ']': 'section',
3563 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { '*': 'comment', '/': 'comment',
3564 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { 'm': 'method', 'M': 'method',
3565 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { '#': 'preprocess'
3566 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
3567 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var findSymbolModes = {
3568 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { bracket: {
3569 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { isComplete: function(state) {
3570 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (state.nextCh === state.symb) {
3571 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.depth++;
3572 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (state.depth >= 1)return true;
3573 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else if (state.nextCh === state.reverseSymb) {
3574 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.depth--;
3575 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3576 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return false;
3577 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3578 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
3579 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { section: {
3580 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { init: function(state) {
3581 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.curMoveThrough = true;
3582 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.symb = (state.forward ? ']' : '[') === state.symb ? '{' : '}';
3583 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
3584 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { isComplete: function(state) {
3585 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return state.index === 0 && state.nextCh === state.symb;
3586 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3587 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
3588 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { comment: {
3589 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { isComplete: function(state) {
3590 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var found = state.lastCh === '*' && state.nextCh === '/';
3591 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.lastCh = state.nextCh;
3592 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return found;
3593 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3594 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
3595 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { method: {
3596 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { init: function(state) {
3597 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.symb = (state.symb === 'm' ? '{' : '}');
3598 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.reverseSymb = state.symb === '{' ? '}' : '{';
3599 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
3600 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { isComplete: function(state) {
3601 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (state.nextCh === state.symb)return true;
3602 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return false;
3603 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3604 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
3605 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { preprocess: {
3606 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { init: function(state) {
3607 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.index = 0;
3608 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
3609 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { isComplete: function(state) {
3610 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (state.nextCh === '#') {
3611 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var token = state.lineText.match(/#(\w+)/)[1];
3612 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (token === 'endif') {
3613 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (state.forward && state.depth === 0) {
3614 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return true;
3615 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3616 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.depth++;
3617 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else if (token === 'if') {
3618 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!state.forward && state.depth === 0) {
3619 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return true;
3620 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3621 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.depth--;
3622 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3623 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (token === 'else' && state.depth === 0)return true;
3624 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3625 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return false;
3626 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3627 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3628 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
3629 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function findSymbol(cm, repeat, forward, symb) {
3630 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var cur = copyCursor(cm.getCursor());
3631 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var increment = forward ? 1 : -1;
3632 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var endLine = forward ? cm.lineCount() : -1;
3633 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var curCh = cur.ch;
3634 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var line = cur.line;
3635 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lineText = cm.getLine(line);
3636 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var state = {
3637 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { lineText: lineText,
3638 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { nextCh: lineText.charAt(curCh),
3639 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { lastCh: null,
3640 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { index: curCh,
3641 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { symb: symb,
3642 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { reverseSymb: (forward ? { ')': '(', '}': '{' } : { '(': ')', '{': '}' })[symb],
3643 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { forward: forward,
3644 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { depth: 0,
3645 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { curMoveThrough: false
3646 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
3647 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var mode = symbolToMode[symb];
3648 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!mode)return cur;
3649 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var init = findSymbolModes[mode].init;
3650 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var isComplete = findSymbolModes[mode].isComplete;
3651 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (init) { init(state); }
3652 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { while (line !== endLine && repeat) {
3653 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.index += increment;
3654 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.nextCh = state.lineText.charAt(state.index);
3655 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!state.nextCh) {
3656 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { line += increment;
3657 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.lineText = cm.getLine(line) || '';
3658 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (increment > 0) {
3659 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.index = 0;
3660 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
3661 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lineLen = state.lineText.length;
3662 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.index = (lineLen > 0) ? (lineLen-1) : 0;
3663 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3664 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.nextCh = state.lineText.charAt(state.index);
3665 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3666 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (isComplete(state)) {
3667 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cur.line = line;
3668 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cur.ch = state.index;
3669 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { repeat--;
3670 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3671 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3672 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (state.nextCh || state.curMoveThrough) {
3673 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return Pos(line, state.index);
3674 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3675 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return cur;
3676 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3677 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function findWord(cm, cur, forward, bigWord, emptyLineIsWord) {
3678 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lineNum = cur.line;
3679 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var pos = cur.ch;
3680 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var line = cm.getLine(lineNum);
3681 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var dir = forward ? 1 : -1;
3682 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var charTests = bigWord ? bigWordCharTest: wordCharTest;
3683  
3684 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (emptyLineIsWord && line == '') {
3685 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { lineNum += dir;
3686 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { line = cm.getLine(lineNum);
3687 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!isLine(cm, lineNum)) {
3688 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return null;
3689 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3690 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { pos = (forward) ? 0 : line.length;
3691 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3692  
3693 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { while (true) {
3694 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (emptyLineIsWord && line == '') {
3695 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return { from: 0, to: 0, line: lineNum };
3696 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3697 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var stop = (dir > 0) ? line.length : -1;
3698 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var wordStart = stop, wordEnd = stop;
3699 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { while (pos != stop) {
3700 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var foundWord = false;
3701 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = 0; i < charTests.length && !foundWord; ++i) {
3702 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (charTests[i](line.charAt(pos))) {
3703 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { wordStart = pos;
3704 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { while (pos != stop && charTests[i](line.charAt(pos))) {
3705 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { pos += dir;
3706 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3707 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { wordEnd = pos;
3708 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { foundWord = wordStart != wordEnd;
3709 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (wordStart == cur.ch && lineNum == cur.line &&
3710 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { wordEnd == wordStart + dir) {
3711 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { continue;
3712 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
3713 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return {
3714 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { from: Math.min(wordStart, wordEnd + 1),
3715 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { to: Math.max(wordStart, wordEnd),
3716 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { line: lineNum };
3717 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3718 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3719 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3720 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!foundWord) {
3721 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { pos += dir;
3722 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3723 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3724 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { lineNum += dir;
3725 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!isLine(cm, lineNum)) {
3726 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return null;
3727 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3728 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { line = cm.getLine(lineNum);
3729 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { pos = (dir > 0) ? 0 : line.length;
3730 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3731 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { throw new Error('The impossible happened.');
3732 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3733 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function moveToWord(cm, cur, repeat, forward, wordEnd, bigWord) {
3734 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var curStart = copyCursor(cur);
3735 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var words = [];
3736 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (forward && !wordEnd || !forward && wordEnd) {
3737 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { repeat++;
3738 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3739 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var emptyLineIsWord = !(forward && wordEnd);
3740 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = 0; i < repeat; i++) {
3741 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var word = findWord(cm, cur, forward, bigWord, emptyLineIsWord);
3742 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!word) {
3743 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var eodCh = lineLength(cm, cm.lastLine());
3744 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { words.push(forward
3745 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { ? {line: cm.lastLine(), from: eodCh, to: eodCh}
3746 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { : {line: 0, from: 0, to: 0});
3747 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { break;
3748 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3749 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { words.push(word);
3750 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cur = Pos(word.line, forward ? (word.to - 1) : word.from);
3751 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3752 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var shortCircuit = words.length != repeat;
3753 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var firstWord = words[0];
3754 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lastWord = words.pop();
3755 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (forward && !wordEnd) {
3756 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!shortCircuit && (firstWord.from != curStart.ch || firstWord.line != curStart.line)) {
3757 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { lastWord = words.pop();
3758 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3759 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return Pos(lastWord.line, lastWord.from);
3760 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else if (forward && wordEnd) {
3761 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return Pos(lastWord.line, lastWord.to - 1);
3762 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else if (!forward && wordEnd) {
3763 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!shortCircuit && (firstWord.to != curStart.ch || firstWord.line != curStart.line)) {
3764 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { lastWord = words.pop();
3765 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3766 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return Pos(lastWord.line, lastWord.to);
3767 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
3768 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return Pos(lastWord.line, lastWord.from);
3769 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3770 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3771  
3772 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function moveToCharacter(cm, repeat, forward, character) {
3773 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var cur = cm.getCursor();
3774 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var start = cur.ch;
3775 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var idx;
3776 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = 0; i < repeat; i ++) {
3777 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var line = cm.getLine(cur.line);
3778 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { idx = charIdxInLine(start, line, character, forward, true);
3779 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (idx == -1) {
3780 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return null;
3781 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3782 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { start = idx;
3783 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3784 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return Pos(cm.getCursor().line, idx);
3785 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3786  
3787 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function moveToColumn(cm, repeat) {
3788 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var line = cm.getCursor().line;
3789 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return clipCursorToContent(cm, Pos(line, repeat - 1));
3790 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3791  
3792 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function updateMark(cm, vim, markName, pos) {
3793 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!inArray(markName, validMarks)) {
3794 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
3795 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3796 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (vim.marks[markName]) {
3797 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vim.marks[markName].clear();
3798 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3799 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vim.marks[markName] = cm.setBookmark(pos);
3800 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3801  
3802 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function charIdxInLine(start, line, character, forward, includeChar) {
3803 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var idx;
3804 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (forward) {
3805 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { idx = line.indexOf(character, start + 1);
3806 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (idx != -1 && !includeChar) {
3807 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { idx -= 1;
3808 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3809 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
3810 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { idx = line.lastIndexOf(character, start - 1);
3811 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (idx != -1 && !includeChar) {
3812 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { idx += 1;
3813 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3814 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3815 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return idx;
3816 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3817  
3818 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function findParagraph(cm, head, repeat, dir, inclusive) {
3819 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var line = head.line;
3820 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var min = cm.firstLine();
3821 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var max = cm.lastLine();
3822 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var start, end, i = line;
3823 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function isEmpty(i) { return !/\S/.test(cm.getLine(i)); } // ace_patch
3824 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function isBoundary(i, dir, any) {
3825 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (any) { return isEmpty(i) != isEmpty(i + dir); }
3826 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return !isEmpty(i) && isEmpty(i + dir);
3827 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3828 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function skipFold(i) {
3829 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { dir = dir > 0 ? 1 : -1;
3830 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var foldLine = cm.ace.session.getFoldLine(i);
3831 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (foldLine) {
3832 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (i + dir > foldLine.start.row && i + dir < foldLine.end.row)
3833 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { dir = (dir > 0 ? foldLine.end.row : foldLine.start.row) - i;
3834 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3835 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3836 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (dir) {
3837 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { while (min <= i && i <= max && repeat > 0) {
3838 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { skipFold(i);
3839 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (isBoundary(i, dir)) { repeat--; }
3840 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { i += dir;
3841 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3842 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return new Pos(i, 0);
3843 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3844  
3845 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var vim = cm.state.vim;
3846 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (vim.visualLine && isBoundary(line, 1, true)) {
3847 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var anchor = vim.sel.anchor;
3848 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (isBoundary(anchor.line, -1, true)) {
3849 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!inclusive || anchor.line != line) {
3850 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { line += 1;
3851 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3852 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3853 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3854 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var startState = isEmpty(line);
3855 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (i = line; i <= max && repeat; i++) {
3856 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (isBoundary(i, 1, true)) {
3857 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!inclusive || isEmpty(i) != startState) {
3858 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { repeat--;
3859 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3860 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3861 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3862 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { end = new Pos(i, 0);
3863 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (i > max && !startState) { startState = true; }
3864 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { else { inclusive = false; }
3865 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (i = line; i > min; i--) {
3866 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!inclusive || isEmpty(i) == startState || i == line) {
3867 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (isBoundary(i, -1, true)) { break; }
3868 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3869 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3870 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { start = new Pos(i, 0);
3871 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return { start: start, end: end };
3872 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3873 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function selectCompanionObject(cm, head, symb, inclusive) {
3874 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var cur = head, start, end;
3875  
3876 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var bracketRegexp = ({
3877 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { '(': /[()]/, ')': /[()]/,
3878 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { '[': /[[\]]/, ']': /[[\]]/,
3879 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { '{': /[{}]/, '}': /[{}]/})[symb];
3880 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var openSym = ({
3881 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { '(': '(', ')': '(',
3882 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { '[': '[', ']': '[',
3883 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { '{': '{', '}': '{'})[symb];
3884 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var curChar = cm.getLine(cur.line).charAt(cur.ch);
3885 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var offset = curChar === openSym ? 1 : 0;
3886  
3887 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { start = cm.scanForBracket(Pos(cur.line, cur.ch + offset), -1, null, {'bracketRegex': bracketRegexp});
3888 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { end = cm.scanForBracket(Pos(cur.line, cur.ch + offset), 1, null, {'bracketRegex': bracketRegexp});
3889  
3890 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!start || !end) {
3891 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return { start: cur, end: cur };
3892 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3893  
3894 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { start = start.pos;
3895 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { end = end.pos;
3896  
3897 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if ((start.line == end.line && start.ch > end.ch)
3898 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { || (start.line > end.line)) {
3899 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var tmp = start;
3900 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { start = end;
3901 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { end = tmp;
3902 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3903  
3904 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (inclusive) {
3905 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { end.ch += 1;
3906 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
3907 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { start.ch += 1;
3908 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3909  
3910 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return { start: start, end: end };
3911 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3912 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function findBeginningAndEnd(cm, head, symb, inclusive) {
3913 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var cur = copyCursor(head);
3914 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var line = cm.getLine(cur.line);
3915 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var chars = line.split('');
3916 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var start, end, i, len;
3917 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var firstIndex = chars.indexOf(symb);
3918 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (cur.ch < firstIndex) {
3919 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cur.ch = firstIndex;
3920 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3921 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { else if (firstIndex < cur.ch && chars[cur.ch] == symb) {
3922 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { end = cur.ch; // assign end to the current cursor
3923 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { --cur.ch; // make sure to look backwards
3924 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3925 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (chars[cur.ch] == symb && !end) {
3926 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { start = cur.ch + 1; // assign start to ahead of the cursor
3927 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
3928 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (i = cur.ch; i > -1 && !start; i--) {
3929 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (chars[i] == symb) {
3930 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { start = i + 1;
3931 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3932 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3933 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3934 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (start && !end) {
3935 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (i = start, len = chars.length; i < len && !end; i++) {
3936 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (chars[i] == symb) {
3937 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { end = i;
3938 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3939 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3940 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3941 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!start || !end) {
3942 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return { start: cur, end: cur };
3943 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3944 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (inclusive) {
3945 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { --start; ++end;
3946 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3947  
3948 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return {
3949 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { start: Pos(cur.line, start),
3950 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { end: Pos(cur.line, end)
3951 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
3952 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3953 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { defineOption('pcre', true, 'boolean');
3954 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function SearchState() {}
3955 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { SearchState.prototype = {
3956 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { getQuery: function() {
3957 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return vimGlobalState.query;
3958 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
3959 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { setQuery: function(query) {
3960 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vimGlobalState.query = query;
3961 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
3962 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { getOverlay: function() {
3963 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return this.searchOverlay;
3964 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
3965 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { setOverlay: function(overlay) {
3966 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { this.searchOverlay = overlay;
3967 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
3968 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { isReversed: function() {
3969 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return vimGlobalState.isReversed;
3970 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
3971 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { setReversed: function(reversed) {
3972 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vimGlobalState.isReversed = reversed;
3973 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
3974 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { getScrollbarAnnotate: function() {
3975 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return this.annotate;
3976 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
3977 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { setScrollbarAnnotate: function(annotate) {
3978 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { this.annotate = annotate;
3979 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3980 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
3981 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function getSearchState(cm) {
3982 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var vim = cm.state.vim;
3983 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return vim.searchState_ || (vim.searchState_ = new SearchState());
3984 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3985 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function dialog(cm, template, shortText, onClose, options) {
3986 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (cm.openDialog) {
3987 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.openDialog(template, onClose, { bottom: true, value: options.value,
3988 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { onKeyDown: options.onKeyDown, onKeyUp: options.onKeyUp,
3989 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { selectValueOnOpen: false});
3990 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3991 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { else {
3992 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { onClose(prompt(shortText, ''));
3993 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3994 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
3995 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function splitBySlash(argString) {
3996 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var slashes = findUnescapedSlashes(argString) || [];
3997 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!slashes.length) return [];
3998 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var tokens = [];
3999 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (slashes[0] !== 0) return;
4000 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = 0; i < slashes.length; i++) {
4001 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (typeof slashes[i] == 'number')
4002 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { tokens.push(argString.substring(slashes[i] + 1, slashes[i+1]));
4003 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4004 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return tokens;
4005 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4006  
4007 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function findUnescapedSlashes(str) {
4008 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var escapeNextChar = false;
4009 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var slashes = [];
4010 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = 0; i < str.length; i++) {
4011 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var c = str.charAt(i);
4012 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!escapeNextChar && c == '/') {
4013 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { slashes.push(i);
4014 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4015 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { escapeNextChar = !escapeNextChar && (c == '\\');
4016 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4017 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return slashes;
4018 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4019 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function translateRegex(str) {
4020 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var specials = '|(){';
4021 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var unescape = '}';
4022 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var escapeNextChar = false;
4023 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var out = [];
4024 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = -1; i < str.length; i++) {
4025 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var c = str.charAt(i) || '';
4026 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var n = str.charAt(i+1) || '';
4027 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var specialComesNext = (n && specials.indexOf(n) != -1);
4028 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (escapeNextChar) {
4029 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (c !== '\\' || !specialComesNext) {
4030 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { out.push(c);
4031 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4032 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { escapeNextChar = false;
4033 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4034 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (c === '\\') {
4035 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { escapeNextChar = true;
4036 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (n && unescape.indexOf(n) != -1) {
4037 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { specialComesNext = true;
4038 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4039 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!specialComesNext || n === '\\') {
4040 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { out.push(c);
4041 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4042 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4043 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { out.push(c);
4044 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (specialComesNext && n !== '\\') {
4045 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { out.push('\\');
4046 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4047 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4048 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4049 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4050 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return out.join('');
4051 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4052 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var charUnescapes = {'\\n': '\n', '\\r': '\r', '\\t': '\t'};
4053 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function translateRegexReplace(str) {
4054 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var escapeNextChar = false;
4055 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var out = [];
4056 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = -1; i < str.length; i++) {
4057 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var c = str.charAt(i) || '';
4058 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var n = str.charAt(i+1) || '';
4059 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (charUnescapes[c + n]) {
4060 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { out.push(charUnescapes[c+n]);
4061 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { i++;
4062 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else if (escapeNextChar) {
4063 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { out.push(c);
4064 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { escapeNextChar = false;
4065 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4066 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (c === '\\') {
4067 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { escapeNextChar = true;
4068 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if ((isNumber(n) || n === '$')) {
4069 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { out.push('$');
4070 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else if (n !== '/' && n !== '\\') {
4071 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { out.push('\\');
4072 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4073 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4074 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (c === '$') {
4075 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { out.push('$');
4076 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4077 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { out.push(c);
4078 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (n === '/') {
4079 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { out.push('\\');
4080 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4081 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4082 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4083 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4084 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return out.join('');
4085 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4086 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var unescapes = {'\\/': '/', '\\\\': '\\', '\\n': '\n', '\\r': '\r', '\\t': '\t'};
4087 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function unescapeRegexReplace(str) {
4088 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var stream = new CodeMirror.StringStream(str);
4089 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var output = [];
4090 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { while (!stream.eol()) {
4091 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { while (stream.peek() && stream.peek() != '\\') {
4092 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { output.push(stream.next());
4093 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4094 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var matched = false;
4095 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var matcher in unescapes) {
4096 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (stream.match(matcher, true)) {
4097 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { matched = true;
4098 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { output.push(unescapes[matcher]);
4099 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { break;
4100 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4101 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4102 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!matched) {
4103 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { output.push(stream.next());
4104 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4105 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4106 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return output.join('');
4107 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4108 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function parseQuery(query, ignoreCase, smartCase) {
4109 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lastSearchRegister = vimGlobalState.registerController.getRegister('/');
4110 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { lastSearchRegister.setText(query);
4111 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (query instanceof RegExp) { return query; }
4112 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var slashes = findUnescapedSlashes(query);
4113 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var regexPart;
4114 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var forceIgnoreCase;
4115 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!slashes.length) {
4116 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { regexPart = query;
4117 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4118 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { regexPart = query.substring(0, slashes[0]);
4119 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var flagsPart = query.substring(slashes[0]);
4120 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { forceIgnoreCase = (flagsPart.indexOf('i') != -1);
4121 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4122 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!regexPart) {
4123 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return null;
4124 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4125 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!getOption('pcre')) {
4126 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { regexPart = translateRegex(regexPart);
4127 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4128 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (smartCase) {
4129 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { ignoreCase = (/^[^A-Z]*$/).test(regexPart);
4130 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4131 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var regexp = new RegExp(regexPart,
4132 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { (ignoreCase || forceIgnoreCase) ? 'i' : undefined);
4133 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return regexp;
4134 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4135 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function showConfirm(cm, text) {
4136 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (cm.openNotification) {
4137 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.openNotification('<span style="color: red">' + text + '</span>',
4138 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { {bottom: true, duration: 5000});
4139 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4140 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { alert(text);
4141 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4142 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4143 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function makePrompt(prefix, desc) {
4144 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var raw = '';
4145 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (prefix) {
4146 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { raw += '<span style="font-family: monospace">' + prefix + '</span>';
4147 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4148 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { raw += '<input type="text"/> ' +
4149 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { '<span style="color: #888">';
4150 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (desc) {
4151 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { raw += '<span style="color: #888">';
4152 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { raw += desc;
4153 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { raw += '</span>';
4154 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4155 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return raw;
4156 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4157 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var searchPromptDesc = '(Javascript regexp)';
4158 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function showPrompt(cm, options) {
4159 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var shortText = (options.prefix || '') + ' ' + (options.desc || '');
4160 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var prompt = makePrompt(options.prefix, options.desc);
4161 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { dialog(cm, prompt, shortText, options.onClose, options);
4162 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4163 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function regexEqual(r1, r2) {
4164 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (r1 instanceof RegExp && r2 instanceof RegExp) {
4165 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var props = ['global', 'multiline', 'ignoreCase', 'source'];
4166 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = 0; i < props.length; i++) {
4167 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var prop = props[i];
4168 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (r1[prop] !== r2[prop]) {
4169 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return false;
4170 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4171 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4172 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return true;
4173 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4174 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return false;
4175 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4176 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function updateSearchQuery(cm, rawQuery, ignoreCase, smartCase) {
4177 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!rawQuery) {
4178 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4179 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4180 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var state = getSearchState(cm);
4181 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var query = parseQuery(rawQuery, !!ignoreCase, !!smartCase);
4182 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!query) {
4183 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4184 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4185 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { highlightSearchMatches(cm, query);
4186 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (regexEqual(query, state.getQuery())) {
4187 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return query;
4188 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4189 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.setQuery(query);
4190 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return query;
4191 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4192 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function searchOverlay(query) {
4193 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (query.source.charAt(0) == '^') {
4194 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var matchSol = true;
4195 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4196 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return {
4197 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { token: function(stream) {
4198 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (matchSol && !stream.sol()) {
4199 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { stream.skipToEnd();
4200 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4201 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4202 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var match = stream.match(query, false);
4203 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (match) {
4204 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (match[0].length == 0) {
4205 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { stream.next();
4206 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return 'searching';
4207 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4208 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!stream.sol()) {
4209 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { stream.backUp(1);
4210 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!query.exec(stream.next() + match[0])) {
4211 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { stream.next();
4212 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return null;
4213 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4214 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4215 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { stream.match(query);
4216 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return 'searching';
4217 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4218 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { while (!stream.eol()) {
4219 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { stream.next();
4220 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (stream.match(query, false)) break;
4221 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4222 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4223 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { query: query
4224 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
4225 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4226 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function highlightSearchMatches(cm, query) {
4227 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var searchState = getSearchState(cm);
4228 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var overlay = searchState.getOverlay();
4229 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!overlay || query != overlay.query) {
4230 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (overlay) {
4231 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.removeOverlay(overlay);
4232 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4233 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { overlay = searchOverlay(query);
4234 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.addOverlay(overlay);
4235 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (cm.showMatchesOnScrollbar) {
4236 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (searchState.getScrollbarAnnotate()) {
4237 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { searchState.getScrollbarAnnotate().clear();
4238 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4239 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { searchState.setScrollbarAnnotate(cm.showMatchesOnScrollbar(query));
4240 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4241 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { searchState.setOverlay(overlay);
4242 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4243 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4244 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function findNext(cm, prev, query, repeat) {
4245 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (repeat === undefined) { repeat = 1; }
4246 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return cm.operation(function() {
4247 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var pos = cm.getCursor();
4248 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var cursor = cm.getSearchCursor(query, pos);
4249 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = 0; i < repeat; i++) {
4250 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var found = cursor.find(prev);
4251 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (i == 0 && found && cursorEqual(cursor.from(), pos)) { found = cursor.find(prev); }
4252 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!found) {
4253 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cursor = cm.getSearchCursor(query,
4254 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { (prev) ? Pos(cm.lastLine()) : Pos(cm.firstLine(), 0) );
4255 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!cursor.find(prev)) {
4256 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4257 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4258 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4259 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4260 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return cursor.from();
4261 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { });
4262 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4263 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function clearSearchHighlight(cm) {
4264 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var state = getSearchState(cm);
4265 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.removeOverlay(getSearchState(cm).getOverlay());
4266 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.setOverlay(null);
4267 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (state.getScrollbarAnnotate()) {
4268 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.getScrollbarAnnotate().clear();
4269 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { state.setScrollbarAnnotate(null);
4270 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4271 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4272 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function isInRange(pos, start, end) {
4273 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (typeof pos != 'number') {
4274 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { pos = pos.line;
4275 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4276 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (start instanceof Array) {
4277 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return inArray(pos, start);
4278 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4279 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (end) {
4280 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return (pos >= start && pos <= end);
4281 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4282 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return pos == start;
4283 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4284 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4285 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4286 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function getUserVisibleLines(cm) {
4287 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var renderer = cm.ace.renderer;
4288 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return {
4289 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { top: renderer.getFirstFullyVisibleRow(),
4290 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { bottom: renderer.getLastFullyVisibleRow()
4291 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4292 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4293  
4294 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var ExCommandDispatcher = function() {
4295 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { this.buildCommandMap_();
4296 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
4297 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { ExCommandDispatcher.prototype = {
4298 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { processCommand: function(cm, input, opt_params) {
4299 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var that = this;
4300 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.operation(function () {
4301 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.curOp.isVimOp = true;
4302 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { that._processCommand(cm, input, opt_params);
4303 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { });
4304 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4305 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { _processCommand: function(cm, input, opt_params) {
4306 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var vim = cm.state.vim;
4307 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var commandHistoryRegister = vimGlobalState.registerController.getRegister(':');
4308 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var previousCommand = commandHistoryRegister.toString();
4309 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (vim.visualMode) {
4310 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { exitVisualMode(cm);
4311 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4312 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var inputStream = new CodeMirror.StringStream(input);
4313 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { commandHistoryRegister.setText(input);
4314 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var params = opt_params || {};
4315 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { params.input = input;
4316 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { try {
4317 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { this.parseInput_(cm, inputStream, params);
4318 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } catch(e) {
4319 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, e);
4320 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { throw e;
4321 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4322 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var command;
4323 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var commandName;
4324 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!params.commandName) {
4325 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (params.line !== undefined) {
4326 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { commandName = 'move';
4327 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4328 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4329 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { command = this.matchCommand_(params.commandName);
4330 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (command) {
4331 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { commandName = command.name;
4332 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (command.excludeFromCommandHistory) {
4333 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { commandHistoryRegister.setText(previousCommand);
4334 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4335 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { this.parseCommandArgs_(inputStream, params, command);
4336 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (command.type == 'exToKey') {
4337 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = 0; i < command.toKeys.length; i++) {
4338 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { CodeMirror.Vim.handleKey(cm, command.toKeys[i], 'mapping');
4339 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4340 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4341 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else if (command.type == 'exToEx') {
4342 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { this.processCommand(cm, command.toInput);
4343 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4344 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4345 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4346 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4347 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!commandName) {
4348 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, 'Not an editor command ":' + input + '"');
4349 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4350 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4351 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { try {
4352 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { exCommands[commandName](cm, params);
4353 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if ((!command || !command.possiblyAsync) && params.callback) {
4354 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { params.callback();
4355 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4356 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } catch(e) {
4357 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, e);
4358 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { throw e;
4359 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4360 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4361 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { parseInput_: function(cm, inputStream, result) {
4362 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { inputStream.eatWhile(':');
4363 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (inputStream.eat('%')) {
4364 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { result.line = cm.firstLine();
4365 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { result.lineEnd = cm.lastLine();
4366 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4367 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { result.line = this.parseLineSpec_(cm, inputStream);
4368 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (result.line !== undefined && inputStream.eat(',')) {
4369 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { result.lineEnd = this.parseLineSpec_(cm, inputStream);
4370 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4371 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4372 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var commandMatch = inputStream.match(/^(\w+)/);
4373 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (commandMatch) {
4374 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { result.commandName = commandMatch[1];
4375 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4376 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { result.commandName = inputStream.match(/.*/)[0];
4377 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4378  
4379 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return result;
4380 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4381 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { parseLineSpec_: function(cm, inputStream) {
4382 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var numberMatch = inputStream.match(/^(\d+)/);
4383 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (numberMatch) {
4384 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return parseInt(numberMatch[1], 10) - 1;
4385 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4386 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { switch (inputStream.next()) {
4387 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { case '.':
4388 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return cm.getCursor().line;
4389 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { case '$':
4390 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return cm.lastLine();
4391 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { case '\'':
4392 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var mark = cm.state.vim.marks[inputStream.next()];
4393 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (mark && mark.find()) {
4394 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return mark.find().line;
4395 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4396 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { throw new Error('Mark not set');
4397 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { default:
4398 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { inputStream.backUp(1);
4399 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return undefined;
4400 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4401 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4402 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { parseCommandArgs_: function(inputStream, params, command) {
4403 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (inputStream.eol()) {
4404 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4405 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4406 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { params.argString = inputStream.match(/.*/)[0];
4407 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var delim = command.argDelimiter || /\s+/;
4408 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var args = trim(params.argString).split(delim);
4409 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (args.length && args[0]) {
4410 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { params.args = args;
4411 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4412 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4413 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { matchCommand_: function(commandName) {
4414 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = commandName.length; i > 0; i--) {
4415 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var prefix = commandName.substring(0, i);
4416 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (this.commandMap_[prefix]) {
4417 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var command = this.commandMap_[prefix];
4418 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (command.name.indexOf(commandName) === 0) {
4419 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return command;
4420 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4421 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4422 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4423 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return null;
4424 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4425 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { buildCommandMap_: function() {
4426 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { this.commandMap_ = {};
4427 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = 0; i < defaultExCommandMap.length; i++) {
4428 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var command = defaultExCommandMap[i];
4429 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var key = command.shortName || command.name;
4430 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { this.commandMap_[key] = command;
4431 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4432 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4433 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { map: function(lhs, rhs, ctx) {
4434 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (lhs != ':' && lhs.charAt(0) == ':') {
4435 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (ctx) { throw Error('Mode not supported for ex mappings'); }
4436 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var commandName = lhs.substring(1);
4437 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (rhs != ':' && rhs.charAt(0) == ':') {
4438 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { this.commandMap_[commandName] = {
4439 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { name: commandName,
4440 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { type: 'exToEx',
4441 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { toInput: rhs.substring(1),
4442 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { user: true
4443 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
4444 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4445 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { this.commandMap_[commandName] = {
4446 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { name: commandName,
4447 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { type: 'exToKey',
4448 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { toKeys: rhs,
4449 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { user: true
4450 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
4451 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4452 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4453 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (rhs != ':' && rhs.charAt(0) == ':') {
4454 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var mapping = {
4455 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { keys: lhs,
4456 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { type: 'keyToEx',
4457 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { exArgs: { input: rhs.substring(1) },
4458 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { user: true};
4459 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (ctx) { mapping.context = ctx; }
4460 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { defaultKeymap.unshift(mapping);
4461 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4462 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var mapping = {
4463 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { keys: lhs,
4464 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { type: 'keyToKey',
4465 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { toKeys: rhs,
4466 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { user: true
4467 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
4468 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (ctx) { mapping.context = ctx; }
4469 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { defaultKeymap.unshift(mapping);
4470 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4471 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4472 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4473 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { unmap: function(lhs, ctx) {
4474 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (lhs != ':' && lhs.charAt(0) == ':') {
4475 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (ctx) { throw Error('Mode not supported for ex mappings'); }
4476 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var commandName = lhs.substring(1);
4477 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (this.commandMap_[commandName] && this.commandMap_[commandName].user) {
4478 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { delete this.commandMap_[commandName];
4479 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4480 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4481 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4482 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var keys = lhs;
4483 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = 0; i < defaultKeymap.length; i++) {
4484 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (keys == defaultKeymap[i].keys
4485 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { && defaultKeymap[i].context === ctx
4486 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { && defaultKeymap[i].user) {
4487 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { defaultKeymap.splice(i, 1);
4488 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4489 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4490 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4491 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4492 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4493 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
4494  
4495 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var exCommands = {
4496 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { colorscheme: function(cm, params) {
4497 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!params.args || params.args.length < 1) {
4498 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, cm.getOption('theme'));
4499 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4500 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4501 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.setOption('theme', params.args[0]);
4502 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4503 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { map: function(cm, params, ctx) {
4504 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var mapArgs = params.args;
4505 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!mapArgs || mapArgs.length < 2) {
4506 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (cm) {
4507 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, 'Invalid mapping: ' + params.input);
4508 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4509 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4510 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4511 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { exCommandDispatcher.map(mapArgs[0], mapArgs[1], ctx);
4512 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4513 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { imap: function(cm, params) { this.map(cm, params, 'insert'); },
4514 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { nmap: function(cm, params) { this.map(cm, params, 'normal'); },
4515 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vmap: function(cm, params) { this.map(cm, params, 'visual'); },
4516 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { unmap: function(cm, params, ctx) {
4517 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var mapArgs = params.args;
4518 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!mapArgs || mapArgs.length < 1) {
4519 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (cm) {
4520 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, 'No such mapping: ' + params.input);
4521 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4522 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4523 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4524 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { exCommandDispatcher.unmap(mapArgs[0], ctx);
4525 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4526 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { move: function(cm, params) {
4527 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { commandDispatcher.processCommand(cm, cm.state.vim, {
4528 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { type: 'motion',
4529 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { motion: 'moveToLineOrEdgeOfDocument',
4530 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { motionArgs: { forward: false, explicitRepeat: true,
4531 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { linewise: true },
4532 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { repeatOverride: params.line+1});
4533 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4534 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { set: function(cm, params) {
4535 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var setArgs = params.args;
4536 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var setCfg = params.setCfg || {};
4537 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!setArgs || setArgs.length < 1) {
4538 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (cm) {
4539 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, 'Invalid mapping: ' + params.input);
4540 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4541 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4542 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4543 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var expr = setArgs[0].split('=');
4544 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var optionName = expr[0];
4545 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var value = expr[1];
4546 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var forceGet = false;
4547  
4548 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (optionName.charAt(optionName.length - 1) == '?') {
4549 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (value) { throw Error('Trailing characters: ' + params.argString); }
4550 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { optionName = optionName.substring(0, optionName.length - 1);
4551 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { forceGet = true;
4552 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4553 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (value === undefined && optionName.substring(0, 2) == 'no') {
4554 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { optionName = optionName.substring(2);
4555 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { value = false;
4556 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4557  
4558 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var optionIsBoolean = options[optionName] && options[optionName].type == 'boolean';
4559 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (optionIsBoolean && value == undefined) {
4560 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { value = true;
4561 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4562 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!optionIsBoolean && value === undefined || forceGet) {
4563 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var oldValue = getOption(optionName, cm, setCfg);
4564 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (oldValue === true || oldValue === false) {
4565 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, ' ' + (oldValue ? '' : 'no') + optionName);
4566 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4567 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, ' ' + optionName + '=' + oldValue);
4568 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4569 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4570 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { setOption(optionName, value, cm, setCfg);
4571 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4572 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4573 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { setlocal: function (cm, params) {
4574 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { params.setCfg = {scope: 'local'};
4575 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { this.set(cm, params);
4576 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4577 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { setglobal: function (cm, params) {
4578 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { params.setCfg = {scope: 'global'};
4579 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { this.set(cm, params);
4580 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4581 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { registers: function(cm, params) {
4582 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var regArgs = params.args;
4583 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var registers = vimGlobalState.registerController.registers;
4584 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var regInfo = '----------Registers----------<br><br>';
4585 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!regArgs) {
4586 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var registerName in registers) {
4587 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var text = registers[registerName].toString();
4588 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (text.length) {
4589 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { regInfo += '"' + registerName + ' ' + text + '<br>';
4590 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4591 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4592 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4593 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var registerName;
4594 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { regArgs = regArgs.join('');
4595 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = 0; i < regArgs.length; i++) {
4596 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { registerName = regArgs.charAt(i);
4597 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!vimGlobalState.registerController.isValidRegister(registerName)) {
4598 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { continue;
4599 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4600 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var register = registers[registerName] || new Register();
4601 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { regInfo += '"' + registerName + ' ' + register.toString() + '<br>';
4602 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4603 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4604 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, regInfo);
4605 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4606 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { sort: function(cm, params) {
4607 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var reverse, ignoreCase, unique, number;
4608 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function parseArgs() {
4609 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (params.argString) {
4610 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var args = new CodeMirror.StringStream(params.argString);
4611 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (args.eat('!')) { reverse = true; }
4612 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (args.eol()) { return; }
4613 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!args.eatSpace()) { return 'Invalid arguments'; }
4614 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var opts = args.match(/[a-z]+/);
4615 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (opts) {
4616 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { opts = opts[0];
4617 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { ignoreCase = opts.indexOf('i') != -1;
4618 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { unique = opts.indexOf('u') != -1;
4619 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var decimal = opts.indexOf('d') != -1 && 1;
4620 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var hex = opts.indexOf('x') != -1 && 1;
4621 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var octal = opts.indexOf('o') != -1 && 1;
4622 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (decimal + hex + octal > 1) { return 'Invalid arguments'; }
4623 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { number = decimal && 'decimal' || hex && 'hex' || octal && 'octal';
4624 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4625 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (args.match(/\/.*\//)) { return 'patterns not supported'; }
4626 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4627 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4628 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var err = parseArgs();
4629 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (err) {
4630 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, err + ': ' + params.argString);
4631 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4632 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4633 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lineStart = params.line || cm.firstLine();
4634 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lineEnd = params.lineEnd || params.line || cm.lastLine();
4635 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (lineStart == lineEnd) { return; }
4636 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var curStart = Pos(lineStart, 0);
4637 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var curEnd = Pos(lineEnd, lineLength(cm, lineEnd));
4638 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var text = cm.getRange(curStart, curEnd).split('\n');
4639 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var numberRegex = (number == 'decimal') ? /(-?)([\d]+)/ :
4640 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { (number == 'hex') ? /(-?)(?:0x)?([0-9a-f]+)/i :
4641 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { (number == 'octal') ? /([0-7]+)/ : null;
4642 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var radix = (number == 'decimal') ? 10 : (number == 'hex') ? 16 : (number == 'octal') ? 8 : null;
4643 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var numPart = [], textPart = [];
4644 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (number) {
4645 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = 0; i < text.length; i++) {
4646 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (numberRegex.exec(text[i])) {
4647 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { numPart.push(text[i]);
4648 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4649 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { textPart.push(text[i]);
4650 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4651 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4652 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4653 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { textPart = text;
4654 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4655 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function compareFn(a, b) {
4656 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (reverse) { var tmp; tmp = a; a = b; b = tmp; }
4657 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (ignoreCase) { a = a.toLowerCase(); b = b.toLowerCase(); }
4658 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var anum = number && numberRegex.exec(a);
4659 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var bnum = number && numberRegex.exec(b);
4660 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!anum) { return a < b ? -1 : 1; }
4661 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { anum = parseInt((anum[1] + anum[2]).toLowerCase(), radix);
4662 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { bnum = parseInt((bnum[1] + bnum[2]).toLowerCase(), radix);
4663 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return anum - bnum;
4664 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4665 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { numPart.sort(compareFn);
4666 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { textPart.sort(compareFn);
4667 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { text = (!reverse) ? textPart.concat(numPart) : numPart.concat(textPart);
4668 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (unique) { // Remove duplicate lines
4669 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var textOld = text;
4670 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lastLine;
4671 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { text = [];
4672 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = 0; i < textOld.length; i++) {
4673 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (textOld[i] != lastLine) {
4674 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { text.push(textOld[i]);
4675 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4676 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { lastLine = textOld[i];
4677 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4678 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4679 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.replaceRange(text.join('\n'), curStart, curEnd);
4680 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4681 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { global: function(cm, params) {
4682 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var argString = params.argString;
4683 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!argString) {
4684 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, 'Regular Expression missing from global');
4685 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4686 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4687 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lineStart = (params.line !== undefined) ? params.line : cm.firstLine();
4688 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lineEnd = params.lineEnd || params.line || cm.lastLine();
4689 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var tokens = splitBySlash(argString);
4690 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var regexPart = argString, cmd;
4691 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (tokens.length) {
4692 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { regexPart = tokens[0];
4693 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cmd = tokens.slice(1, tokens.length).join('/');
4694 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4695 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (regexPart) {
4696 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { try {
4697 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { updateSearchQuery(cm, regexPart, true /** ignoreCase */,
4698 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { true /** smartCase */);
4699 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } catch (e) {
4700 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, 'Invalid regex: ' + regexPart);
4701 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4702 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4703 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4704 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var query = getSearchState(cm).getQuery();
4705 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var matchedLines = [], content = '';
4706 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = lineStart; i <= lineEnd; i++) {
4707 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var matched = query.test(cm.getLine(i));
4708 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (matched) {
4709 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { matchedLines.push(i+1);
4710 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { content+= cm.getLine(i) + '<br>';
4711 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4712 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4713 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!cmd) {
4714 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, content);
4715 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4716 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4717 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var index = 0;
4718 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var nextCommand = function() {
4719 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (index < matchedLines.length) {
4720 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var command = matchedLines[index] + cmd;
4721 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { exCommandDispatcher.processCommand(cm, command, {
4722 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { callback: nextCommand
4723 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { });
4724 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4725 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { index++;
4726 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
4727 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { nextCommand();
4728 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4729 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { substitute: function(cm, params) {
4730 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!cm.getSearchCursor) {
4731 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { throw new Error('Search feature not available. Requires searchcursor.js or ' +
4732 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { 'any other getSearchCursor implementation.');
4733 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4734 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var argString = params.argString;
4735 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var tokens = argString ? splitBySlash(argString) : [];
4736 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var regexPart, replacePart = '', trailing, flagsPart, count;
4737 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var confirm = false; // Whether to confirm each replace.
4738 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var global = false; // True to replace all instances on a line, false to replace only 1.
4739 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (tokens.length) {
4740 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { regexPart = tokens[0];
4741 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { replacePart = tokens[1];
4742 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (replacePart !== undefined) {
4743 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (getOption('pcre')) {
4744 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { replacePart = unescapeRegexReplace(replacePart);
4745 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4746 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { replacePart = translateRegexReplace(replacePart);
4747 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4748 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vimGlobalState.lastSubstituteReplacePart = replacePart;
4749 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4750 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { trailing = tokens[2] ? tokens[2].split(' ') : [];
4751 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4752 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (argString && argString.length) {
4753 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, 'Substitutions should be of the form ' +
4754 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { ':s/pattern/replace/');
4755 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4756 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4757 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4758 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (trailing) {
4759 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { flagsPart = trailing[0];
4760 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { count = parseInt(trailing[1]);
4761 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (flagsPart) {
4762 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (flagsPart.indexOf('c') != -1) {
4763 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { confirm = true;
4764 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { flagsPart.replace('c', '');
4765 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4766 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (flagsPart.indexOf('g') != -1) {
4767 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { global = true;
4768 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { flagsPart.replace('g', '');
4769 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4770 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { regexPart = regexPart + '/' + flagsPart;
4771 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4772 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4773 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (regexPart) {
4774 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { try {
4775 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { updateSearchQuery(cm, regexPart, true /** ignoreCase */,
4776 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { true /** smartCase */);
4777 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } catch (e) {
4778 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, 'Invalid regex: ' + regexPart);
4779 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4780 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4781 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4782 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { replacePart = replacePart || vimGlobalState.lastSubstituteReplacePart;
4783 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (replacePart === undefined) {
4784 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, 'No previous substitute regular expression');
4785 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4786 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4787 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var state = getSearchState(cm);
4788 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var query = state.getQuery();
4789 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lineStart = (params.line !== undefined) ? params.line : cm.getCursor().line;
4790 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lineEnd = params.lineEnd || lineStart;
4791 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (lineStart == cm.firstLine() && lineEnd == cm.lastLine()) {
4792 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { lineEnd = Infinity;
4793 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4794 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (count) {
4795 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { lineStart = lineEnd;
4796 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { lineEnd = lineStart + count - 1;
4797 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4798 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var startPos = clipCursorToContent(cm, Pos(lineStart, 0));
4799 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var cursor = cm.getSearchCursor(query, startPos);
4800 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { doReplace(cm, confirm, global, lineStart, lineEnd, cursor, query, replacePart, params.callback);
4801 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4802 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { redo: CodeMirror.commands.redo,
4803 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { undo: CodeMirror.commands.undo,
4804 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { write: function(cm) {
4805 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (CodeMirror.commands.save) {
4806 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { CodeMirror.commands.save(cm);
4807 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4808 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.save();
4809 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4810 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4811 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { nohlsearch: function(cm) {
4812 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { clearSearchHighlight(cm);
4813 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
4814 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { delmarks: function(cm, params) {
4815 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!params.argString || !trim(params.argString)) {
4816 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, 'Argument required');
4817 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4818 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4819  
4820 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var state = cm.state.vim;
4821 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var stream = new CodeMirror.StringStream(trim(params.argString));
4822 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { while (!stream.eol()) {
4823 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { stream.eatSpace();
4824 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var count = stream.pos;
4825  
4826 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!stream.match(/[a-zA-Z]/, false)) {
4827 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, 'Invalid argument: ' + params.argString.substring(count));
4828 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4829 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4830  
4831 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var sym = stream.next();
4832 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (stream.match('-', true)) {
4833 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!stream.match(/[a-zA-Z]/, false)) {
4834 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, 'Invalid argument: ' + params.argString.substring(count));
4835 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4836 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4837  
4838 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var startMark = sym;
4839 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var finishMark = stream.next();
4840 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (isLowerCase(startMark) && isLowerCase(finishMark) ||
4841 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { isUpperCase(startMark) && isUpperCase(finishMark)) {
4842 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var start = startMark.charCodeAt(0);
4843 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var finish = finishMark.charCodeAt(0);
4844 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (start >= finish) {
4845 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, 'Invalid argument: ' + params.argString.substring(count));
4846 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4847 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4848 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var j = 0; j <= finish - start; j++) {
4849 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var mark = String.fromCharCode(start + j);
4850 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { delete state.marks[mark];
4851 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4852 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4853 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, 'Invalid argument: ' + startMark + '-');
4854 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4855 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4856 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4857 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { delete state.marks[sym];
4858 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4859 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4860 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4861 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
4862  
4863 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var exCommandDispatcher = new ExCommandDispatcher();
4864 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function doReplace(cm, confirm, global, lineStart, lineEnd, searchCursor, query,
4865 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { replaceWith, callback) {
4866 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.state.vim.exMode = true;
4867 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var done = false;
4868 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lastPos = searchCursor.from();
4869 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function replaceAll() {
4870 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.operation(function() {
4871 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { while (!done) {
4872 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { replace();
4873 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { next();
4874 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4875 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { stop();
4876 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { });
4877 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4878 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function replace() {
4879 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var text = cm.getRange(searchCursor.from(), searchCursor.to());
4880 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var newText = text.replace(query, replaceWith);
4881 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { searchCursor.replace(newText);
4882 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4883 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function next() {
4884 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { while(searchCursor.findNext() &&
4885 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { isInRange(searchCursor.from(), lineStart, lineEnd)) {
4886 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!global && lastPos && searchCursor.from().line == lastPos.line) {
4887 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { continue;
4888 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4889 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.scrollIntoView(searchCursor.from(), 30);
4890 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.setSelection(searchCursor.from(), searchCursor.to());
4891 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { lastPos = searchCursor.from();
4892 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { done = false;
4893 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4894 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4895 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { done = true;
4896 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4897 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function stop(close) {
4898 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (close) { close(); }
4899 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.focus();
4900 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (lastPos) {
4901 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.setCursor(lastPos);
4902 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var vim = cm.state.vim;
4903 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vim.exMode = false;
4904 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vim.lastHPos = vim.lastHSPos = lastPos.ch;
4905 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4906 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (callback) { callback(); }
4907 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4908 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function onPromptKeyDown(e, _value, close) {
4909 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { CodeMirror.e_stop(e);
4910 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var keyName = CodeMirror.keyName(e);
4911 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { switch (keyName) {
4912 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { case 'Y':
4913 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { replace(); next(); break;
4914 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { case 'N':
4915 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { next(); break;
4916 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { case 'A':
4917 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var savedCallback = callback;
4918 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { callback = undefined;
4919 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.operation(replaceAll);
4920 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { callback = savedCallback;
4921 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { break;
4922 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { case 'L':
4923 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { replace();
4924 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { case 'Q':
4925 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { case 'Esc':
4926 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { case 'Ctrl-C':
4927 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { case 'Ctrl-[':
4928 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { stop(close);
4929 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { break;
4930 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4931 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (done) { stop(close); }
4932 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return true;
4933 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4934 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { next();
4935 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (done) {
4936 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showConfirm(cm, 'No matches for ' + query.source);
4937 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4938 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4939 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!confirm) {
4940 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { replaceAll();
4941 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (callback) { callback(); }
4942 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
4943 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4944 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { showPrompt(cm, {
4945 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { prefix: 'replace with <strong>' + replaceWith + '</strong> (y/n/a/q/l)',
4946 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { onKeyDown: onPromptKeyDown
4947 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { });
4948 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4949  
4950 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { CodeMirror.keyMap.vim = {
4951 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { attach: attachVimMap,
4952 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { detach: detachVimMap,
4953 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { call: cmKey
4954 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
4955  
4956 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function exitInsertMode(cm) {
4957 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var vim = cm.state.vim;
4958 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var macroModeState = vimGlobalState.macroModeState;
4959 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var insertModeChangeRegister = vimGlobalState.registerController.getRegister('.');
4960 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var isPlaying = macroModeState.isPlaying;
4961 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var lastChange = macroModeState.lastInsertModeChanges;
4962 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var text = [];
4963 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!isPlaying) {
4964 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var selLength = lastChange.inVisualBlock ? vim.lastSelection.visualBlock.height : 1;
4965 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var changes = lastChange.changes;
4966 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var text = [];
4967 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var i = 0;
4968 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { while (i < changes.length) {
4969 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { text.push(changes[i]);
4970 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (changes[i] instanceof InsertModeKey) {
4971 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { i++;
4972 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { } else {
4973 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { i+= selLength;
4974 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4975 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4976 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { lastChange.changes = text;
4977 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.off('change', onChange);
4978 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { CodeMirror.off(cm.getInputField(), 'keydown', onKeyEventTargetKeyDown);
4979 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4980 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (!isPlaying && vim.insertModeRepeat > 1) {
4981 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { repeatLastEdit(cm, vim, vim.insertModeRepeat - 1,
4982 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { true /** repeatForInsert */);
4983 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vim.lastEditInputState.repeatOverride = vim.insertModeRepeat;
4984 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4985 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { delete vim.insertModeRepeat;
4986 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { vim.insertMode = false;
4987 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.setCursor(cm.getCursor().line, cm.getCursor().ch-1);
4988 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.setOption('keyMap', 'vim');
4989 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.setOption('disableInput', true);
4990 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { cm.toggleOverwrite(false); // exit replace mode if we were in it.
4991 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { insertModeChangeRegister.setText(lastChange.changes.join(''));
4992 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { CodeMirror.signal(cm, "vim-mode-change", {mode: "normal"});
4993 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (macroModeState.isRecording) {
4994 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { logInsertModeChange(macroModeState);
4995 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4996 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
4997  
4998 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function _mapCommand(command) {
4999 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { defaultKeymap.unshift(command);
5000 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
5001  
5002 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function mapCommand(keys, type, name, args, extra) {
5003 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var command = {keys: keys, type: type};
5004 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { command[type] = name;
5005 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { command[type + "Args"] = args;
5006 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var key in extra)
5007 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { command[key] = extra[key];
5008 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { _mapCommand(command);
5009 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
5010 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { defineOption('insertModeEscKeysTimeout', 200, 'number');
5011  
5012 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { CodeMirror.keyMap['vim-insert'] = {
5013 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { 'Ctrl-N': 'autocomplete',
5014 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { 'Ctrl-P': 'autocomplete',
5015 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { 'Enter': function(cm) {
5016 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var fn = CodeMirror.commands.newlineAndIndentContinueComment ||
5017 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { CodeMirror.commands.newlineAndIndent;
5018 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { fn(cm);
5019 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { },
5020 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { fallthrough: ['default'],
5021 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { attach: attachVimMap,
5022 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { detach: detachVimMap,
5023 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { call: cmKey
5024 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
5025  
5026 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { CodeMirror.keyMap['vim-replace'] = {
5027 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { 'Backspace': 'goCharLeft',
5028 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { fallthrough: ['vim-insert'],
5029 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { attach: attachVimMap,
5030 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { detach: detachVimMap,
5031 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { call: cmKey
5032 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { };
5033  
5034 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { function executeMacroRegister(cm, vim, macroModeState, registerName) {
5035 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var register = vimGlobalState.registerController.getRegister(registerName);
5036 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (registerName == ':') {
5037 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { if (register.keyBuffer[0]) {
5038 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { exCommandDispatcher.processCommand(cm, register.keyBuffer[0]);
5039 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
5040 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { macroModeState.isPlaying = false;
5041 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { return;
5042 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { }
5043 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var keyBuffer = register.keyBuffer;
5044 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var imc = 0;
5045 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { macroModeState.isPlaying = true;
5046 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { macroModeState.replaySearchQueries = register.searchQueries.slice(0);
5047 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { for (var i = 0; i < keyBuffer.length; i++) {
5048 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var text = keyBuffer[i];
5049 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { var match, key;
5050 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { while (text) {
5051 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) { match = (/<\w+-.+?>|<\w+>|./).exec(text);
5052 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> key = match[0];
5053 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> text = text.substring(match.index + key.length);
5054 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> CodeMirror.Vim.handleKey(cm, key, 'macro');
5055 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (vim.insertMode) {
5056 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var changes = register.insertModeChanges[imc++].changes;
5057 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> vimGlobalState.macroModeState.lastInsertModeChanges.changes =
5058 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> changes;
5059 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> repeatInsertModeChanges(cm, changes, 1);
5060 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> exitInsertMode(cm);
5061 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5062 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5063 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5064 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> macroModeState.isPlaying = false;
5065 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5066  
5067 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> function logKey(macroModeState, key) {
5068 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (macroModeState.isPlaying) { return; }
5069 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var registerName = macroModeState.latestRegister;
5070 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var register = vimGlobalState.registerController.getRegister(registerName);
5071 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (register) {
5072 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> register.pushText(key);
5073 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5074 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5075  
5076 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> function logInsertModeChange(macroModeState) {
5077 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (macroModeState.isPlaying) { return; }
5078 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var registerName = macroModeState.latestRegister;
5079 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var register = vimGlobalState.registerController.getRegister(registerName);
5080 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (register && register.pushInsertModeChanges) {
5081 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> register.pushInsertModeChanges(macroModeState.lastInsertModeChanges);
5082 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5083 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5084  
5085 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> function logSearchQuery(macroModeState, query) {
5086 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (macroModeState.isPlaying) { return; }
5087 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var registerName = macroModeState.latestRegister;
5088 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var register = vimGlobalState.registerController.getRegister(registerName);
5089 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (register && register.pushSearchQuery) {
5090 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> register.pushSearchQuery(query);
5091 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5092 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5093 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> function onChange(_cm, changeObj) {
5094 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var macroModeState = vimGlobalState.macroModeState;
5095 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var lastChange = macroModeState.lastInsertModeChanges;
5096 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (!macroModeState.isPlaying) {
5097 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> while(changeObj) {
5098 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> lastChange.expectCursorActivityForChange = true;
5099 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (changeObj.origin == '+input' || changeObj.origin == 'paste'
5100 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> || changeObj.origin === undefined /* only in testing */) {
5101 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var text = changeObj.text.join('\n');
5102 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (lastChange.maybeReset) {
5103 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> lastChange.changes = [];
5104 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> lastChange.maybeReset = false;
5105 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5106 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> lastChange.changes.push(text);
5107 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5108 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> changeObj = changeObj.next;
5109 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5110 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5111 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5112 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> function onCursorActivity(cm) {
5113 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var vim = cm.state.vim;
5114 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (vim.insertMode) {
5115 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var macroModeState = vimGlobalState.macroModeState;
5116 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (macroModeState.isPlaying) { return; }
5117 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var lastChange = macroModeState.lastInsertModeChanges;
5118 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (lastChange.expectCursorActivityForChange) {
5119 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> lastChange.expectCursorActivityForChange = false;
5120 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> } else {
5121 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> lastChange.maybeReset = true;
5122 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5123 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> } else if (!cm.curOp.isVimOp) {
5124 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> handleExternalSelection(cm, vim);
5125 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5126 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (vim.visualMode) {
5127 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> updateFakeCursor(cm);
5128 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5129 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5130 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> function updateFakeCursor(cm) {
5131 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var vim = cm.state.vim;
5132 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var from = clipCursorToContent(cm, copyCursor(vim.sel.head));
5133 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var to = offsetCursor(from, 0, 1);
5134 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (vim.fakeCursor) {
5135 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> vim.fakeCursor.clear();
5136 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5137 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> vim.fakeCursor = cm.markText(from, to, {className: 'cm-animate-fat-cursor'});
5138 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5139 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> function handleExternalSelection(cm, vim) {
5140 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var anchor = cm.getCursor('anchor');
5141 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var head = cm.getCursor('head');
5142 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (vim.visualMode && !cm.somethingSelected()) {
5143 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> exitVisualMode(cm, false);
5144 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> } else if (!vim.visualMode && !vim.insertMode && cm.somethingSelected()) {
5145 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> vim.visualMode = true;
5146 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> vim.visualLine = false;
5147 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> CodeMirror.signal(cm, "vim-mode-change", {mode: "visual"});
5148 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5149 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (vim.visualMode) {
5150 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var headOffset = !cursorIsBefore(head, anchor) ? -1 : 0;
5151 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var anchorOffset = cursorIsBefore(head, anchor) ? -1 : 0;
5152 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> head = offsetCursor(head, 0, headOffset);
5153 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> anchor = offsetCursor(anchor, 0, anchorOffset);
5154 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> vim.sel = {
5155 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> anchor: anchor,
5156 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> head: head
5157 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> };
5158 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> updateMark(cm, vim, '<', cursorMin(head, anchor));
5159 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> updateMark(cm, vim, '>', cursorMax(head, anchor));
5160 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> } else if (!vim.insertMode) {
5161 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> vim.lastHPos = cm.getCursor().ch;
5162 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5163 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5164 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> function InsertModeKey(keyName) {
5165 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> this.keyName = keyName;
5166 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5167 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> function onKeyEventTargetKeyDown(e) {
5168 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var macroModeState = vimGlobalState.macroModeState;
5169 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var lastChange = macroModeState.lastInsertModeChanges;
5170 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var keyName = CodeMirror.keyName(e);
5171 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (!keyName) { return; }
5172 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> function onKeyFound() {
5173 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (lastChange.maybeReset) {
5174 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> lastChange.changes = [];
5175 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> lastChange.maybeReset = false;
5176 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5177 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> lastChange.changes.push(new InsertModeKey(keyName));
5178 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> return true;
5179 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5180 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (keyName.indexOf('Delete') != -1 || keyName.indexOf('Backspace') != -1) {
5181 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> CodeMirror.lookupKey(keyName, 'vim-insert', onKeyFound);
5182 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5183 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5184 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> function repeatLastEdit(cm, vim, repeat, repeatForInsert) {
5185 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var macroModeState = vimGlobalState.macroModeState;
5186 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> macroModeState.isPlaying = true;
5187 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var isAction = !!vim.lastEditActionCommand;
5188 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var cachedInputState = vim.inputState;
5189 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> function repeatCommand() {
5190 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (isAction) {
5191 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> commandDispatcher.processAction(cm, vim, vim.lastEditActionCommand);
5192 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> } else {
5193 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> commandDispatcher.evalInput(cm, vim);
5194 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5195 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5196 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> function repeatInsert(repeat) {
5197 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (macroModeState.lastInsertModeChanges.changes.length > 0) {
5198 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> repeat = !vim.lastEditActionCommand ? 1 : repeat;
5199 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var changeObject = macroModeState.lastInsertModeChanges;
5200 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> repeatInsertModeChanges(cm, changeObject.changes, repeat);
5201 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5202 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5203 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> vim.inputState = vim.lastEditInputState;
5204 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (isAction && vim.lastEditActionCommand.interlaceInsertRepeat) {
5205 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> for (var i = 0; i < repeat; i++) {
5206 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> repeatCommand();
5207 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> repeatInsert(1);
5208 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5209 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> } else {
5210 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (!repeatForInsert) {
5211 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> repeatCommand();
5212 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5213 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> repeatInsert(repeat);
5214 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5215 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> vim.inputState = cachedInputState;
5216 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (vim.insertMode && !repeatForInsert) {
5217 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> exitInsertMode(cm);
5218 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5219 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> macroModeState.isPlaying = false;
5220 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5221  
5222 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> function repeatInsertModeChanges(cm, changes, repeat) {
5223 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> function keyHandler(binding) {
5224 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (typeof binding == 'string') {
5225 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> CodeMirror.commands[binding](cm);
5226 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> } else {
5227 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> binding(cm);
5228 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5229 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> return true;
5230 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5231 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var head = cm.getCursor('head');
5232 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var inVisualBlock = vimGlobalState.macroModeState.lastInsertModeChanges.inVisualBlock;
5233 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (inVisualBlock) {
5234 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var vim = cm.state.vim;
5235 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var lastSel = vim.lastSelection;
5236 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var offset = getOffset(lastSel.anchor, lastSel.head);
5237 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> selectForInsert(cm, head, offset.line + 1);
5238 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> repeat = cm.listSelections().length;
5239 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.setCursor(head);
5240 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5241 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> for (var i = 0; i < repeat; i++) {
5242 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (inVisualBlock) {
5243 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.setCursor(offsetCursor(head, i, 0));
5244 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5245 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> for (var j = 0; j < changes.length; j++) {
5246 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var change = changes[j];
5247 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (change instanceof InsertModeKey) {
5248 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> CodeMirror.lookupKey(change.keyName, 'vim-insert', keyHandler);
5249 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> } else {
5250 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var cur = cm.getCursor();
5251 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.replaceRange(change, cur, cur);
5252 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5253 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5254 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5255 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (inVisualBlock) {
5256 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.setCursor(offsetCursor(head, 0, 1));
5257 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5258 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5259  
5260 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> resetVimGlobalState();
5261 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> CodeMirror.Vim = Vim();
5262  
5263 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> Vim = CodeMirror.Vim;
5264  
5265 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var specialKey = {'return':'CR',backspace:'BS','delete':'Del',esc:'Esc',
5266 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> left:'Left',right:'Right',up:'Up',down:'Down',space: 'Space',
5267 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> home:'Home',end:'End',pageup:'PageUp',pagedown:'PageDown', enter: 'CR'
5268 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> };
5269 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> function lookupKey(hashId, key, e) {
5270 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (key.length > 1 && key[0] == "n") {
5271 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> key = key.replace("numpad", "");
5272 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5273 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> key = specialKey[key] || key;
5274 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var name = '';
5275 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (e.ctrlKey) { name += 'C-'; }
5276 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (e.altKey) { name += 'A-'; }
5277 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (e.shiftKey) { name += 'S-'; }
5278  
5279 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> name += key;
5280 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (name.length > 1) { name = '<' + name + '>'; }
5281 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> return name;
5282 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5283 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var handleKey = Vim.handleKey.bind(Vim);
5284 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> Vim.handleKey = function(cm, key, origin) {
5285 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> return cm.operation(function() {
5286 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> return handleKey(cm, key, origin);
5287 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }, true);
5288 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5289 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> function cloneVimState(state) {
5290 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var n = new state.constructor();
5291 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> Object.keys(state).forEach(function(key) {
5292 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var o = state[key];
5293 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (Array.isArray(o))
5294 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> o = o.slice();
5295 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> else if (o && typeof o == "object" && o.constructor != Object)
5296 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> o = cloneVimState(o);
5297 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> n[key] = o;
5298 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> });
5299 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (state.sel) {
5300 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> n.sel = {
5301 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> head: state.sel.head && copyCursor(state.sel.head),
5302 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> anchor: state.sel.anchor && copyCursor(state.sel.anchor)
5303 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> };
5304 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5305 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> return n;
5306 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5307 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> function multiSelectHandleKey(cm, key, origin) {
5308 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var isHandled = false;
5309 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var vim = Vim.maybeInitVimState_(cm);
5310 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var visualBlock = vim.visualBlock || vim.wasInVisualBlock;
5311 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (vim.wasInVisualBlock && !cm.ace.inMultiSelectMode) {
5312 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> vim.wasInVisualBlock = false;
5313 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> } else if (cm.ace.inMultiSelectMode && vim.visualBlock) {
5314 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> vim.wasInVisualBlock = true;
5315 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5316  
5317 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (key == '<Esc>' && !vim.insertMode && !vim.visualMode && cm.ace.inMultiSelectMode) {
5318 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.ace.exitMultiSelectMode();
5319 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> } else if (visualBlock || !cm.ace.inMultiSelectMode || cm.ace.inVirtualSelectionMode) {
5320 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> isHandled = Vim.handleKey(cm, key, origin);
5321 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> } else {
5322 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var old = cloneVimState(vim);
5323 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.operation(function() {
5324 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.ace.forEachSelection(function() {
5325 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var sel = cm.ace.selection;
5326 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.state.vim.lastHPos = sel.$desiredColumn == null ? sel.lead.column : sel.$desiredColumn;
5327 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var head = cm.getCursor("head");
5328 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var anchor = cm.getCursor("anchor");
5329 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var headOffset = !cursorIsBefore(head, anchor) ? -1 : 0;
5330 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var anchorOffset = cursorIsBefore(head, anchor) ? -1 : 0;
5331 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> head = offsetCursor(head, 0, headOffset);
5332 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> anchor = offsetCursor(anchor, 0, anchorOffset);
5333 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.state.vim.sel.head = head;
5334 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.state.vim.sel.anchor = anchor;
5335  
5336 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> isHandled = handleKey(cm, key, origin);
5337 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> sel.$desiredColumn = cm.state.vim.lastHPos == -1 ? null : cm.state.vim.lastHPos;
5338 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (cm.virtualSelectionMode()) {
5339 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.state.vim = cloneVimState(old);
5340 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5341 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> });
5342 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (cm.curOp.cursorActivity && !isHandled)
5343 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.curOp.cursorActivity = false;
5344 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }, true);
5345 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5346 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> return isHandled;
5347 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5348 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> exports.CodeMirror = CodeMirror;
5349 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var getVim = Vim.maybeInitVimState_;
5350 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> exports.handler = {
5351 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> $id: "ace/keyboard/vim",
5352 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> drawCursor: function(style, pixelPos, config, sel, session) {
5353 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var vim = this.state.vim || {};
5354 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var w = config.characterWidth;
5355 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var h = config.lineHeight;
5356 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var top = pixelPos.top;
5357 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var left = pixelPos.left;
5358 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (!vim.insertMode) {
5359 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var isbackwards = !sel.cursor
5360 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> ? session.selection.isBackwards() || session.selection.isEmpty()
5361 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> : Range.comparePoints(sel.cursor, sel.start) <= 0;
5362 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (!isbackwards && left > w)
5363 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> left -= w;
5364 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5365 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (!vim.insertMode && vim.status) {
5366 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> h = h / 2;
5367 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> top += h;
5368 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5369 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> style.left = left + "px";
5370 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> style.top = top + "px";
5371 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> style.width = w + "px";
5372 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> style.height = h + "px";
5373 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> },
5374 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> handleKeyboard: function(data, hashId, key, keyCode, e) {
5375 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var editor = data.editor;
5376 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var cm = editor.state.cm;
5377 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var vim = getVim(cm);
5378 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (keyCode == -1) return;
5379  
5380 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (key == "c" && hashId == 1) { // key == "ctrl-c"
5381 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (!useragent.isMac && editor.getCopyText()) {
5382 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> editor.once("copy", function() {
5383 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> editor.selection.clearSelection();
5384 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> });
5385 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> return {command: "null", passEvent: true};
5386 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5387 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> } else if (!vim.insertMode) {
5388 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (useragent.isMac && this.handleMacRepeat(data, hashId, key)) {
5389 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> hashId = -1;
5390 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> key = data.inputChar;
5391 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5392 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5393  
5394 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (hashId == -1 || hashId & 1 || hashId === 0 && key.length > 1) {
5395 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var insertMode = vim.insertMode;
5396 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var name = lookupKey(hashId, key, e || {});
5397 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (vim.status == null)
5398 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> vim.status = "";
5399 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var isHandled = multiSelectHandleKey(cm, name, 'user');
5400 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> vim = getVim(cm); // may be changed by multiSelectHandleKey
5401 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (isHandled && vim.status != null)
5402 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> vim.status += name;
5403 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> else if (vim.status == null)
5404 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> vim.status = "";
5405 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm._signal("changeStatus");
5406 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (!isHandled && (hashId != -1 || insertMode))
5407 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> return;
5408 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> return {command: "null", passEvent: !isHandled};
5409 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5410 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> },
5411 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> attach: function(editor) {
5412 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (!editor.state) editor.state = {};
5413 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var cm = new CodeMirror(editor);
5414 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> editor.state.cm = cm;
5415 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> editor.$vimModeHandler = this;
5416 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> CodeMirror.keyMap.vim.attach(cm);
5417 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> getVim(cm).status = null;
5418 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.on('vim-command-done', function() {
5419 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (cm.virtualSelectionMode()) return;
5420 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> getVim(cm).status = null;
5421 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.ace._signal("changeStatus");
5422 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.ace.session.markUndoGroup();
5423 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> });
5424 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.on("changeStatus", function() {
5425 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.ace.renderer.updateCursor();
5426 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.ace._signal("changeStatus");
5427 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> });
5428 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.on("vim-mode-change", function() {
5429 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (cm.virtualSelectionMode()) return;
5430 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.ace.renderer.setStyle("normal-mode", !getVim(cm).insertMode);
5431 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm._signal("changeStatus");
5432 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> });
5433 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.ace.renderer.setStyle("normal-mode", !getVim(cm).insertMode);
5434 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> editor.renderer.$cursorLayer.drawCursor = this.drawCursor.bind(cm);
5435 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> this.updateMacCompositionHandlers(editor, true);
5436 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> },
5437 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> detach: function(editor) {
5438 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var cm = editor.state.cm;
5439 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> CodeMirror.keyMap.vim.detach(cm);
5440 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> cm.destroy();
5441 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> editor.state.cm = null;
5442 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> editor.$vimModeHandler = null;
5443 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> editor.renderer.$cursorLayer.drawCursor = null;
5444 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> editor.renderer.setStyle("normal-mode", false);
5445 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> this.updateMacCompositionHandlers(editor, false);
5446 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> },
5447 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> getStatusText: function(editor) {
5448 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var cm = editor.state.cm;
5449 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var vim = getVim(cm);
5450 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (vim.insertMode)
5451 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> return "INSERT";
5452 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var status = "";
5453 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (vim.visualMode) {
5454 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> status += "VISUAL";
5455 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (vim.visualLine)
5456 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> status += " LINE";
5457 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (vim.visualBlock)
5458 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> status += " BLOCK";
5459 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5460 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (vim.status)
5461 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> status += (status ? " " : "") + vim.status;
5462 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> return status;
5463 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> },
5464 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> handleMacRepeat: function(data, hashId, key) {
5465 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (hashId == -1) {
5466 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> data.inputChar = key;
5467 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> data.lastEvent = "input";
5468 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> } else if (data.inputChar && data.$lastHash == hashId && data.$lastKey == key) {
5469 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (data.lastEvent == "input") {
5470 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> data.lastEvent = "input1";
5471 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> } else if (data.lastEvent == "input1") {
5472 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> return true;
5473 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5474 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> } else {
5475 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> data.$lastHash = hashId;
5476 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> data.$lastKey = key;
5477 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> data.lastEvent = "keypress";
5478 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5479 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> },
5480 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> updateMacCompositionHandlers: function(editor, enable) {
5481 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var onCompositionUpdateOverride = function(text) {
5482 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var cm = editor.state.cm;
5483 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var vim = getVim(cm);
5484 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (!vim.insertMode) {
5485 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var el = this.textInput.getElement();
5486 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> el.blur();
5487 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> el.focus();
5488 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> el.value = text;
5489 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> } else {
5490 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> this.onCompositionUpdateOrig(text);
5491 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5492 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> };
5493 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var onCompositionStartOverride = function(text) {
5494 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var cm = editor.state.cm;
5495 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var vim = getVim(cm);
5496 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (!vim.insertMode) {
5497 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> this.onCompositionStartOrig(text);
5498 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5499 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> };
5500 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (enable) {
5501 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (!editor.onCompositionUpdateOrig) {
5502 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> editor.onCompositionUpdateOrig = editor.onCompositionUpdate;
5503 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> editor.onCompositionUpdate = onCompositionUpdateOverride;
5504 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> editor.onCompositionStartOrig = editor.onCompositionStart;
5505 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> editor.onCompositionStart = onCompositionStartOverride;
5506 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5507 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> } else {
5508 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> if (editor.onCompositionUpdateOrig) {
5509 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> editor.onCompositionUpdate = editor.onCompositionUpdateOrig;
5510 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> editor.onCompositionUpdateOrig = null;
5511 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> editor.onCompositionStart = editor.onCompositionStartOrig;
5512 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> editor.onCompositionStartOrig = null;
5513 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5514 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5515 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> }
5516 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> };
5517 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> var renderVirtualNumbers = {
5518 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> getText: function(session, row) {
5519 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+> return (Math.abs(session.selection.lead.row - row) || (row + 1 + (row < 9? "\xb7" : "" ))) + "";
5520 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; },
5521 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; getWidth: function(session, lastLineNumber, config) {
5522 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; return session.getLength().toString().length * config.characterWidth;
5523 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; },
5524 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; update: function(e, editor) {
5525 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; editor.renderer.$loop.schedule(editor.renderer.CHANGE_GUTTER);
5526 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; },
5527 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; attach: function(editor) {
5528 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; editor.renderer.$gutterLayer.$renderer = this;
5529 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; editor.on("changeSelection", this.update);
5530 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; },
5531 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; detach: function(editor) {
5532 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; editor.renderer.$gutterLayer.$renderer = null;
5533 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; editor.off("changeSelection", this.update);
5534 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; }
5535 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; };
5536 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; Vim.defineOption({
5537 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; name: "wrap",
5538 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; set: function(value, cm) {
5539 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; if (cm) {cm.ace.setOption("wrap", value)}
5540 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; },
5541 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; type: "boolean"
5542 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; }, false);
5543 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; Vim.defineEx('write', 'w', function() {
5544 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; console.log(':write is not implemented')
5545 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; });
5546 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; defaultKeymap.push(
5547 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; { keys: 'zc', type: 'action', action: 'fold', actionArgs: { open: false } },
5548 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; { keys: 'zC', type: 'action', action: 'fold', actionArgs: { open: false, all: true } },
5549 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; { keys: 'zo', type: 'action', action: 'fold', actionArgs: { open: true } },
5550 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; { keys: 'zO', type: 'action', action: 'fold', actionArgs: { open: true, all: true } },
5551 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; { keys: 'za', type: 'action', action: 'fold', actionArgs: { toggle: true } },
5552 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; { keys: 'zA', type: 'action', action: 'fold', actionArgs: { toggle: true, all: true } },
5553 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; { keys: 'zf', type: 'action', action: 'fold', actionArgs: { open: true, all: true } },
5554 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; { keys: 'zd', type: 'action', action: 'fold', actionArgs: { open: true, all: true } },
5555  
5556 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; { keys: '', type: 'action', action: 'aceCommand', actionArgs: { name: "addCursorAbove" } },
5557 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; { keys: '', type: 'action', action: 'aceCommand', actionArgs: { name: "addCursorBelow" } },
5558 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; { keys: '', type: 'action', action: 'aceCommand', actionArgs: { name: "addCursorAboveSkipCurrent" } },
5559 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; { keys: '', type: 'action', action: 'aceCommand', actionArgs: { name: "addCursorBelowSkipCurrent" } },
5560 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; { keys: '', type: 'action', action: 'aceCommand', actionArgs: { name: "selectMoreBefore" } },
5561 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; { keys: '', type: 'action', action: 'aceCommand', actionArgs: { name: "selectMoreAfter" } },
5562 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; { keys: '', type: 'action', action: 'aceCommand', actionArgs: { name: "selectNextBefore" } },
5563 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; { keys: '', type: 'action', action: 'aceCommand', actionArgs: { name: "selectNextAfter" } }
5564 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; );
5565 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; actions.aceCommand = function(cm, actionArgs, vim) {
5566 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; cm.vimCmd = actionArgs;
5567 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; if (cm.ace.inVirtualSelectionMode)
5568 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; cm.ace.on("beforeEndOperation", delayedExecAceCommand);
5569 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; else
5570 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; delayedExecAceCommand(null, cm.ace);
5571 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; };
5572 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; function delayedExecAceCommand(op, ace) {
5573 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; ace.off("beforeEndOperation", delayedExecAceCommand);
5574 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; var cmd = ace.state.cm.vimCmd;
5575 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; if (cmd) {
5576 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; ace.execCommand(cmd.exec ? cmd : cmd.name, cmd.args);
5577 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; }
5578 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; ace.curOp = ace.prevOp;
5579 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; }
5580 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; actions.fold = function(cm, actionArgs, vim) {
5581 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; cm.ace.execCommand(['toggleFoldWidget', 'toggleFoldWidget', 'foldOther', 'unfoldall'
5582 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; ][(actionArgs.all ? 2 : 0) + (actionArgs.open ? 1 : 0)]);
5583 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; };
5584  
5585 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; exports.handler.defaultKeymap = defaultKeymap;
5586 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; exports.handler.actions = actions;
5587 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; exports.Vim = Vim;
5588  
5589 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + ""; Vim.map("Y", "yy", "normal");
5590 <\w+-.+?><\w+>< times; i++) {<= endLine; i++) {< repeat; j++) {< selections.length; j++) {< toSwap.length; i++) {< text.length; i++) {< text.length; i++) {< cur.ch) {< end)break;<= cur.ch))return;< keyMap.length; i++) {< repeat; i++) {< cur2.line) {< cur2.ch) {<\w+-.+?><\w+>< 9? "\xb7" : "" ))) + "";});