New answers tagged

1

Here are some examples. (Note that your keywordAs already covers the bullet, you just need to highlight it as you want.) When the delimiters are always on the same line, this is probably the simplest way to go: syntax match Important /!!.*!!/ But to be more flexible, allowing delimiters anywhere, use a region: " Don't use Question; it's a `:help ...


2

You can open the terminal (or create a map) with :exe 'ter'|se nornu nonu Or create an auto-command in .vimrc: autocmd TerminalOpen * set nonu nornu


1

It's likely that your .vimrc is getting sourced multiple times. Because it's possible to add multiple autocommands to the same event, you can end up autocommand duplication. This example from the help page explains how to define autocommands in a group to avoid this problem. `:autocmd` adds to the list of autocommands regardless of whether they are already ...


-1

in neovim: :terminal python % then go into insert mode, type input, and press enter.


1

In vim, I open a terminal using :term and enter the normal mode using . Then, :Explore does not open the vim's file navigation view, but creates a another split window of the current terminal session. That is how it should be. I would like to know why this is happening, and how to fix it. Thank you! :Explore is provided by built-in netrw plugin. You can ...


2

If you run vim -Nu NONE in cmd.exe you have mouse=a and that is why you can change split sizes with your mouse. Try to set mouse= and resize a split, it wouldn't work. On my linux box mouse is empty by default so I can't resize splits with a mouse. Help topic :h 'mouse' tells exactly this: 'mouse' string (default "", "a" for GUI ...


1

The comments by B layer and Ben Knoble were both helpful in finding the answer. Vim correctly set the shell based on the $SHELL variable, but did not set shellcmdflag appropriately, and that was what the /s was, the default shellcmdflag for cmd.exe, as stated in the :help 'shell' file. Setting it to -c in my init.vim seems to have solved the problem, and a ...


0

I found a plugin that does exactly this. I have been using for a whole hour now, so I feel comfortable recommending it to the world. https://github.com/t9md/vim-choosewin In particular, I've been using this configuration: " Invoke choosewin plugin using tab nmap <Tab> <Plug>(choosewin) "Use overlay feature for choosewin let g:...


Top 50 recent answers are included