All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Function to toggle terminal creates extra empty buffer

I have modified a function from CKolkey's dotfiles - ToggleTerminalDrawer (line 230) so that it works for Vim8.2 (instead of neovim). Here is my modified function now in my vimrc: nnoremap <silent&...
0
votes
1answer
12 views

Simple keycombination to move to the last occurance of a character in a line

I am looking for a simple few key command which would move till the last occurrence of a character in the line. Is there anything already existing? The alternative is to jump to the next specified ...
0
votes
1answer
12 views

How to re-select a previously selected region in visual mode?

I often select a region in visual mode for properly indenting it. However, after pressing e.g. 3>, visual mode exists and the selection disappears. How can I re-select the previously selected ...
1
vote
1answer
15 views

How can I wrap text from the indentation level rather than the beginning of the line

This is better shown than explained. The first image shows how line wrapping works in VScode, and the second in vim. In VScode the wrapped line continues at the indentation level of the line, rather ...
0
votes
1answer
14 views

Is it possible to pass variables to functions inside statusline=%{} somehow?

I have a function that builds my status line by appending values with statusline+= depending on the context. Everything works, except that if I try to call a function in the following form: setlocal ...
0
votes
1answer
20 views

Insert the word which is above the cursor?

I know that in insert mode CTRL-Y can insert the character above the cursor. Is there a way of inserting the word above the cursor in insert mode ?
0
votes
0answers
11 views

Make netrw not close previous buffer but open a new buffer

I have netrw_browse_split set to 4, so typing <Enter> on a file on netrw will open it on the previous window. But if the previous window have a file, it will be closed. How can I make opening ...
0
votes
1answer
9 views

How can I set the length of the MRU plugin?

I'm using https://github.com/yegappan/mru I remember in the past having an option to set the length of the list, but can't find it now?i
1
vote
0answers
11 views

F10 is not yet available to Vim via gnome-terminal

I'm using gnome-terminal for first time (after using xterm for many years). And the one keystroke that no longer works within gnome-terminal from my Vim application is Function Key F10. I've turned ...
1
vote
1answer
9 views

Highlight search phrase within quickfix window listing

One can change the search color of search terms with the Search highlight scheme. Similarly one can change the color of a line in the quickfix window with QuickFixLine. However, how does one change ...
0
votes
0answers
7 views

Trouble creating a remap that compiles the current open latex file along with one other latex file in the current directory

I am working with latex files. I want to have a normal mode remapping which compiles my current file and a latex file named main.tex (both in my current working directory). The command to compile is:...
0
votes
0answers
7 views

“tnext” command skips to next file

I'm using vim's built in helptags command to create a tags file in LaTeX. While LaTeX files are not the txt files normally used, helptags seems to work just fine, and generates an empty "tags" file ...
2
votes
3answers
509 views

Deleting without copying to clipboard in Windows?

Here is a typical workflow I would like to follow: copy some data from Excel spreadsheet into the clipboard in vim , delete the data in the file using ggdG then paste the data into the file from the ...
1
vote
1answer
77 views

How to change font style in Linux terminal?

I know this question has been asked many times, but what I've noticed is that the majority of them seem to be for gVim or Vim for Windows rather than Linux command line Vim. I'm just wondering how I'...
0
votes
0answers
18 views

Warning:…Illegal mnemonic character; Could not convert X KEYSYM to a keycode?

Does anyone know how to prevent these annoying messages? bash$ gvim foo Warning: Name: subMenu Class: XmCascadeButton Illegal mnemonic character; Could not convert X KEYSYM to a keycode ...
0
votes
0answers
19 views

Remove command echo in status bar

I've noticed that sometimes in ViM the status bar shows me the command I've just executed (for instance, if I keep the key 'l' pressed to keep going right, I see at the bottom right of the screen a ...
3
votes
0answers
12 views

How to make gvim always confirm quit when pressing the X button on the window

Using set confirm or the confirm-quit plugin makes it so that vim always confirms quit. But in gvim, if you just press the X at the top, it always quits -- no confirmation (unless the file is unsaved) ...
2
votes
3answers
92 views

Does Vim have functionality similar to tmux's `display-panes` command for selecting (goto) a specific window by number?

Does Vim have functionality similar to tmux's display-panes command for selecting (goto) a specific window by number? Sometimes when I've many windows open, it can be a pain to navigate them by C-w ...
1
vote
1answer
31 views

Rules for 2-tier recursive syntaxes

I have matched parentheses, but highlighting failed as it transcends up the recursion stack. I just need to know if there is a solution to tracking pairs of delimiters during Vim highlight syntax of ...
1
vote
1answer
12 views

How to automatically run a command after foregrounding

Preface: I might be asking the wrong question, so I'll just say what my problem is first. Whenever I use ^Z to background vim, then later (can be hours later) run fg to bring it back, YouCompleteMe ...
1
vote
0answers
20 views

Highlight color columns on top of folds (not below)

I'm highlighting folds and color columns in colors different from the background and from each other. Here's an excerpt of my vimrc with all (potentially) relevant lines: " ~/.vimrc ... " Folding ...
3
votes
1answer
32 views

How to match paragraphs of text ending with a character?

This problem that seems trivial is beating me real hard. I'm trying to create a couple of syntax highlighting directives for a custom language that is structured in paragraphs separated by at least ...
2
votes
3answers
143 views

Delete text between two $ symbols in gvim

I understand that we can use da{ to delete a whole {} block in vim. I am wondering if there is a corresponding version with { replaced by $ (similarly for di{) as this would be very useful for people ...
0
votes
1answer
31 views

Vim takes a long time to close over SSH?

While ssh'd into my server, vim hangs for a variable amount of time (about 2 seconds, but can be longer or shorter) when opening and closing. It's worth noting that (to my eyes) the delay is the ...
0
votes
0answers
10 views

Implementing an extension for exploring archives

I really like the feature of VIM that lets you explore directory hierarchies, and even enter into zip files, and explore the file hierarchy within them. I would like to extend VIM to support other ...
0
votes
1answer
27 views

How to go to search results located in other windows?

I want to go to the search result in the right-window, identified after performing a /urllib search in the left window. Pressing n\N doesn't proceed to search results in other windows. How can I ...
3
votes
1answer
86 views

Vim: How to write control characters in file

How do I write control characters in a file using Vim? For example, I want to write the backspace character, which is invoked using ^? (or the dedicated Backspace) key on the keyboard, to a file. But ...
2
votes
1answer
31 views

Order in runtimepath of Vim packages or similar plug-in managers

Vim packages work by updating 'runtimepath' to include the top directories of the plug-ins in each package (and also the after/ directory), but the Vim documentation on packages isn't absolutely clear ...
2
votes
2answers
57 views

Latex Subscripts Rendering Weirdly [duplicate]

I'm trying to type the following latex in nvim: f_{high}=\{1209,1336,1477,1633\}Hz. For some reason, nvim is rendering this as: fₕᵢgₕ= \{ 1209, 1336, 1477, 1633\}\si{Hz} How do I fix this?
3
votes
1answer
20 views

Customizing Latex-Suite star environments

The documentation of Latex-Suite says I can customize the generated environment boilerplates by defining g:Tex_Env_... variables. This works for me. Nevertheless, it goes on to say that for ...
0
votes
1answer
10 views

How to find and replace a group while keeping the word

How using vim serach and replace change title: <Translation {...messages.title} />, title: <Translation {...messages.header} />, title: <Translation {...messages.message} />, into ...
15
votes
1answer
1k views

What are the new “popup windows” in Vim 8.2?

The latest version of Vim, 8.2, has a new feature called "popups" or "popup windows". They sound interesting but I'm not quite sure what they're good for. Can you enlighten me...preferably with some ...
1
vote
1answer
17 views

Highlight region with keyword in it

I have this file Another comment program start end This is a comment Anything after end or before program must be highlighted as a Comment. I've battled with vim for hours, what am I doing wrong? ...
0
votes
1answer
34 views

Can you use neovim in a gui like mvim or gvim? (Mac OS X)

Maybe a stupid question but is it possible to run neovim on a GUI like gvim or mvim? I need some GUI to do remote work within Filezilla Thanks
0
votes
0answers
14 views

Cscope not working

Cscope not workings as described in their tutorial. Vim is version 8.1. I have Cscope compiled into my Vim (:version shows +cscope and :echo has("cscope") returns 1). Also, when I use cscope at the ...
1
vote
1answer
20 views

Opening gvim in new tab (filezilla)

I want to open and edit files in FileZilla with gvim without opening a new window every time. I searched online and found this but it doesn't open in same gvim window. In Filetype associations . /...
2
votes
1answer
54 views

Building a Vim Plugin for Autocompletion

I've been a vim fan for almost 5 years right now and never moved to any other editor. Since my background in deep learning and NLP, I realized that there a lot of new development in source code ...
2
votes
1answer
20 views

vim hex editor with xxd not working as intended

I'm trying to use vim as a hex editor. I am using the %!xxd / %!xxd -r method, and it worked fine until I tried a some bytes that didn't work as expected : 00000000: 1337 6161 6161 6161 6161 6161 ...
1
vote
1answer
23 views

neovim ruby/rails omnicomplete

I'm trying to get omnicomplete working in neovim (0.3.4) on debian 10 with Ruby 2.6.6 (rbenv). I have these plugins: Plug 'vim-ruby/vim-ruby' " ruby ...
0
votes
1answer
31 views

What does [ .. ] mean in a function signature?

For example this function signature has several braces [ and ]: matchaddpos({group}, {pos} [, {priority} [, {id} [, {dict}]]]) What it means? Unnecessary argument?
4
votes
2answers
35 views

Ctrl-W at :terminal (default terminal behavior expected)

I am very fond of Vim's :terminal, though whenever I use Ctrl-w (expecting to erase the last typed word at prompt), Vim captures the key press and enters pane navigation mode. So I end up having to ...
0
votes
1answer
16 views

How can I highlight the current cursor position (not just the line)?

When I search a text file for a word from within vim, it will highlight all matches for the word by changing their background color -- to olive green on my terminal; your color may vary. I am looking ...
0
votes
1answer
16 views

How can I read a file and do template substitution?

Question How can I read a file into the current buffer and do some template substitution on it automatically? Background I'm working on a simple bash-driven logging / journaling capability. (on ...
1
vote
0answers
21 views

Vim background colors render incorrectly

When I scroll inside vim white spaces seem to get highlighted. Also the background color is the one I use to signal the 80 column while it should be the same color as the terminal as it can be seen in ...
0
votes
1answer
17 views

delete every line which has double entries with a regex

I have a bunch of csv files which look sort of like this: date,receiver,client,article_id,amount 5-12-2019,thomas,thomas,2,23 5-12-2019,joe,joe,2,14 6-12-2019,tobias,bob,4,1 now I would like to ...
1
vote
1answer
29 views

How to put quotation marks (') in the content of a vim macro?

I use :%s/'/"/g to replace all single quotes ' with double quotes " in a plain-text file but when I want to put this command in a vim macro in .vimrc let @r=':%s/'/"/g' opening vim will give me ...
1
vote
2answers
36 views

How to get the number of the output of `vimgrep`

I wrote a vim-script function, which allows me to grep a keyword in my project. function! CustomGrep(...) if a:0 == 0 silent vimgrep <cword> **/*.h **/*.hpp **/*.c **/*.cpp else ...
0
votes
1answer
16 views

Is there a backward equivalent to w?

You can go forward, to the beginning of next word, with w/W. You can go forward, to the end of the word, with e/E You can go backward, to the beginning of the word whit b/B How do you go backward, to ...
1
vote
0answers
15 views

Autoindentation in .tex files

I use Vim to write Latex code and I would like to have autoindent when adding environments. I am aware of the smartindent capabilities that can be toggle on and off by inspecting the $VIMRUNTIME/...
1
vote
1answer
21 views

VIM 8.2 Backspace Delete behavior [duplicate]

I uninstalled vim 8.1 which is the available version through my package manager and installed 8.2 from source. But Backspace and Delete buttons behave in a different way in this version. If you are ...

15 30 50 per page
1
2 3 4 5
171