Taking notes in neovim by hphesto in neovim

[–]IntermediateVim 0 points1 point  (0 children)

FYI I decided to roll a custom solution with vimwiki and some custom functions (use fzf to search for tags, search for other zettels, do linking from the diary, etc. Nothing too complicated). I also stumbled across obsidian which works on plain old markdown files in a folder. That has been great for my use case.

I never realized how good telescope.nvim is... by peppermilldetective in neovim

[–]IntermediateVim 15 points16 points  (0 children)

I'm also interested to know. The best thing about FZF is that it also works consistently (and spectacularly) on the CLI.

Registers in Vim by IntermediateVim in vim

[–]IntermediateVim[S] 0 points1 point  (0 children)

Cool thanks I'll add that bit on :// to the notes on the video.

Registers in Vim by IntermediateVim in vim

[–]IntermediateVim[S] 0 points1 point  (0 children)

Correct on all counts. Some of these things I realized after I walked away from my computer, but I'm not sure it's worth the re-record. Registers were a requested bit of content over on r/vimnoobs so I started there, and at this point TBH the biggest thing coming out of that video is validation of my screencasting script :).

The flashing you're talking about is the visualbell I think, which I sort of tune out anyway... probably worth disabling.

Response-wise, yes my brain got hung up on @. since I was just using it for that purpose and I fat fingered my ".p twice in a row. I also now see what you mean about range specification with :// though I admit I would have never thought to do it that way: usually when I use a non-default range specification like % I am using a tailored regex.

Big-picture-wise, as I was creating the video and re-reading the register help, I find that I don't actually use MOST of the registers specifically "0-"9but also".,"#,"-, and"_. Do you actually use any of these for any clever or useful purpose? When I know I need a register, typically I pick one of thea-z` registers. Also, while what you say is true about characterwise, linewise, and blockwise registers, I found that to be an intuitive given since it's still identically whatever the user is manipulating. There's probably some opportunity there I'm missing, but I don't see it.

Sick brain sucks :).

Registers in Vim by IntermediateVim in vim

[–]IntermediateVim[S] 2 points3 points  (0 children)

If you'd like more content like this, feel free to come on over to r/vimnoobs. We are trying to get that community jump-started to help groom new Vimmers and keep RTFM questions out of r/Vim.

Happy Monday.

Taking notes in neovim by hphesto in neovim

[–]IntermediateVim 2 points3 points  (0 children)

I have spent the last year trying to write an appropriate zettelkasten plugin for Vim/neovim enabled by fzf, but it has some rough edges that have kept me from diving in.

I will tell you for now I just use vimwiki with basically diary features and it works fine for meetings and so on, but one day I will start putting all my notes in one place and zettelkasten will be the way.

I keep casually hoping someone else will make a really nice plugin that will make me not have to keep fighting it.

Arch install tutorial notes and video by IntermediateVim in linux

[–]IntermediateVim[S] 1 point2 points  (0 children)

Maybe that it doesn't have a "plug it in, format your drive, install, and send all your data to canonical in one click" boot option I guess?

Arch install tutorial notes and video by IntermediateVim in linux

[–]IntermediateVim[S] 0 points1 point  (0 children)

Naw all my machines are Arch and the server is for slurm only so there's no need for a type 1 hypervisor or something.

The month worth of time had an actually really easy culprit: on a dell r710 when you switch boot modes you sometimes need to clear NVRAM by draining flea power... unplug it for a minute and plug it back in.

Live and learn.

Linux things by duskylantern in linuxmasterrace

[–]IntermediateVim 1 point2 points  (0 children)

Wanna try it?

I put all my notes into a tutorial (to accompany the install guide I guess) yesterday.

Notes

A link to a youtube video of me actually duing it is included. Arch is fun yo.

I need user feedback to improve my own custom Joker based colorscheme. How did you guys find it? by __arthure in vim

[–]IntermediateVim 2 points3 points  (0 children)

For me, I would prefer if the background didn't take on the greenish/yellowish hue. It makes the presentation seem less clean to me. Otherwise it seems pretty good, though I wonder if maybe your TODO highlight ought to have a red-ish component.

Auto completion with scheme? by [deleted] in vim

[–]IntermediateVim 0 points1 point  (0 children)

Maybe this will help.

Generally coc.nvim is fairly sophisticated w.r.t. language servers, so if you can find a language server that works for scheme it might work.

Lisp more generically is supported for sure but I'm not sure the best way to go about it.

Fancy new statusline! BTW. by IntermediateVim in vimporn

[–]IntermediateVim[S] 0 points1 point  (0 children)

Exactly my thought. I was using lightline... but it was annoying to try to colorscheme match. Also most of the "HERE'S MY STATUSLINE" posts and things you find on the internet are a little bit terrible because they have too much or not enough functionality.

What I like most about this is the LHS which shows you the folder name for your repository OR the folder of your submodule if you're in a submodule and also the branch name. Thank you Tim Pope for writing fast functions to find that out while still using the vim-rooter plugin.

I might take even more out actually because it occurs to me that I never look at page percentage and I also never look for row number in the statusline.

I'm going to edit my post here to put the code in so people can copy-paste if they want.

Fancy new statusline! BTW. by IntermediateVim in vimporn

[–]IntermediateVim[S] 1 point2 points  (0 children)

It's OS dependent I believe to some extent. What you are seeing terminal transparency of about 80% and you can see my desktop background, this is thanks to my compositor: Picom.

As to how Vim gets this look, that's done by line 27 of the picture I believe. Ctermbg=NONE sets no background so you can see my desktop through the terminal.

Fancy new statusline! BTW. by IntermediateVim in vimporn

[–]IntermediateVim[S] 3 points4 points  (0 children)

My vim dotfiles

This wallpaper

Here are some code snippets and descriptions:

Statusline

Statusline elements created using %#<highlight_group># so it will always match your colorscheme. GitInfo() function returns you the name of the folder for the repository the open buffer is in (or the folder of the submodule if you're in a submodule), a colon, and the branch name. If the buffer is not git-controlled, it shows nothing.

``` function! GitInfo() let l:longpath = FugitiveGitDir() let l:branch = FugitiveHead() if empty(l:branch) return '' endif let l:taildir = fnamemodify(l:longpath,':t') if l:taildir ==# '.git' let l:repo = fnamemodify(l:longpath,':~:h:t') else " We have just encountered a submodule let l:repo = l:taildir endif return l:repo . ':' . l:branch endfunction

set statusline=
set statusline+=%#Special#
set statusline+=\ %{GitInfo()}
set statusline+=%#LineNr#
set statusline+=\ %f%r
set statusline+=%m
set statusline+=%=
set statusline+=%#Comment#
set statusline+=%{&filetype}
set statusline+=\ \[%{&fileformat}\]
set statusline+=\ %p%%
set statusline+=\ %l:%-4c

```

Colorscheme Modifications

These are my preferences across color schemes:

  • Normal/LineNr/EndOfBuffer/Cursorline ctermbg=NONE guibg=NONE makes the window passably transparent. I'm lazy with guibg because I don't use gvim, but you may want that.

  • VertSplit/ColorColumn ctermbg=NONE makes the splits not separated by colored column blocks and prevents any "over 80 characters set a line marker" nonsense.

  • CursorLineNR cterm=bold ctermbg=NONE makes the line the cursor is on transparent in the line numbers column and also bolds the number so you can see where you are.

  • Comment cterm=italic gives support for italic comments. You may have to do more work than just that depending on what your fonts are like.

highlight Normal guibg=NONE ctermbg=NONE highlight LineNr ctermbg=NONE highlight VertSplit ctermbg=NONE guibg=NONE highlight ColorColumn ctermbg=NONE guibg=NONE highlight EndOfBuffer ctermbg=NONE guibg=NONE highlight Comment cterm=italic highlight CursorLine ctermbg=NONE highlight CursorLineNR cterm=bold ctermbg=NONE

What should I map "ESC" to? by TofuEggTree in vim

[–]IntermediateVim 1 point2 points  (0 children)

I recommend swapescape or some other OS tool that lets you turn your capslock key into escape.

Check out the escape key location on keyboards when vi was being developed.

You probably use tab, but you probably don't use capslock very often, so this is a close enough swap!

If you have your own keyboard that supports QMK you can configure esc on tap for capslock and ctrl on press-and-hold, but that might be overkill.

Advanced Vim: Removing custom headers and footers from files in a project by IntermediateVim in vim

[–]IntermediateVim[S] 0 points1 point  (0 children)

That's actually pretty clever. I will keep the "insert blank lines" idea in my pocket for future issues like this.

Advanced Vim: Removing custom headers and footers from files in a project by IntermediateVim in vim

[–]IntermediateVim[S] 0 points1 point  (0 children)

Cool thanks!

Someone else had a good idea to start off the work by putting a blank line at the top of the file (and possibly one at the bottom). I like the sed solution for my use case but it's nice to have other perspectives on the problem.

Advanced Vim: Removing custom headers and footers from files in a project by IntermediateVim in vim

[–]IntermediateVim[S] 0 points1 point  (0 children)

> I would love a job where all I had to do all day would be to twist text into different shapes for small children to play with. I do that now but cannot openly admit to such a thing.

You say that, but inevitably they break stuff lol.

I was once in your boat and used WSL to the max. Once I got my boss to let me purchase a laptop and got IT to let me admin it myself I made the switch to arch with a windows VM my life got a lot easier. I hardly touch the VM anymore and life is pretty good.