Web appOpen in Telegram
VVim

Vim

@VimUsersGroup · group · Tech · indexed since 2026-08-13
498members
13writing in 30 days
147messages in 30 days
126 086messages in the index
Whole thread · 4 replies →
L
#tip a simple mapping to insert code blocks with F10 lua/context.lua:246 -- F10 inserts an empty markdown code block with the cursor in the middle vim.keymap.set("i", "<F10>", "```<CR><CR>```<Up>", { desc = "Insert code block" }) vim.keymap.set("n", "<F10>", "o```<CR><CR>```<Up><Esc>", { desc = "Insert code block below" })
    1. L
      ah, good idea! I'm perfecting my prompt-fu
      🤣1
      1. L
        Video
        a.mov_low.mp4 · 836 KB · click to show
    2. L
      Link
      click to show
      I'll dedicate F9 to F12 to the thirsty ai gods lua/context.lua:264 local function wrap_lines_in_code_block(start_line, end_line) -- add the closing fence first, so the start line number doesn't shift vim.api.nvim_buf_set_lines(0, end_line, end_line, false, { "```" }) vim.api.nvim_buf_set_lines(0, start_line - 1, start_line - 1, false, { "```" }) end vim.api.nvim_create_user_command("WrapInCodeBlock", function(opts) wrap_lines_in_code_block(opts.line1, opts.line2) end, { range = true, desc = "Wrap selected lines in a markdown code block <F10>" }) vim.keymap.set("v", "<F10>", ":WrapInCodeBlock<CR>", { noremap = true, desc = "Wrap selection in code block" }) here's the complete context-fu https://gist.github.com/eduardoarandah/5f51b24a2fa1e604e9253a6ac564b450
Whole thread · 5 replies →
L
#tip add this to a file with aliases and functions to create your command pallete with fzf zsh_helpers.zsh:839 _helpers_list() { awk ' /^alias / { sub(/^alias /, "") name = $0; sub(/=.*/, "", name) cmd = $0; sub(/^[^=]*=/, "", cmd); gsub(/^["\047]|["\047]$/, "", cmd) printf "%-32s %s\n", name, cmd } /^(function )?[A-Za-z][A-Za-z0-9_]*\(\)/ { sub(/^function /, "") name = $0; sub(/\(.*/, "", name) if (name != "fzf_helpers_widget") printf "%-32s (función)\n", name } ' "$_HELPERS_FILE" | sort } # enter ejecuta, tab solo escribe el comando en el prompt fzf_helpers_widget() { local out key sel out=$( _helpers_list | fzf --height=60% --reverse --prompt='helpers > ' --expect=tab \ --header='enter: ejecutar | tab: escribir en el prompt' ) || { zle reset-prompt; return } key="${out%%$'\n'*}" sel="${${out#*$'\n'}%% *}" [[ -z "$sel" ]] && { zle reset-prompt; return } BUFFER="$sel" CURSOR=${#BUFFER} [[ "$key" != "tab" ]] && zle accept-line zle reset-prompt } zle -N fzf_helpers_widget bindkey '^f' fzf_helpers_widget
L
Video
pallete.mov_low.mp4 · 1.1 MB · click to show
custom command pallete Ctrl-f
Whole thread · 1 reply →
D
Actually, it seems you're a bot. Or, at least, sometimes controlled by a bot, specifically in those messages that you mention Sentx AI
👍1
L
Haha yeah it’s a bot 😄 speaks claudish. Two ideas per sentence.

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog · Search · How we count