I have a basic understanding of vim, like getting around but I want to know is it possible to delete a specific word in a specific range
Example: From line 3 -7 delete the word "Everyday." where it appears within that range
I have a basic understanding of vim, like getting around but I want to know is it possible to delete a specific word in a specific range
Example: From line 3 -7 delete the word "Everyday." where it appears within that range
Just add g:hlput_enable = 1 to your vimrc
Quarkdown has been really nice to use. So I decided to write an coc.nvim extension for it.
In VS Code, when I type an HTML tag and press Enter, the editor automatically expands it like this:
<tag>|</tag>
After pressing Enter:
<tag>
|
</tag>
Is there a way to achieve the same behavior in Vim? Also, why isn’t this enabled by default?
Wondering if anyone's encountered this issue before, where letters are overlayed onto text when navigating. Only occurs when holding keys, not tapping.
Additionally, lines go back to normal when switching lines (on key press. issue occurs when holding j or k) which I'm assuming is because vim is updating the line or something.
Could it be plausible that it's some issue where my key repeat rate is too high?
I have been using vim in work servers and neovim in my PC for a couple of years.
I don't use any vimrc in the servers and just use pure vim (not even a different colorscheme. All defaults). But at my PC, I have neovim configured with plugins like fzf-lua, LSP, treesitter, heirline (for statusline), nvim-cmp (for completion), fugitive, vim-floaterm, vim-surround, undotree etc.
I want to configure my vimrc with some popular and useful plugins and some alternatives to get almost the same experience as my nvim setup
The main components I'm looking for are lsp (I mainly use c++ and python), code completion, fzf, statusline plugins. What are the most common/recommended plugins for these?
When I was starting to configure nvim back in 2020 or something, as a source of reference to setup your config there were a couple of youtube videos of setting up nvim from scratch (chris@machine) to be an IDE and now there are plugin announcements in the nvim subreddit, nvim kickstart, and other nvim distors which can be used as references. Are there anything like these for vim that you use as references to setup your vimrc?
I'm planning to checkout the following:
[https://github.com/theopn/kickstart.vim\](https://github.com/theopn/kickstart.vim)
[https://github.com/akrawchyk/awesome-vim\](https://github.com/akrawchyk/awesome-vim)
PS: Also, I'm planning on slowly migrating away from nvim to vim everywhere
Say, I have multiple lines like this:
4.5
1.2
7.9
12.0
I want to copy some other text and paste it before all those lines. For example, it could be really long string, but for simplicity say it `v += ` (I know about Ctrl+V Shift+I, but real string could be too big to type) and I want to get this:
v += 4.5
v += 1.2
v += 7.9
v += 12.0
What is simplest way to do that? Something faster than find and replace. I have tried to Ctrl+V, select column and p, but it replaces all first characters.
I really loved the Artemis 2 Lunar Flyby photo album, and decided to make a NASA-inspired Vim Theme to match some of the background photos taken. Now I would love some heavy criticism:
Hi all,
Switching modes on mobile Vim (or Obsidian Vim mode) is a nightmare. Reaching for the tiny <Esc> or Ctrl key on a virtual keyboard breaks the flow entirely.
I realized that relying on a "keyboard layout" on a touchscreen is the problem. What if we use muscle memory and swipe gestures instead?
So, I conceptualized "VimStick" — a floating analog stick (pie menu) in the corner of your screen:
Tap: Force <Esc> (Normal mode) from ANY state.
Swipe Right (→): i (Insert) / Swipe Right-Up (↗): a / Right-Down (↘): o
Swipe Left (←): v (Visual) / Swipe Left-Up (↖): V / Left-Down (↙): Ctrl-v
I made a quick HTML/JS prototype to test the "feel" of it. Try tapping and swiping the floating 'N' button in the bottom right corner on your phone:
https://codepen.io/SeungChan-Lee/pen/dPOPNez
Imagine this as a global floating button over Termux, or an Obsidian plugin. What do you guys think of this UX approach? Has anyone seen a mobile editor implement something similar?