Skip to content

Is there a way to go to a global mark from a different file and make it be at the first line? #9955

@solisoares

Description

@solisoares

In my settings.js I have this beauty:

"vim.normalModeKeyBindingsNonRecursive": [
            { "before": ["'", "1"], "after": ["'", "1", "z", "t"] },
            { "before": ["'", "2"], "after": ["'", "2", "z", "t"] },
            { "before": ["'", "3"], "after": ["'", "3", "z", "t"] },
            { "before": ["'", "4"], "after": ["'", "4", "z", "t"] },
            { "before": ["'", "5"], "after": ["'", "5", "z", "t"] },
            { "before": ["'", "6"], "after": ["'", "6", "z", "t"] },
            { "before": ["'", "7"], "after": ["'", "7", "z", "t"] },
            { "before": ["'", "8"], "after": ["'", "8", "z", "t"] },
            { "before": ["'", "9"], "after": ["'", "9", "z", "t"] },
]

The idea is to go to the mark and then zt to go to the first line.

When on the same file, it works. But when the mark is on another file it goes to the mark at the center of the file.

Is there a way to achieve this between different files?


VSCode: v1.108.1
VSCodeVim: v1.32.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions