How do I call a Lua function or evaluate a Lua expression from within Vimscript in Neovim?
luaeval('lua_expression')
When you have existing Vimscript code that needs to reach into Neovim's Lua ecosystem, luaeval() is the bridge.
795 results for "G"
luaeval('lua_expression')
When you have existing Vimscript code that needs to reach into Neovim's Lua ecosystem, luaeval() is the bridge.
<C-v>jj$A text<Esc>
Visual block mode combined with $A lets you append text to the end of multiple lines simultaneously, even when those lines have different lengths.
visual-mode #editing #visual-mode #block-mode #productivity #insert-mode
gq{motion}
The gq{motion} operator reformats text to fit within Vim's textwidth setting, inserting hard line breaks where lines are too long.
<C-o>
The (Ctrl+o) command jumps the cursor backward through the jump list, returning you to previous cursor positions.
:DB sqlite:mydb.sqlite SELECT * FROM users
vim-dadbod by Tim Pope is a plugin that lets you interact with databases directly from Vim.
z. and z<CR> and z-
Vim has two parallel sets of scroll commands: the well-known zz, zt, zb which reposition the view without moving the cursor, and the lesser-known z.
:tabnew filename
The :tabnew filename command opens a file in a new tab page in Vim.
buffers-windows #buffers-windows #tabs #ex-commands #navigation
:{line}put {register}
How it works The :put Ex command pastes the contents of a register after a specified line.
:set guicursor=n-v-c:block,i-ci-ve:ver25,r-cr:hor20
Neovim's guicursor option lets you assign a distinct cursor shape and style to each mode, providing immediate visual feedback about which mode you are in.
:'<,'>normal @a
The :'normal @a command executes the macro stored in register a on every line within the current visual selection.
:silent! %normal @q
Combining :silent!, the % range, and :normal @q gives you a powerful pattern for applying a macro across an entire file while gracefully skipping lines that don
/\<word\>
The \ atoms create word boundaries in a search pattern, matching only complete words and not substrings within larger words.
U (in visual mode)
In visual mode, pressing U converts all selected text to uppercase.
:!command
The :!command syntax lets you execute any shell command directly from within Vim without leaving the editor.
`.
The ` .
:reg a
The :reg a command shows the contents of register a, which reveals the keystrokes stored in the macro.
vim-which-key plugin
vim-which-key displays a popup showing available key bindings as you type a prefix key.
:set nrformats
The nrformats option tells Vim how to interpret numbers when you press (increment) or (decrement).
=
Pressing = in visual mode auto-indents the selected lines according to Vim's built-in indentation rules.
visual-mode #editing #visual-mode #indentation #formatting #productivity
qa{motions}@aq
A recursive macro is one that calls itself at the end of its own recording.