Pimp my *nix
https://luc-sydney-georges.medium.com/pimp-my-nix-2e74b229a080
https://redd.it/kv0drd
@r_vim
How to view the full ALE lint message?
Please excuse the noob question.
Sometimes the lint message is too big for the command line, how to view the full message?
As per the documentation, ALEDetail should show me the info but nothing happens when I put that command in.
https://redd.it/kuwflj
@r_vim
How to move coc.vim diagnostics to the bottom (I mean, airline, the bar where you type commands, etc)?
While I had Ale (another linter for vim) I was able to move the diagnostics to the bottom where airline in the (bar where you type commands) using a simple command like:
let g:movediagnosticsairline = 1
However, Ale made my vim bug for some reason, and so I switched back to coc.vim, and I wonder if can also do the same bar moving thing with coc.vim modifying the `coc-settings.json` file (config file dor coc.vim).
Hope you got it, if not, this image summarizes what I want to accomplish:
​
coc.vim diagnostics - current location vs where I want them
​
Thanks in advance!
https://redd.it/kusylt
@r_vim
What are my options for cross platform plugin development?
I have plans to create a plugin that integrates an external file editor sync for a game dev tool. Its a fairly simple project of just tossing the relevant log info per file into the Vim's command window or something similar (haven't decided). After thinking about the choices I can use I'm more confused about which path I should go. The options I've thought of are:
OG Vimscript: Pros: everyone would be able to use it without issue. Cons: its kinda obtuse from my experience, and not particularly fun to work in imo. Its also slower than others, but not an issue in my case
Vimscript 2: Pros: much faster, more features, less obtuse. Cons: not ready, Vim only leaving NeoVim users in the dust
NeoVim Lua: same as Vimscript 2. I would be abandoning Vim users and its also not ready
Python: Pros: Python! Quite easy to use, fast enough for my needs Cons: Python :(. While most users might not have issue, Python can have some annoying requirements, particularly depending on the OS/distro used and it seems like a huge ask for end users to figure out
That basically leaves Vimscript. Am I missing any other option to sink into? There are options like coc.nvim, but I doubt many users would want to deal with that just for a simple plugin like I am planning. If I went that route I'd rather just making a proper language server for it and that's way outside of my scope
https://redd.it/kul8mt
@r_vim
I want to learn!
Complete beginner, is there any resource out there that you guys believe is the best step by step tutorial. I just need something someone can vouch for. Ideally, something that can sort of hold my hand like a baby and teach me the ins and outs from the beginning. There so many videos and resources its hard to pick one.
I appreciate any help and/or advice!
https://redd.it/kuk9pm
@r_vim
Vim Easy Motion or Vim Motion?
I am familiar with basic vim motion commands, and recently I saw vim-easymotion, it seems I can move with less keystrokes. At the same time, I don’t want to forget basic vim motion commands by using vim easy motion. I wanted to know your feelings about vim-easymotion, do you suggest it? Ofcourse my question is for the ones using this plugin 🙂
https://redd.it/kuckdi
@r_vim
JavaComplete2 live autocomplete not working
Hello all, I am a complete vim beginner here so I apologise if my question sounds ridiculous.
I recently installed javacomplete2 by artur shaik and in the demo, there was a live autocomplete. However it does not work for me. What should I do to enable this feature? I have vim with python installed and jdk 11.0.9.1.
https://redd.it/kubxnb
@r_vim
Am I the only one who find Vim easier than Nano/Emacs
Hi everyone,
I don't know why but I find the key bindings of Nano/Emacs really confusing.When I found vim , it was easy as well powerful for me to do alot of things.It took about 1hour to learn the basics of vim thanks to vimtutor.I guess that's just my personal preference. When I tried to use emacs , I got lost in it.I didn't understand where to even start while on vim,I can just hit "i" and I got a clean screen to write everything.I am not trying say that others are bad or anything like that.It's just my personal preference and want to know if anyone has similar experience.Also I use vim keybindings on bash and :xa instead of :wq. :p
https://redd.it/kuai8e
@r_vim
What plugins do you predict will be integrated and shipped with Vim?
Basically what the title says.
Also, if I were a plugin author and one of my plugins was popular, how would I go about suggesting my plugin be integrated with Vim? Where would I suggest it? And also, where can I, as an user, see what plugins are being considered by Bram?
https://redd.it/ku58la
@r_vim
Key Remapping on vim
I've seen a lot of people discouraging key remapping, but I'm going to have to do it anyway (or use VSCode colemak vim) because I use colemak. I saw another key layout that I thought looked amazing, but it wasn't vim so it had a lot of unused keys because it didn't have as many features.
I was looking to remap the keys on vim so that I could have the right-hand navigation directionally oriented, instead of home-row oriented like the image. Another pro to this would be that because the right hand is navigation, that means the left hand is commands so I will be able to put the most needed commands in the most convenient spots in the home row, instead of having the commands placed based on of the letter that they start with. this lets you have the default z and v be your undo and paste commands instead of
NEIU Mode VSCode layout for colemak \(not vim\)
1. Do you have any objections?
2. Is remapping reliable or is it buggy where it can sometimes fail (just like AutoHotkey doing i::a I think or something similar makes it press the wrong one 1 in 20 times or so)?
3. How would I do this correctly, and is it simple or is it complicated?
4. is it possible to also remap the keys on vscode extension vim and also cvim
Side Note: to have the hjkl arrow keys on colemak I would already have to remap quite a few keys to change it to hnei (otherwise my hjkl on colemak will be where your hynu keys are on qwerty) and it also removes a lot of the main characters because colemak puts common keys in the home row instead of qwerty putting useless characters there, so a lot of the keys won't even have the correct letter if I remap it to hnei so I might as well go all out because it won't even have the letter associations anymore
https://redd.it/ktzeq2
@r_vim
The Most Popular Programming Languages - 1965/2020 - New update - Statistics and Data
https://www.statisticsanddata.org/most-popular-programming-languages/
https://redd.it/kttshm
@r_vim
Two liters are conflicting and are causing vim to bug and to be slow, but I don't know which one is the other linter. How can I know which linters am I using?
So, I just changed to Ale in order to get a better linter, and I totally love it! however, is causing some conflicts with the previous linter I had. I'm not quite sure what the linter is because it seems to be like a built-in one that came with x plugging and I never really bothered myself questioning where did It come from. Anyways, this is what is happening:
​
​
linters
In the above image, the issue of all 4 lines is a simple "var is not being used" issue, and in this case:
🍍 = is ale
⚠ = the other one
​
This is the list of all the plugins I have installed:
" Pluggins
call plug#begin('~/.vim/plugged')
Plug 'gruvbox-community/gruvbox' "ofc not this one
Plug 'dense-analysis/ale' "not this
Plug 'mbbill/undotree'
Plug 'vim-utils/vim-man'
Plug 'mbbill/undotree'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' "not this
Plug 'euclidianAce/BetterLua.vim' "not this
Plug 'nvim-treesitter/highlight.lua' "not this
Plug 'ctrlpvim/ctrlp.vim' " fuzzy find files
Plug 'scrooloose/nerdcommenter'
Plug 'majutsushi/tagbar' "not this
Plug 'ryanoasis/vim-devicons' "not this
Plug 'cskeeters/javadoc.vim'
Plug 'junegunn/goyo.vim' "not this
Plug 'junegunn/limelight.vim' "not this
Plug 'vim-airline/vim-airline'
Plug 'Dinduks/vim-java-get-set' "inot this
Plug 'Yggdroot/indentLine' "not this
Plug 'tpope/vim-commentary' "not this
Plug 'preservim/nerdcommenter' "not this
Plug 'sheerun/vim-polyglot'
call plug#end()
(side note: the ones that have `"not this` are the ones that I can truly affirm are not the ones causing the conflict)
Any guess of which one is the impostor?
https://redd.it/ktu63x
@r_vim
frequently edited file
Hey guys, I have a file, a sort of a daily report, that I edit very frequently. Honestly, I've been just editing it with notepad, but I soon realized that vim is still the way to go. Problem is, I don't wanna specify the full path or change to the right directory in cmd every time. Will adding the file folder to my path solve the problem?
(bonus question- How does the same thing apply to linux?)
https://redd.it/ktoh5s
@r_vim
Run a vim command in loop each N seconds ?
Is this possible in Vim, hopefully in command mode (:
) directly ?
I simply would like to reload the file continuously like a watch less
but within the vim session. So e.g. running :e!
every 2 seconds.
https://redd.it/ktd2kw
@r_vim
i need help to set up vim for python
hello. ive researched this alot yet i am lost. i cant even find the vimrc. i am on manjaro and cant follow most tutorials as theyre for ubuntu. (im a beginner)
i simply want to set up vim to become something like an IDE for python. thats it. is there a dummy tutorial for this?
i understand if i copypaste a vimrc, vim will automatically download all plugins in it. which vimrc do you recommend. and what is the EXACT path where vimrc should be???
https://redd.it/kuyszv
@r_vim
Is it possible to get MacVim to remember what it had open and auto-recover on a machine crash?
My daily driver Mac has become crashy lately and while that's hardly Vim's fault, Vim's behavior on coming back up has become noticeably inadequate next to other applications, many of which seem to remember exactly what was last open, and some of which can bring the pre-crash state directly up. Is there some way to get Vim to do either? Or both?
Failing that, is there some way to change the behavior when it finds a swap file? I'd like to only be prompted to recover if the swapfile is different from the saved state (if they're the same, it'd even be nice if the swapfile was automatically deleted).
https://redd.it/kutr8b
@r_vim
Vim (Software Architecture)
https://se.ewi.tudelft.nl/desosa2019/chapters/vim/
https://redd.it/kuksao
@r_vim
Living without a lock on CAPS.
https://youtu.be/2loKk00licM
https://redd.it/kukk84
@r_vim
How to quit ... the terminal?
I use built in terminal to test run what I write:
:t python -i main.py.
Ctrl+D closes this terminal, but requires confirmation of exit.
How to set vim to quit terminal on single press?
Or maybe it's not advisable, and the original way is better?
https://redd.it/kuhk1w
@r_vim
I'm having to press Enter on undo. When and why does it happen? I can understand that it's something in my settings, but I'm having a hard time figuring it out.
https://redd.it/kuekrk
@r_vim
Example of compileflags.txt for windows
I have setup coc.nvim and installed coc-clangd. It asked me to install clangd 11, and I did so. But opening a C++ file gave me lots of errors, like no header file found, etc. I read online and understood that I need to have a compile\commands.json or compile_flags.txt in my root folder. I found that compile_flags.txt is a bit more simple to write. But I dont have an idea as to what flags to write in this file. Can anyone give an example of compile_flags.txt ? Like how to give the directory of include files, etc. Thank You ! I am new to C++ so forgive me if I am wrong.
https://redd.it/kud8dz
@r_vim
Interviewer: So what all languages do you speak?
Me: English, Spanish, a little bit of French and Vim.
Interviewer: You're hired.
https://redd.it/kubl2u
@r_vim
Send visual selection over UDP?
Hi folks, I'm having a devil of a time googling this because of overloaded terms. I would like to be able to visually highlight a selection, and have said selection be sent out to a listening port on the same machine as udp. (I want the text to appear in Max/MSP). Does anyone know of scripts or plugins that do this before I start reinventing the wheel here? thanks!
https://redd.it/ku4wwf
@r_vim
Looking for a theme and an article
Hello, I remember reading a post about a simple black, white and red vim colorscheme and a link to a blog post illustrating similar color usage in design and art. But can't find it anymore, any idea ?
https://redd.it/ku5fwf
@r_vim
I need user feedback to improve my own custom Joker based colorscheme. How did you guys find it?
https://redd.it/ku0553
@r_vim
Using (neo)vim for C++ development
https://idie.ru/posts/vim-modern-cpp
https://redd.it/ktunzj
@r_vim
FizzBuzz using Vim ( I really love the dire possibilities of vim)
https://youtu.be/vJ8Mo40j4SQ
https://redd.it/ktrv8v
@r_vim
My Setup For Using Vim and The Shell with Orgmode
https://youtube.com/watch?v=Gh9kjvRGC7s&feature=share
https://redd.it/ktgeku
@r_vim
Mapping to create a PDF from vimwiki markdown with Pandoc
I take all my notes with vimwiki (and ultisnips) and I frequently find I need to send those notes to people who do not find markdown very friendly (windows userland).
I finally broke down and made the following mapping which maybe someone else who is just starting with vim will find useful:
" Fancy write markdown to PDF for dissemination
nnoremap <leader>w :!pandoc %:p --pdf-engine=xelatex --to=pdf -o ~/%:t:r.pdf<left><left><left><left>
nnoremap <leader>W :!pandoc %:p --pdf-engine=xelatex --to=pdf -o ~/%:t:r.pdf<cr>
.vim/after/ftplugin/vimwiki.vim
and you are good to go!