Community Digest

Top new questions this week:

What does breakat&vim mean?

I'm trying to understand this SO answer. The snippet reads: :set nolist wrap linebreak breakat&vim

formatting whitespace line-breaks  
user avatar asked by John Schmitt Score of 6
user avatar answered by Vivian De Smedt Score of 8

How can I create mappings to execute specific Vim commands, depending on if a makefile exists?

In general, I have makefiles setup anytime I'm working on C projects. To save and compile these projects, I've bound the ' key to do this: map ' :wa<CR>:!make<CR> However, I sometimes ...

vimrc key-bindings make  
user avatar asked by user45331 Score of 3
user avatar answered by Maxim Kim Score of 6

Cannot open terminal ini nvim

I installed Plugin terminal using the vim-terminal plugin and try to execute :TerminalSplit bash but before the terminal open I got a warning message. Python 2 interface is not installed, using Python ...

vimrc vimscript neovim terminal linux-ubuntu  
user avatar asked by Muhammad Fhadli Score of 1
user avatar answered by TornaxO7 Score of 0

Navigate arglist via filename?

I like doing things like :b css to jump to the single css file I'm working on. But of course this only works if I only have 1 css file in a buffer. I'm under the impression that it is not possible to ...

buffers argument-list  
user avatar asked by Aaron Parisi Score of 1
user avatar answered by romainl Score of 3

why setting as autocmd

To display linenumbers, I can do: :set number in the edited file (that works) or insert set number in the .vimrc (that works too). To change the filetype, I can do: :set filetype=c in the ...

vimrc  
user avatar asked by longtrousers Score of 1
user avatar answered by Vivian De Smedt Score of 1

How to find the timestamp of changes in Vim?

I am aware of the undofiles in Vim but they are binary and I don't know how to read them. I tries strings but it didn't help for my purpose. I am also aware of the :changes command but that only gives ...

undo-redo changes  
user avatar asked by yukashima huksay Score of 1
user avatar answered by Vivian De Smedt Score of 1

<Tab> out of insert mode - lua keymap

I'm a relatively new neovim user. I use nvim-autopairs to always induce matching (, [, {, ', " character pairs, and automatically placing my cursor inside them. As an example, in insert mode, if ...

key-bindings neovim insert-mode  
user avatar asked by user4687531 Score of 1
user avatar answered by TornaxO7 Score of 0

Greatest hits from previous weeks:

What is the difference between autoindent and smartindent in vimrc?

I read the wiki entry on vim source code indentation I still can't understand the difference between autoindent and smartindent It seems they do the same thing, copy the indentation level to next ...

indentation  
user avatar asked by Aaron Shen Score of 56
user avatar answered by guntbert Score of 45

How to edit binary files with Vim?

Is there a way to edit binary files in some kind of hexadecimal mode? For example if I have some binary data shown by xxd or hexdump -C like this: $ hexdump -C a.bin | head -n 5 00000000 cf fa ed ...

filetype binary-file  
user avatar asked by janos Score of 110
user avatar answered by Martin Tournoij Score of 116

How can I change the indent size?

I just discovered I could indent and un-indent easily in Vi with : << and >> By default it adds a tab character. Now I'm wondering, could this be to a number of spaces via a configuration in my ...

indentation  
user avatar asked by J. Chomel Score of 58
user avatar answered by statox Score of 65

How can I show relative line numbers?

A lot of vim commands can take a number referring to the number of lines that the command will act on. Is it possible to show the line numbers relative to the current line? Something like the ...

line-numbers  
user avatar asked by Nick J Adams Score of 97
user avatar answered by Collin Peters Score of 118

What is the Vim8 package feature and how should I use it?

Vim 8 was released today and the release notes mentions a new "package" feature. What is it and how should I use it? Most importantly, does it replace the good old plugin managers?

plugin-system vim8  
user avatar asked by statox Score of 148
user avatar answered by statox Score of 106

How can I change the font size in gVim?

Is there a way to change the size of the font in gVim, using native commands? And if not, what script can be used to do it quickly?

gvim font  
user avatar asked by glS Score of 75
user avatar answered by pkout Score of 59

How to switch between buffer and terminal

I have a vim's buffer and a terminal in the same vim's window but each time switch to terminal I can only exit it to go back to vim's buffer, Is there a way to keep terminal session but be able to ...

vim-windows terminal-buffer  
user avatar asked by Tuyen Pham Score of 16
user avatar answered by Tuyen Pham Score of 19
You're receiving this message because you subscribed to the Vi and Vim community digest.
Unsubscribe from this community digest       Edit email settings       Leave feedback       Privacy
Stack Overflow

Stack Overflow, 110 William Street, 28th floor, New York, NY 10038

<3