Skip to main content
John Winston's user avatar
John Winston's user avatar
John Winston's user avatar
John Winston
  • Member for 3 years, 1 month
  • Last seen more than 2 years ago
24 votes
2 answers
8k views

What does <Plug> do in vim?

7 votes
3 answers
10k views

How can I get the current cursor position in Lua?

4 votes
3 answers
131 views

How to recover colon command removed by <C-U>?

3 votes
1 answer
978 views

How to switch mode from visual/visual line mode to normal mode in Lua?

2 votes
0 answers
681 views

Cannot get current node tree with treesitter in Lua in nvim

2 votes
2 answers
390 views

How can I get the value of iskeyword as characters?

2 votes
1 answer
290 views

How to set norelativenumber on CmdlineEnter and relativenumber on CmdlineLeave?

2 votes
2 answers
3k views

Unable to use lua inside a `.vim` file

2 votes
1 answer
2k views

How can I make NerdTree update root to the current directory when I change directory with :cd?

2 votes
2 answers
803 views

What is the fastest way to yank with a line break? [duplicate]

1 vote
1 answer
99 views

How to handle no content for a custom text object?

1 vote
1 answer
238 views

How to run an autocommand after undo?

1 vote
1 answer
3k views

How to get the range of selected lines in Visual lines mode?

0 votes
0 answers
30 views

How to use `<count>` and `-count` to make command repeatable?

0 votes
0 answers
38 views

How to selectively append to end of line using visual block mode?

0 votes
1 answer
1k views

How can I get line number by marks in nvim?

0 votes
1 answer
577 views

How to remap `m` key correctly?

0 votes
1 answer
391 views

How to get range value of a ex-mode command in Lua?

0 votes
1 answer
141 views

How to curry a function in vimscript?

0 votes
1 answer
167 views

Cannot set `:p` as abbreviation of `:pu`

0 votes
1 answer
95 views

What is the fastest way to move cursor to the end of a line by line number?

0 votes
0 answers
101 views

Cannot search for pairs with searchpairpos()

-1 votes
1 answer
68 views

How to make cursor move to the top line inserted with 2O?