Almost same as normal mode 100G
or :100<CR>
Plug 'axlebedev/vim-gotoline-popup'
nmap <C-g> <plug>(gotoline-popup)
Press <C-g>
to open popup.
Enter line number, press Enter
to jump to line
Press Esc
or any not number to cancel and close popup.
Default: "Go to line: "
Change input prompt
let g:gotoline_prompt = "Go to line: "
Default: 1
Go to inputed line immediately on input. If 0
, cursor will not be moved until Enter
pressed:
let g:gotoline_jump_on_input = 0
Default: 1
Return to initial line if popup was cancelled. If 0
and g:gotoline_jump_on_input = 1
, cursor will stay at last position:
let g:gotoline_reset_on_cancel = 0
If you find a bug, or have an improvement suggestion - please place an issue in this repository.
Check out my Vim plugins:
https://github.com/axlebedev