From 01eceebf759cad6c544396bafd301a215380612a Mon Sep 17 00:00:00 2001 From: Eike Plack Date: Tue, 31 Jan 2017 19:44:27 +0100 Subject: [PATCH] Support the vim behaviour for +line syntax * Ommitting the linenumber will move to buffer end --- src/main.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.cc b/src/main.cc index 5e84812d..7aba8f26 100644 --- a/src/main.cc +++ b/src/main.cc @@ -819,6 +819,11 @@ int main(int argc, char* argv[]) { if (not name.empty() and name[0_byte] == '+') { + if (name == "+" or name == "+:") + { + init_cmds = init_cmds + "; exec gj"; + continue; + } auto colon = find(name, ':'); if (auto line = str_to_int_ifp({name.begin()+1, colon})) {