Category "vim"

VIM YouCompleteMe error serching py librarys

i was installing YCM in VIM and got this error: Searching Python 3.8 libraries... ERROR: Python headers are missing in /usr/include/python3.8 i have tried with

Configuring vimspector with ruby on rails app running passenger

My question is how do i get vimspector running with a ruby on rails app running passenger (I think) I'm trying to set up vimspector with some ruby on rails proj

Search and replace in 1 step instead of 3 with Vim regex

I have this code that I'd like to transform: const createFacebookAdVideoPayload = { const accountId = faker.datatype.uuid(); const pu

Strange issue with terminal getting messed up: vim/coc-nvim/golang/gopls/zsh/gpg

I am having a very annoying issue and I don't know exactly what's the problem. It could have loads of possible causes, so please bear with me trying to fix this

YouCompleteMe unavailable: module 'collections' has no attribute 'Mapping'

Hi I have been trying to setup YouCompleteMe in vim but it don't work. I am using vim-plug. I tried around 3 different YouCompleteMe repositories but i always g

Running shell command in VIM Script

In my vimrc file, I have an if statement that contains a variable that gets output from a shell command. The idea is if the command output is not Hyper run some

Matching square brackets in vim

I am aware of the shortcut for flower braces i.e. Having cursor over { and pressing ]} gets me to the corresponding }. How to do the same for matching square br

Escaping back-references in recursive search

Is it possible to back-reference the result of an outer :g command in a recursive call (or an inner :s call?) For instance, let's say I want to search for somet

Run gofmt on vim without plugin

I want to run gofmt on save on vim without installing any plugin. This is what I have tried (inspired by https://gist.github.com/tbrisbout/a91ac3419440cde40c5f5

Keep cursor line vertically centered in vim

I want the cursor to be constantly in the middle of my screen in vim. I am not very comfortable looking constantly down to the end of the file. What commands in

How to set terminal tabs titles in zsh, to vim filenames

I am using a oh-my-zsh shell in an Apple terminal (2.11) in full screen, and by default the name of the tabs is the name of the program being run (eg. vim). Is

How to set terminal tabs titles in zsh, to vim filenames

I am using a oh-my-zsh shell in an Apple terminal (2.11) in full screen, and by default the name of the tabs is the name of the program being run (eg. vim). Is

how to auto focus editor on Xcode

I am new on Xcode and crazy using vim mode for everything. On Xcode, whenever I switch to different tab on editor view I have to use keyboard shortcut command +

writtenctags: "tags" doesn't look like a tag file; I refuse to overwrite it

I am using vim with ctags. every once in a while I get the next error message: writtenctags: "tags" doesn't look like a tag file; I refuse to overwrite it. my

Launching vim from python in a new terminal and waiting for it to close

I am trying to create a python script that Launches a new terminal window (in my case terminator) Open vim on a temporary or designated file Waits until vim/te

How to search and replace function for "vscode vim"?

i have tried but didnot find a way to search and replace in vscode with the vim keybindings plugin. The vim console doesn't take regular vims search and replace

how to present function name at statusline on vim

When I open any .c file, I hope that function name will be present at statusline according to current cursor position. set statusline=%<%F%h%m%r%h%w%y\ %{str

macOS Mojave 'ruby/config.h' file not found

When I try to build vim(8.1.0509) with ruby support(--enable-rubyinterp) on macOS Mojave(10.14.1) I get error: In file included from /System/Library/Frameworks/

Why is the word file get highlighted in .py files in the Vim text editor?

The word "file" in python is not a keyword, but my Vim highlights it as if it were. Can someone suggest a fix and explain this strange behaviour? It keeps messi

Mapping select-all, copy, paste in vim

I have the following map in my vimrc: nnoremap <C-a> ggVG nnoremap <C-c> "*yy (might be because I'm in visual mode here?) nnoremap <C-v> "*p