Skip to content

Commit

Permalink
Add comment about OO version
Browse files Browse the repository at this point in the history
  • Loading branch information
yochem committed Oct 11, 2023
1 parent 8697ec6 commit 754cccb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/vim/add-empty-line.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ Or for the Lua-in-nvim purists:
vim.keymap.set("n", "oo", function ()
local cur = vim.api.nvim_win_get_cursor(0)
vim.api.nvim_buf_set_mark(0, "`", cur[1], cur[2], {})
vim.cmd.norm('o')
vim.cmd.norm("o")
vim.api.nvim_win_set_cursor(0, vim.api.nvim_buf_get_mark(0, "`"))
end)
```
And for the empty line above, copy and paste the above function and do a
`'<,'>s/"oo\?"/\U&/g` 😉.

0 comments on commit 754cccb

Please sign in to comment.