Search in sources :

Example 21 with Mark

use of com.maddyhome.idea.vim.common.Mark in project ideavim by JetBrains.

the class MarkTest method testGlobalMark.

// |m|
public void testGlobalMark() {
    typeTextInFile(parseKeys("mG"), "    foo\n" + "    ba<caret>r\n" + "    baz\n");
    Mark mark = VimPlugin.getMark().getMark(myFixture.getEditor(), 'G');
    assertNotNull(mark);
    assertEquals(1, mark.getLogicalLine());
    assertEquals(6, mark.getCol());
}
Also used : Mark(com.maddyhome.idea.vim.common.Mark)

Aggregations

Mark (com.maddyhome.idea.vim.common.Mark)21 VirtualFile (com.intellij.openapi.vfs.VirtualFile)6 LogicalPosition (com.intellij.openapi.editor.LogicalPosition)4 Nullable (org.jetbrains.annotations.Nullable)4 FileEditor (com.intellij.openapi.fileEditor.FileEditor)2 TextEditor (com.intellij.openapi.fileEditor.TextEditor)2 Jump (com.maddyhome.idea.vim.common.Jump)2 Element (org.jdom.Element)2 Command (com.maddyhome.idea.vim.command.Command)1 TextRange (com.maddyhome.idea.vim.common.TextRange)1