Questions tagged [init.vim]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
27 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
52 views

Contextual Snippets of UltiSnips not working in vimwiki files

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
71 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
137 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
78 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
68 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
152 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
455 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 ...
Pixelbog's user avatar
  • 417
1 vote
1 answer
90 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
301 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
188 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