# All Questions

1,225 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
15 views

### =UltiSnips#ExpandSnippet() not working with tex

My setup works as expected in my python files, but not in tex. The snipppets themselves show up in insert mode, but not only does the mapping I use not work, but if I manually go <c-r> =...
13 views

### Vim indentation of dynamic html templates (jinja, django, etc.)

I was wondering if there was a way to get vim to indent dynamic html tags, as now they all seem 'flat' based on auto-indentation. Here is an example video. Basically I want it to treat an {% if %} ...
26 views

For MS-Windows, VIM releases 32-bit executable as well as 64-bit executable. The VIM download page mentions that the 64-bit version uses a lot more memory, but is compatible with 64 bit plugins. Are ...
34 views

### vimscript: Efficient way to extract portion from line of text

I have a plugin that does syntax highlighting and folding for a kind of data file. The syntax and folding are both dependent on textual values in specific places (columns) of current line of text. ...
20 views

### Vim formatting in css

I am having a very difficult time formatting css in an html file. For example, here is how vim 'thinks' it should be formatted: That is, after the above css section, it gives it 8 indentations (??), ...
21 views

### Is <C-U> really necessary in operator-pending mode mappings?

Is <C-U> necessary when activating command mode within operator-pending mode mappings? According to :h omap-info, onoremap <silent> F :<C-U>normal! 0f(hviw<CR> The ...
42 views

### How to scroll the screen in terminal mode in neovim

In insert mode, we can use PageDown/Up or <Shift-PageDown/Up> to scroll the screen. But this fails for terminal mode. How can we achieve this in terminal mode? I'm using zsh on the Arch Linux ...
7 views

### Change match hilights on CmdlineLeave

Vim uses two different highlight groups for matching patterns while searching in the command-line with / or :substitute for example. The incsearch group for the match under the cursor The search ...
21 views

### Auto-completion pop-up no clean up - how to debug

I'm trying to solve this issue for some time now. Quite often auto-suggestion pop-up leaves a text on the screen: even after being closed sometimes covering newer suggestion that was displayed after ...
52 views

### How to run a command in neovim's terminal mode without leaving this mode

Suppose ALT+h to mapped to <C-\><C-N><C-w>j as following Nvim documentation: nvim_terminal_emulator. We have two horizontally split windows with terminal buffers and the right window ...
16 views

### Wrap specific lines in buffer

is it possible to set nowrap to a line range in the active buffer and set wrap to everything else? I edit LaTeX files. I want to see everything after \begin{document}. but only see the general ...
28 views

### How to prevent duplicated sections in taglist with vim-latex

The plugin yegappan/taglist and the plugin vim-latex are very nice to navigate within the table of content of a latex document. There is an issue however on my system section titles are duplicated. ...
78 views

I've downloaded a bunch of custom snippets to ~/.custom/snippets/. My snippet files are named python.snippets, cpp.snippets, etc. I don't have ultisnips or any other snippet plugin installed, just coc....
13 views

### Is it possible to disable all of plugins in the path of Vundle

I'm using Vundle to manage my vim plugins. All of plugins installed by Vundle are located at ~/.vim/bundle/. If I execute :set runtimepath?, I'll get the output: runtimepath=~/.vim,~/.vim/bundle/...
23 views

### script colors to solarized

using macOS, I've colored the Terminal app by importing the Solarized theme but the scripts I write inside the terminal are not displayed in the Solarized theme. :colorscheme="default" While ...
8 views

### How to configure clang-format to use my prefered indentation?

I'm consulting the Clang-Format Style Options to configure my clang-format. Here's my current setup of g:clang_format#style_options: let g:clang_format#style_options = { \ "...
26 views

### Given a set of patterns, list (in the quickfix window) the ocurrences in those files that contain all the patterns from a given directory

The context Given a {pattern}, I can list the ocurrences of {pattern} in all files from a {directory}, in the quickfix window with the following command :chdir {directory} :vimgrep /{pattern}/ **/* :...
26 views

### Make vim commands be executed once a job on a terminal buffer has finished

The context I've the following mapping in ~/.vim/ftplugin/cpp/mappings.vim. What this mapping does is to compile an arbitrary C++ file and open two windows (a) and (b). (a) shows the output of the ...
31 views

### Possible to toggle between two different colorschemes in vim

I have noticed that some files look better than others with different colorschemes. Is there a way to toggle between two different colorschemes, for example: colorscheme TextMate "OceanicNext :nmap &...
15 views

### Stylizing a string that contains a regular expression

In textmate (and I assume every other editor), it has a nice feature where it colorizes a regular expression inside a string (r-string in python). For example here is how it looks in Texmate: Is ...
23 views

### Automatic preview with vimtex

Is it possible to compile and open the pdf file on write? Normally I would open the pdf file with Zathura, edit the .tex files in vim and use :VimtexCompile. However, I would like to compile only on ...
11 views

### How to prevent Smart-Tabs plugin from overriding youcompleteme tab completion

I've been looking for a solution to "tabs for indentation, spaces for alignment" and found that the Smart-tabs plugin does exactly what I want. However, when this plugin is active, it breaks the tab ...
77 views

### switch to tab if already opened

I'm not familiar with vim code. I tried to use vim as IDE, I setup NERDTree plugin.this is my problem: assume I opened 4 files as tabs. if I press t on opened file already on NERDTree plugin, the ...
20 views

### open and close pdf file with tex

I write LaTeX in vim, with vim-latex plugin. Is it possible to attach a pdf file with vim so that the pdf file opens with the tex file and closes automatically when I close the tex ? Currently, I am ...
27 views

### GVim extremely slow with plugins for long docs

I am using gvim with vimtex (this) with UltiSnips (this) and with conceallevel set to 2. I use the above set-up to write my LaTeX documents. In general, this is slow but if my document is large then ...
25 views

### Replace with another word on the screen

Sometimes I find it convenient to Search for text I want to replace /original Start writing a substitution to replace that :s/ Use C-r C-w to put the current word hovered into the command line :s/...
29 views

### Using xxd in Windows

I installed gvim82 to specifically use the xxd command in windows. I ran the :!xxd -i command followed by file_name.txt > header_file_name.h in the windows command prompt but nothing happens, not ...
23 views

### Gbrowse not opening the browser

I've been using Vim Fugitive plugin for some time now. Recently, I tried the Vim rhubarb plugin. So for a github-repo it should work out of the box but GBrowse doesn't open the browser at all. ...
20 views

### UltiSnips unexpected behaviour

I have the following two snippets snippet mm "Math" wA $${1}$$!p if t[2] and t[2][0] not in [',', '.', '?', '-', ' ']: snip.rv = ' ' else: snip.rv = '' \$2 endsnippet Which puts me in math ...
8 views

### autocmd pattern matching symlinked directory

I am trying to pattern match autocmd to a directory referenced by a symlink. I don't want to refer to the actual directory name in my script as the symlink can change targets. I have the directory ...
20 views

### Unable to change foldmethod

I have the following simple line: inoremap <silent> <TAB> <C-o>:set foldmethod=manual<cr> However, after this command is run and I run set foldmethod?, it reports the ...
35 views

### Only default syntax highlighting works

I'm using nVim v0.4.3 I can't seem to get anything but the default syntax highlighting working. (I'm especially trying to get yats typescript syntax highlighting working) I've tried disabling every ...
40 views

### vim 8 packages on linux

I'm running Vim 8 on Linux and I would like to use packages, but I have a few questions. Between the following directories, where do I create the ~/.vim/pack directory? system vimrc user vimrc 2nd ...
48 views

### How can I put the system clipboard into a vim register?

Basically the opposite of this question. This is on macOS. I copy from a program using ⌘C and I want to add that text to "" or "0 so when I cw or something similar I don't obliterate my copied text. ...
33 views

### UltiSnips snippets not expanding in vim

I installed YouCompleteMe and UltiSnips together in order to use snippets. Here is my .vimrc: call plug#begin() Plug 'preservim/NERDTree' Plug 'ycm-core/YouCompleteMe' Plug 'SirVer/ultisnips' call ...
11 views

### Multichar commands not working on netrw

I would like to hide files using gh in netrw. However, it seems like none of the g- or m- commands are working for me. All of the other commands seem to be working, however, whenever I enter one of ...
25 views

### Unmap <c-n> / <c-p> in completion menu to use as previous / next snippet placeholder with Coc

My completion mappings scheme with coc is the following: <c-@> (ctrl-space): trigger the menu / use the selected item (or the first one) <c-j> and <c-k>: navigate the list (or also ...
36 views

### Restore “search hit BOTTOM, continuing at TOP” when search navigation wraps aound end of file

I've recently switched to Neovim, and some days in, I realized that there was no search hit BOTTOM, continuing at TOP message when jumping from the last to the first search result (or vice versa), ...
33 views

### Is it possible to make some animation in vim

This issue may be a kind of nonsense but I still want to know if it is possible to make some dynamic stuff in vim 7 or vim 8. For example, load a file and make if move from left to right (just like ...
15 views

### Any way to raise a dialog similar to z=?

z= on misspelled words shows a dialog (set spelling before). Can I get the dialog by a function?
29 views

### How to copy/paste from a local machine to a remote server

I am trying to copy text onto my clipboard on a local mac and paste it onto a remote linux server. I am able to yank the text from my local machine onto my machine's clipboard using: "*yy And I can ...
26 views

### Vim not rendering text when moving up

I can move down until the last line of a file with no issues. However, when move up the text that was out of screen bounds does not render (as shown by the figure) until i press Ctrl + L to force ...
22 views

### Plugin(s) to show information on variables and functions

I'm looking for a plugin which exhibits the following behavior: When the cursor is at a variable, a pop-up should show its data type. When the cursor is at a function, a pop-up should show what ...
21 views

### Automating a yank and paste operation

If I want to copy and paste the next 5 lines and paste those 5 lines below the next 5 lines, I would do 5yy5jp. How would I use command to say something like 5yyp to paste the next 5 lines and ...
34 views

### How to make the indentation more smart

I'm using vim to code and I set autoindent in my ~/.vimrc. Now, if I code as below: if (a == 1) {| // the cursor is here and I type ENTER } After typing the ENTER, the code becomes as below: ...
27 views

### How to get rid of an error message from 'deoplete'

Every time I run vim I receive the following error message that disappear afterwords. What can I do to get rid of that message or to get rid of the problem? [deoplete] [yarp] [deoplete] job is dead. ...
55 views

### How to (auto) complete filenames?

Developing in nodejs I have a lot of custom module require statements in my javascript source files, like this one: // // my nodejs program: // path/to/projecthome/lib/someModule.js // const EMOJI = ...
31 views

### Vimwiki: Setting up mathjax

I'm trying to set up MathJax to work with vimwiki. According to the manual: using the MathJax server for rendering (needs an internet connection). Add to your HTML template the following line: ...