广州深圳韶关河源惠州东莞六市联合执法共建美丽东江

15,269 questions
Filter by
Sorted by
Tagged with
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 ...
1 vote
1 answer
10 views

synID() on treesitter highlighting

My script includes synID() but does not work on a help file after nvim 0.10.0. It is because nvim starts to use treesitter highlighting and does not set the syntax option. Is there any alternative ...
2 votes
1 answer
22 views

Prevent output of a shell command from staying in the terminal

Suppose we did something like: launch vim with $ vim --clean execute a shell command :!echo "hello" After step 1, if we exit Vim the terminal will contain: $ vim --clean $ However after ...
1 vote
1 answer
766 views

Vim locks up completely when pressing `ctrl+w` while using tmux + vim

I have a tmux + vim setup in which I use split panes. Every time I press ctrl+w to move between the vim panes, my vim instance becomes completely unresponsive. At first I thought this was a tmux issue ...
0 votes
1 answer
78 views

Nvim Lua plugins that use lua/pluginName instead of just a lua folder cannot call setup function

Hello I am new to both Neovim and Lua, I am trying to set up a configuration using the Lazy.nvim package manager and cannot get either the nanozuki/tabby.nvim or tris203/hawtkeys plugins working. Lazy ...
3 votes
2 answers
5k views

In Windows 10, WSL 2, Windows Terminal, bash and Vim, how to avoid the conflict of <C-v>?

With the newly released Windows 10 update 2004, we can run native Windows Subsystem for Linux (WSL) 2 and install Ubuntu 20.04 on it. Then we can run native bash inside the latest Windows Terminal. ...
0 votes
1 answer
58 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 ...
0 votes
1 answer
85 views

How to color pairs of parentheses?

I am looking to color the parentheses in Python and other languages and the the tags in HTML. But the thing is, I want the parentheses at different levels to be colored differently. Basically, I am ...
1 vote
1 answer
26 views

Map equal to gq in Neovim

The title says it all. I'm trying to map <Equal> to gq behavior in Neovim both when in Normal mode (in that case do gqq) and in Visual mode (in that case do gq) but somehow this is not working. ...
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 ...
0 votes
1 answer
141 views

UltiSnips "invalid line" in snippet file

I was using coc.nvim for a while, and was very happy with the performance/function, but I am not a huge fan of the JavaScript dependency, so I wanted to give UltiSnips a chance. I have installed ...
0 votes
1 answer
477 views

Use LspConfig root_dir in Neogit cwd

I'm trying to setup Neogit to open in my workspace directory instead of cwd. The problem is that I use multi root workspaces, so I usually set my cwd to be workspace1/... My initial try was to use ...
35 votes
5 answers
26k views

Biggest differences between Vim and vi

I tried vi instead of Vim, and I didn't notice much difference. The biggest thing I noticed was how vi didn't say -- INSERT -- when I went into insertion mode (and other minor interface differences). ...
2 votes
1 answer
90 views

Why does explicitly setting `filetype plugin indent on` in neovim have an effect?

I'm using neovim 0.10.1 where filetype plugin indent on is a default value and supposedly not necessary anymore in init.vim. However, explicitly setting it makes my In my init.vim I add compatibility ...
1 vote
1 answer
58 views

How to style showcmdloc=last?

How can I change styling/colorscheme for the region that shows the command being typed, if I have: set showcmd " show typed in command in the last screen line: set showcmdloc=last The region can ...

15 30 50 per page
1
2 3 4 5
1018