Skip to main content
Share Your Experience: Take the 2024 Developer Survey
4 votes
Accepted

Vim command-line just say 'saved' upon save

You could use the BufWriteCmd to override the write operation: augroup OverrideWrite autocmd! autocmd! BufWriteCmd * silent w | echo 'Saved' augroup END
Vivian De Smedt's user avatar
3 votes
Accepted

Showing virtualedit status in lightline

A component's separator is shown by default, even if the component is empty. To hide it, include the g:lightline.component_visible_condition. From the help: A dictionary to store the visible ...
husB's user avatar
  • 2,113
2 votes

Trying to display current mode leads to vimscript where variable is undefined inside function

The proposition of @LucHermitte is: set laststatus=2 let g:mode2text = { \ 'n' : 'Normal', \ 'i' : 'Insert', \ 'v': 'Visual', \ 'V': 'V-Line', \ "\<C-v>" ...
Vivian De Smedt's user avatar
1 vote
Accepted

How to copy text to clipboard from status bar (statusline) in Vim

You can't copy because set mouse=a gives Vim full control of the mouse. Since this is vi.stackexchange.com, a proper Vim solution would simply be to: disable mouse handling with :set mouse=, select ...
romainl's user avatar
  • 41.1k
1 vote
Accepted

How do you change the window title line text in Vim?

These are buffer names (in case of [No Name] buffer has no name). :h :file_f as in :file my new name instead of base64 gibberish would change buffer name to my new name instead of base64 gibberish. ...
Maxim Kim's user avatar
  • 13.5k
1 vote

How can I disable the terminal statusline in gVim?

You can't disable individual status lines, the :terminal's included. Furthermore… The events TermOpen and TermClose don't exist. Instead of trying random events, find the right ones under :help ...
romainl's user avatar
  • 41.1k
1 vote

Adding Colorscheme to Neovim conditionally?

As D. Ben Knoble suggested, you can wrap it in %{% ... %} and then it will be evaluated as a statusline string!
Marc's user avatar
  • 113

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