eBay高管加入谷歌旗下Waymo:推动自动驾驶商业化

23 questions from the last 30 days
Filter by
Sorted by
Tagged with
5 votes
5 answers
510 views

Copy last word of each line as an independent line

I want to copy the last word of each line, including the new line character. For example This a line This is another line to copy And one more The result should be line copy more So far, I have %...
William Ardila's user avatar
3 votes
2 answers
650 views

Why do I need to reopen Vim to have the auto-commands in .vimrc in effect even after sourcing it?

Whenever I make modifications in auto-commands in ~/.vimrc, I need to reopen all the buffers to have the effect of those modifications. Sourcing the ~/.vimrc either by :source ~/.vimrc or :source $...
Somudro Gupto's user avatar
1 vote
3 answers
314 views

Writing a visually-selected couple of files out to a file with an open buffer

This is vim 9.1 on arm64 macOS 15.5. Let's say I open file1.txt with: vim file1.txt but some of the lines I want to write into another file. If I open that file in a buffer with: :split file2.txt or:...
Harv's user avatar
  • 241
1 vote
1 answer
328 views

Is there a way to move the cursor specifically to the beginning of the visually selected region (not just toggle like `o`)?

When in a visual selection you can press o to have the cursor jump between the start and end of the selection without affecting what is actually selected. Is there a way to do a similar thing, but in ...
Pak's user avatar
  • 1,154
3 votes
1 answer
218 views

Visitor pattern in vim9script

This is the simplified version of what I have tried. vim9script type Token = string interface Visitor def VisitBinaryExpr(expr: Binary): void endinterface abstract class Expr abstract def ...
jonesangga's user avatar
2 votes
2 answers
68 views

Odd export behaviour when sourcing file multiple times

I created a file named test.vim containing code below. vim9script var a = 1 echo a export var b = 2 echo b I copy that file to these place: ~/Documents/test.vim ~/.vim/test.vim ~/.vim/pack/test.vim ...
jonesangga's user avatar
1 vote
1 answer
86 views

Line numbers in terminal mode

I want to enable line numbers in terminal mode in Neovim. I used the following snippet: vim.api.nvim_create_autocmd("TermOpen", { callback = function() vim.opt_local.number = ...
Irdis's user avatar
  • 113
2 votes
1 answer
56 views

Why vim can start a clientserver under wayland but gvim can't?

on my system g/vim9.1, +clientserver features work on vim but not on gvim (which is the only place i want it because i use gvim --remote-tab-silent) the help doesn't offer any hint at the transport ...
gcb's user avatar
  • 263
0 votes
1 answer
57 views

How to highlight text inside [...] differently than text inside ![...]!

The goal is to highlight text inside [...] with a different color than text inside ![...]! Also everything should be nestable such that [...] could contain ![...]! inside of it or vice versa and the ...
yousefx0's user avatar
1 vote
1 answer
51 views

Change settings when using vimdiff

I have a function that changes settings for diff mode (usually activated by using vimdiff). Manually calling this function works as expected. However, I would like this function to be called ...
MERM's user avatar
  • 113
1 vote
1 answer
58 views

How to highlight across regions?

I have a special format in .html.specialext, it is basically an HTML file with special regions delimited by {{ and }}, containing Lua code. Here is my syntax file (specialext.vim): if exists("b:...
TummaLumi's user avatar
0 votes
0 answers
48 views

How could I improve my game about learning Vim? [closed]

I've developed BobaVim, a browser-based game designed to help people learn and practice Vim motions through interactive challenges and competitive gameplay. After months of development and testing ...
Goplo's user avatar
  • 11
0 votes
1 answer
40 views

How do you externally write to vim's register, that an active session will seemlessly pick it up?

Backstory: Creating a TUI in Qt/C++. Much of its functionality is designed mimic vim idioms. Headless environment via qputenv( "QT_QPA_PLATFORM", "eglfs" ); EGLFS is a platform ...
Anon's user avatar
  • 1,005
1 vote
0 answers
56 views

How to adapt a vim-plug example to lazy.vim?

I use Neovim with lazy.nvim plugin manager on macOS. I am trying to get cmp-zotcite (autocomplete zotero citationkeys) to work, which requires jalvesaq/zotcite (talks to zotero SQL database) plugin ...
AKR's user avatar
  • 11
1 vote
1 answer
28 views

Why are TypeScript files with shebang in nvim rendered in gray?

I have installed the up-to-date tree-sitter-typescript, and it works well in typescript files without shebang. I searched online but couldn't find any particularly similar questions. Some people ...
WeariTraveller's user avatar

15 30 50 per page