Skip to main content
Share Your Experience: Take the 2024 Developer Survey
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>?

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
773 views

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

2 votes
1 answer
288 views

How to set norelativenumber on CmdlineEnter and relativenumber on CmdlineLeave?

2 votes
1 answer
949 views

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

2 votes
0 answers
675 views

Cannot get current node tree with treesitter in Lua in nvim

2 votes
2 answers
386 views

How can I get the value of iskeyword as characters?

1 vote
1 answer
96 views

How to handle no content for a custom text object?

1 vote
1 answer
232 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
563 views

How to remap `m` key correctly?

0 votes
1 answer
383 views

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

0 votes
1 answer
140 views

How to curry a function in vimscript?

0 votes
1 answer
166 views

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

0 votes
1 answer
94 views

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

0 votes
0 answers
100 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?