TransWikia.com
  1. All Categories
  2. Vi and Vim

Vi and Vim : Recent Questions and Answers (Page 9)

Find answers to your questions about Vi and Vim or help others by answering their Vi and Vim questions.

Turn syntax off only for current buffer/window?

Is there a way to turn off syntax for only the current buffer/split windows? like for example, you can set map <buffer> or setlocal. Is there something similar for the...

Asked on 01/30/2021 by First User

1 answer

Making clangd LSP recognizing GNU-specific headers

I have coc.nvim installed for autocompletion in vim. I usually include bits/stdc++.h(GNU-specific) in my files for competitive programming. I use the g++ compiler so I have no trouble there, but...

Asked on 01/27/2021 by Galarmo

0 answer

Concatenate mapping with zt mapping

I'm using CoC and coc-python, and there is the gd mapping, which goes to the definition of a symbol. The mapping is defined as:nmap <silent> gd <Plug>(doc-definition)Now, I want...

Asked on 01/21/2021 by Xxxo

2 answer

Why is current working directory in vim different from where vim was started?

vim is showing a different current working directory than the one I started vim with from the command-line. The problem goes away if I run without my .vimrc (vim...

Asked on 01/13/2021 by Rob Bednark

1 answer

Default rulerformat

I like the default rulerformat, but I would like to add to it. However itseems the default value is hidden. If I try these:set rulerformatset rulerformat?I just get:...

Asked on 01/06/2021

1 answer

:set completeopt=menuone does not always show menu on the commandline

:set completeopt=menuone does not always show the menu. For example pressing :vs<tab> on the command line one would expect the menu to appear, with the singular option vsplit. What happens...

Asked on 01/04/2021 by Dov Alperin

1 answer

keep contents of nofile buffer

My plugin creates new buffer, sets buffer type to nofile and fills it with text via job_start with out_io=buffer. Simplified code:enewsetl bt=nofile...call job_start(cmd, {'out_io': 'buffer', 'out_buf': bufnr('%')})Works fine, but...

Asked on 01/02/2021 by Igor Semenov

1 answer

Ignore error on specific character in .vimrc

I'm using the accepted answer in this post, and as such, tried using the character * in my .vimrc, but it seems to generate E20: Mark not set as...

Asked on 01/01/2021

1 answer

`cd` to the directory containing the current file

Sometimes I gf to a file in a totally different directory and want to check out that new directory. Is there a way to quickly exit vim and cd into...

Asked on 12/31/2020

2 answer

how to use variables in vimscript shell commands

I have this code intended to:read current lineextract variable from end of line, looking for text like #ad04e482search for filename that begins with the string ad04e482open that file to edit...

Asked on 12/30/2020 by alec

1 answer

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP