Hot answers tagged

6

When you use the += operator, you actually ask vim to append some new values to the statusline variable. When you first open Vim statusline is set to an emtpy value so adding %.35f to it give you the expected behavior. However when you source your config again, nothing empties the variable so you keep adding duplicate values to it. Thus you probably want to ...


4

Neovim sets smarttab by default, which will cause this behaviour. Try turning it off: :set nosmarttab


2

I believe Vim should not modify your current locale except for LC_NUMERIC, LC_CTYPE and possibly LC_MESSAGES. The reason being, that LC_NUMERIC is needed for handling floating point numbers and LC_CTYPE is needed for handling character classes and similar things for multibyte characters. You can query the output of the locale inside your vim using the :...


2

Per :help airline, the default value of things airline will filter out of the buffer list if not otherwise specified by the user is: let g:airline#extensions#tabline#ignore_bufadd_pat = '!|defx|gundo|nerd_tree|startify|tagbar|term://|undotree|vimfiler' ...where ! and term:/ are the respective ways of identifying terminals in VIM and Neovim respectively. ...


1

I believe the problem you're having is due to the command being registered with -buffer, which means it's only available in buffers of filetype "elm" and for some reason are not available in the autocmd. Why that is happening, I can't really tell... The event you're using (BufWritePost) is a buffer-specific example and I'd also expect it to run while the ...


1

Looks like you try to add an autocommand but remove it instead: 3. Removing autocommands *autocmd-remove* :au[tocmd]! [group] {event} {pat} [++once] [++nested] {cmd} Remove all autocommands associated with {event} and {pat}, and add the command {cmd}. ... Try it without exclamation mark. Also, generally it is a good ...


1

This is default behaviour of Vim. Vim notices, the buffer has been modified and just warns you of quitting and (possibly) losing your changes. This is done by setting the modified option for the buffer you are currently editing. However, despite its name, it does not mean that the current buffer differs from the state on disk, but rather whether a change ...


Only top voted, non community-wiki answers of a minimum length are eligible