Skip to main content
Filter by
Sorted by
Tagged with
-3 votes
0 answers
37 views

How can I configure internal Far Manager's text editor to be vim-like? I have seen such configs in use watching top competitive programmers, such as tourist and radewoosh. But i couldn't find guide or ...
Иванов Леонид's user avatar
2 votes
1 answer
49 views

*Write setlocal iskeyword+=[,],^ in your markdown ftplugin file to reproduce this problem I'm trying to create tags for my markdown endnotes in vim, so that jumping to them from the text is easier. An ...
google account's user avatar
Best practices
1 vote
4 replies
124 views

I want to write a script which ends by calling my text editor (vim) on a specific file path. The file doesn't yet exist, and I want the editor window to already have some contents in it. In particular,...
Ted's user avatar
  • 1,092
5 votes
1 answer
70 views

Is there an option I can set in Vim and Neovim to force the gq motion to wrap text strictly at 80 characters, without addings hanging indents after lines that begin with common programming keywords ...
Brent Pappas's user avatar
Advice
1 vote
1 replies
65 views

What do I want: I set "<leader>gd" as the key to "go to definition" vim.keymap.set("n", "<leader>gd", ":Lspsaga goto_definition<Enter>&...
woc1111's user avatar
Advice
0 votes
2 replies
67 views

I'm writing vim-script(s) that utilizes vim's embedded Python environment. One of these requires the Python Environment to utilize a virtual environment. Ideally for this application, vim would ...
NW_BlackDog's user avatar
2 votes
2 answers
127 views

I am trying to find lines where pattern does not repeat its value. I have a CSV file like this: 2025-10-20;71149;WZ/OPM/04757/12/2023;-220.83;7622100598299;-1;1027144 2025-10-20;81142;WZ/OPM/04993/08/...
avb's user avatar
  • 1,882
0 votes
0 answers
100 views

I am trying to use YouCompleteMe in Vim for getting python documentation (using YcmCompleter GetDoc and the vim pop up menu). This works well for normal python commands, but there seems to be various ...
Riley Kavanagh's user avatar
0 votes
1 answer
78 views

I have vim configured as my editor when using jj. When using git commit I have some vim extensions to provide colored output and some sane max-length defaults. Here is my .vimrc filetype plugin on ...
HHK's user avatar
  • 2,947
2 votes
2 answers
78 views

I'm used to being able to do the following in vim to reflow a comment: Use V to enter visual line selection mode. Select the lines containing the comment. Press gq to reflow the comment. This has ...
jacobsa's user avatar
  • 7,875
1 vote
1 answer
77 views

When I type :highlight, I get a buffer like: :highlight SpecialKey xxx term=bold ctermfg=188 guifg=#dcdfe4 EndOfBuffer xxx links to NonText NonText xxx term=bold ctermfg=239 guifg=#...
beyarkay's user avatar
  • 1,173
-1 votes
1 answer
62 views

I use vim-latex to edit LaTeX files. When compiling, usual warnings are suppressed. If I use the package robust-externalize, they are not: I get a couple of (useless) windows, one of which says /usr/...
brad's user avatar
  • 171
-3 votes
1 answer
147 views

I like using :!pbpaste | jq to see my JSON objects when reading logs in vim. But it often throws the following error with the slightest inconvenience in the JSON body. jq: parse error: Invalid numeric ...
Mahdi Habibi's user avatar
0 votes
0 answers
69 views

I want to indent some code with cindent and cino=(0,m1. When I have parentheses inside the argument list of a function call I get some extra indentation: foo(); bar( // <--- normal ...
DerDieDas's user avatar
1 vote
0 answers
44 views

I’m working on a custom Vim colorscheme (Monokai-inspired with a Gruvbox background, 256-color accurate) and I’d like to highlight Python class names in a different color. I'm using Vim macOS version -...
Stochastic Cactus's user avatar
6 votes
2 answers
172 views

I am trying to increment the numbers in a column of a file by a constant value using: :s/\d\+/\=submatch(0)+8192 where 8192 is the constant I want to add. My file has the below structure: ATOM 32760 ...
Bussller's user avatar
  • 2,085
2 votes
0 answers
65 views

I want to highlight special regions in a special extension .html.specialext, the regions are Lua code in some delimiter, here it's {{ and }}. Detecting custom filetypes is trivial but here is my code ...
TummaLumi's user avatar
0 votes
0 answers
45 views

Vim often hangs or is slow when opening a really large file (many lines, or many chars in a line) I found a workaround (but for viewing only): head -n 1000 mylargefile.txt | vim - head -c 1000 ...
Vadim Kantorov's user avatar
-1 votes
2 answers
101 views

I want to display an output by vim, and I simulated it by a c source file (src/main.c). For this I wrote a vimscript as follow (vim/core.vim) : " vim/core.vim function! F1() for line in ...
tahzibi.jafar's user avatar
3 votes
7 answers
333 views

I have the following file: line 1 abc line 2 def line 3 ghi ..... ..... I need it to become: line 1 abc line 2 def line 3 ghi ...... ...... I know how to remove newlines, but not odd or even line ...
klatls's user avatar
  • 57
1 vote
0 answers
46 views

I have some XML data <layer> <path data="S 35.33333,70.61539 L 34.46154,23.28205/> <path data="S 30.66667,12.5641 D 33.64103,12.5641 37.58974/> </layer> I want ...
Carson's user avatar
  • 8,890
0 votes
0 answers
87 views

I am currently writing a c3 syntax file for vim and I have some issues with a highlight. I have this line: syntax match ModuleName "\<module\>\s*\zs[a-z][a-zA-Z0-9_]*\ze;" display and ...
PalsFreniers's user avatar
-1 votes
1 answer
57 views

I would like to be able to define a key mapping in my .vimrc file that does different things based on a condition involving a unix command. For example, something like map xyz [[ $(egrep -c -e '^From: ...
Maneesh Patel's user avatar
2 votes
1 answer
86 views

I am using Clangd as LSP server. "inlayHint.display": false and "clangd.arguments": ["--function-arg-placeholders=0"]" work to disable the placeholders in functions ...
THE0_C's user avatar
  • 31
2 votes
1 answer
64 views

Some of the key inputs on my nvim running in xterm are a bit odd. For example, to get the '^' key, I have to press shift-6, and instead of it just generating a '^' character, it actually generates '&...
Rich's user avatar
  • 391
-1 votes
2 answers
70 views

As I am working on a project I like to keep a plain text log file of my progress using MacVim. I use Typinator to produce a timecode (but how the timecode is generated is irrelevant to the problem). ...
Paul Dulaney's user avatar
-1 votes
1 answer
44 views

I'm working through a vim tutorial. The author suggested running the following command so that vim always launches in enhanced mode: echo "set nocp" >> ~/.vimrc I did this, and it ...
GlennB's user avatar
  • 1
3 votes
1 answer
49 views

This function assigns a random colorscheme in Vim. I also want it to display a message telling what the new colorscheme is but that part isn't working. If I call this function and then type :messages, ...
Dread's user avatar
  • 913
-1 votes
1 answer
70 views

I want to create a function such that when I execute it (:'<,'>call Foo()) with some text selected, it will set my command-line as ':%s/selected_text/selected_text/gc' so that I can edit the ...
Olivier Diotte's user avatar
0 votes
2 answers
89 views

For auto-expanding function body I have in my .vimrc file :inoremap { {<CR>}<Esc>ko (which produces) fn main { .... } This works fine most of the time, but problem arises when curly ...
michal's user avatar
  • 29
0 votes
2 answers
52 views

When I am entering perl code, vim enforces the indenting of the line when I type "or" or "and" on lines with only whitespace. If the cursor is inside the same (), [], or {} as the ...
neniu's user avatar
  • 431
-3 votes
1 answer
82 views

My .vimrc configuration is as below set runtimepath^=~/.config/vim " Visual mode select and move laterally using < and > sign vnoremap < <gv vnoremap > >gv " Centre align ...
Tahseen's user avatar
  • 133
2 votes
1 answer
98 views

When looking at :help mode(), it says: mode([{expr}]) *mode()* Return a string that indicates the current mode. If {expr} is ...
Dario Colombotto's user avatar
3 votes
1 answer
69 views

I need to match couples of chars as Char 1: not keyword and not space (so any other symbol) Char 2: keyword or space e.g. "!b", "$a", "$ ", ... It would be trivial......
Dario Colombotto's user avatar
0 votes
1 answer
56 views

Log: smac integral 48 'hab12 dmac integral 48 'hcd34 len integral 32 32 ...1000 lines... smac integral 48 'hblah dmac integral 48 'hblah len integral ...
sreekesh padmanabhan's user avatar
2 votes
1 answer
59 views

In my text file, I want Vim to search for a quote that is immediately followed by a period or a comma. blah blah blah "Don't want this" blah blah blah blah blah blah blah blah "But ...
bongbang's user avatar
  • 1,734
1 vote
1 answer
62 views

Within a given line, I would like to search for a text and replace it with a different text at a specific column number within the same line. for example, I would like to replace, port_a, port_xyz, ...
Poorvaja S's user avatar
1 vote
1 answer
105 views

I have a programming language that supports multi-line strings, the syntax is as follows (EBNF): longstring ::= '"""' {'"'} newline chars newline '"""' {'"'} ...
dlroweht's user avatar
0 votes
1 answer
74 views

I have a file with numbered host names. I want to change the name while preserving the numbers. CHANGE THIS: server1.domain.com server2.domain.com server3.domain.com server4.domain.com server1....
user2704404's user avatar
4 votes
1 answer
95 views

Given this text: (^ is supposed to be the cursor) the quick brown fox ^ ytx yanks the text from r up until (excluding) x and doesn't move the cursor. yTq yanks the text from r up until (...
abdullah aleiti's user avatar
0 votes
1 answer
57 views

I certainly am not searching for this answer properly. It should be obvious. Basically, enter goes to the start of the next line. I want the opposite of enter. I want to go to the start of the ...
user2272600's user avatar
-1 votes
4 answers
422 views

In my codebase I often leave comments in the form of // TODO: thing to get done. I need a way to find them across all my files and view them in one place. I am open to plugins but would equally want ...
Ben Lloyd's user avatar
  • 557
1 vote
1 answer
480 views

The goal When I open a file in Neovim and make changes to it, I'd like to be able to view the difference between the buffer contents and the original file on disk. Similar to what Sublime Text has: ...
edison23's user avatar
  • 166
1 vote
2 answers
149 views

Let's say we have the following code: function test() { const a = {<HERE>}; // `<HERE>` is the caret position } When enter is pressed, the leading whitespaces are added as expected: ...
Ilya Ordin's user avatar
0 votes
0 answers
54 views

I have a vim syntax file like the following: syntax match langString \ /\v[^"' ][^;]+|"[^"]*"|'[^']*'/ \ contained syntax keyword langName \ ...
cutecoder's user avatar
4 votes
2 answers
517 views

I use Neovim under WSL, and I set copy on selection in WindowsTerminal. However, with :set mouse=a in Neovim, copy on selection by mouse doesn't work in nvim. How can I make this work in Neovim?
gaoqiang's user avatar
  • 141
-1 votes
1 answer
92 views

Consider following line (like in a table of contents): 6.1.34.2 Some text (there is a tab after the "2"). When searching for ^\d\+[.]\d\+[.]\d\+[^.] the line is selected (and colored ...
John's user avatar
  • 35
0 votes
1 answer
44 views

I am trying to create a snippet for a LaTeX section that automatically fills in the label. I'd like the label to replace special characters and convert uppercase characters to lowercase characters. I ...
spubby's user avatar
  • 98
1 vote
3 answers
276 views

Suppose I have a filename f that may or may not be absolute. And I have a directory d that f is in, that isn't (or at least might not be) the current working directory, or the home directory. What is ...
Thayne's user avatar
  • 7,079
1 vote
1 answer
106 views

I'm using Windows, in Git Bash, if I use vimdiff as the compare tool, Git will trigger the vimdiff in its package. However, it's hard to add a new color scheme, e.g. gruvbox. Git's vim is in C:\...
athos's user avatar
  • 6,517

1
2 3 4 5
566