Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [init.vim]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
51 views

mapping <C-x><C-s> to save file in commandline mode

I have a peculiar situation where the value of a number on the nvim screen on which the cursor is sitting gets decremented by 1 when I (often accidentally) hit <C-x><C-s> in commandline ...
user3236841's user avatar
1 vote
2 answers
125 views

How to get embedded Lua syntax highlighting with g:vimsyn_embed='l' to work in Neovim 0.9.5?

I created a test file by launching Neovim using nvim --clean test.vim, then verified the filetype was vim using set ft. Then I set let g:vimsyn_embed='l'. However the following file is still ...
Jonathan Chan's user avatar
1 vote
1 answer
249 views

Error when trying to set Kanagawa colorscheme

I installed Kanagawa plugin using vim-plug. When I tried to change the colorscheme with: :colorscheme kanagawa I got the following error : >- Error detected while processing /home/mmip/.local/...
armandfavrot's user avatar
0 votes
0 answers
74 views

Contextual Snippets not working in inline mathmode of vimwiki

I am trying to use the snippets in math context inside vimwiki filetypes. The math contextual snippets are working fine for ".tex" files, but not for ".wiki" files. However all the ...
vishal rao's user avatar
1 vote
2 answers
547 views

How to replace a space after a word with a line break (new line)?

In Neovim, I used the J command to join lines, and now I'm looking for a keybinding in normal mode that can do the opposite: replace the space after a word with a line break. I've tried a few "...
pwanker's user avatar
  • 11
0 votes
0 answers
643 views

How to display ASCII art in Neovim startup screen without plugin?

Here's the ASCII art image I want to display in nvim dashboard: " ", " ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ", " ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛...
Mega Bang's user avatar
  • 199
2 votes
2 answers
182 views

Lua Conversion: Disable highlight after search when a motion is triggered or when entering insert mode

Author: @purpleP Source: Turn off highlight on CursorMoved and InsertEnter without remapping (doesn't break search operator pending mode) noremap <expr> <Plug>(StopHL) execute('nohlsearch'...
Mega Bang's user avatar
  • 199
1 vote
1 answer
454 views

Conversion in Lua: Detect OS in Vimscript

Related to this post, Detect OS in Vimscript This configuration detects and sets the operating system in Vim. It uses conditional statements to determine if the OS is Windows or Unix-like. if !exists(&...
Mega Bang's user avatar
  • 199
0 votes
1 answer
218 views

I need help updating config code from vimscript to lua

About three years ago, I had gathered chunks of code from the net and made my init.vim config file. Now, with Lua released, I am unable to convert it. And it's down to you folks whether you can help ...
Mega Bang's user avatar
  • 199
1 vote
3 answers
533 views

Quit Vim when Buffer has no name (not :wq or :q!)

There must be a way to change the init.vim / .vimrc so I can quit Vim without saving first (:wq) nor force quitting (:q!). But I only want that behaviour when the Buffer has no name. Why? Because a ...
Bog's user avatar
  • 479
1 vote
1 answer
97 views

How to display multiple changed files on disk in Vim?

Related to this thread, How can Vim tell me which buffer is changed on disk among multiple buffers? This Vim configuration automatically checks for changes in opened buffers and notifies when a single ...
Mega Bang's user avatar
  • 199
1 vote
1 answer
391 views

Make Line Numbers Appear in Documentation

I have set number in my init.vim (I am using neovim) and it works fine for any buffers I'm editing. However, I have to enter :set number into the command line to make line numbers appear in the ...
Jordan Mandel's user avatar
2 votes
1 answer
235 views

Recover init.vim from inside a certain session

I accidentally deleted my init.vim using a rm -rf command. I know that this kind of stuff is irreversible, but luckily I've kept a terminal running neovim open before I've done this madness. Is there ...
sasinhe's user avatar
  • 21