Skip to main content

Questions tagged [init.vim]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
462 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 ...
1 vote
1 answer
762 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(&...
1 vote
1 answer
113 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 ...
1 vote
2 answers
233 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 ...
0 votes
0 answers
78 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 ...
1 vote
1 answer
401 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/...
1 vote
2 answers
2k 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 "...
0 votes
0 answers
908 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: " ", " ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ", " ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛...
0 votes
1 answer
250 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 ...
3 votes
2 answers
242 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'...
1 vote
1 answer
104 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 ...
1 vote
3 answers
578 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 ...
2 votes
1 answer
250 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 ...