Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

The tag has no usage guidance.

1
vote
0answers
21 views

Set different values for non-current and current statuslines

When vim is split into different panes horizontally, each pane has its own statusline. It's easy to highlight the statuslines differently based on current and non-current panes. BUT, I cannot figure ...
1
vote
0answers
27 views

Difference between &g:filetype and &filetype

Right now I have a python (*.py) file buffer open in a vim session. I also have the plugin startify installed. Now when I run the Ex-command: echo &g:filetype` I get startify. However, When I ...
0
votes
0answers
48 views

Neovim stopped taking into account my tabstop setting all of a sudden

I was coding in Neovim, when out of the blue I realized the default 8 spaces were being typed when pressing tab instead of the 4 spaces I have set in my init.vim (I still viewed the tabs that were ...
0
votes
1answer
25 views

Vim not using variable value when changing a setting

I have the following vimscript: let g:base_path="~/.config/nvim/" let g:plugins_path=base_path."plugins/" let g:repos_path=plugins_path."repos/github.com/" set runtimepath+=g:repos_path."Shougo/dein....
0
votes
1answer
314 views

Can I set multiple 'options' with a single `:set` command spread over multiple lines?

Is there any way to set options typed on multiple lines with a single :set command? Here is a part of my vimrc: se nu se sm se hls And as you see, I have se on every line in which I set an option. ...
3
votes
0answers
56 views

why does cpo-=c cause perceptual “lag?”

I'm using a CursorMoved autocommand with searchpos to do highlighting of special words. I've been using set cpo-=c to handle possible overlapping matches, and I restore it afterwards. This set seems ...
1
vote
2answers
97 views

There is no timeout on option

According to: this wiki & :help timeout in vim when I set this option: set notimeout ttimeout ttimeoutlen=200 It should set a keycode timeout in 200ms when I add this in my .vimrc file But ...
1
vote
1answer
59 views

How do I `set <A->>=foo`?

Due to my terminal emulator, I trying to remap ^[(key) to <A-(key)> with the > key. How do I do a set for Alt + >? I'm trying to run: set <A->>=foo But I get: E846: Key code not ...
1
vote
1answer
70 views

backupskip with { curly braces

There's a project where I don't want Vim to write in a temp buffer and rename, because my files are watched by another program for writes (and not renamings). I've tried this in my .vimrc: set ...
10
votes
1answer
498 views

How can I edit my Vim configuration whilst working in Vim?

I am new to Vim and I want to be able to edit scripts with my keyboard bindings and other Vim settings while still working in Vim. For instance I would like all most of my set xx commands to be in ...
11
votes
2answers
802 views

How to apply a setting in all open tabs and windows?

Is there an option to apply a setting in all tabs and windows, e.g. apply :set number to all open tabs?
4
votes
1answer
163 views

Use includeexpr to make multiple changes

I know that gf will use includeexpr to modify the name and make another attempt to find said file. However I need to make two modifications to the term being used to seed the search (i.e., the text ...
2
votes
1answer
665 views

set completeopt=noinsert fails

I use the auto complete function from this stackoverflow page. It works fine on my pc and notebook but it fails on my raspberry pi with this error: line 28: E474: Invalid argument: completeopt=menu,...
4
votes
2answers
3k views

Does “set” command affect only the active buffer?

I have two buffers in vim: :ls 1 %a ".vimrc" line 1 2 #h "script.sh" line 1 Press ENTER or type command to continue As seen above, I'm on the first ...