VIM - Vi IMproved

1202 readers
1 users here now

For Vim enthusiasts and anyone interested in Vim/Neovim!

"VIM is the greatest editor since the stone chisel." - Dr. Jose Unpingco

#HJKL

founded 2 years ago
MODERATORS
26
 
 

cross-posted from: https://latte.isnot.coffee/post/288501

ALE gives me a warning when I use gtk

#include <gtk/gtk.h> /* E: gtk/gtk.h: No such file or directory

This is probably happening because ALE isn't using my compiler flags gcc $( pkg-config --cflags gtk4 ) -o program main.c $( pkg-config --libs gtk4 ) that I stole from the gtk documentation. These compiler flags allow gcc to find gtk/gtk.h even though it is in gtk-4.0/gtk/gtk.h

How do I make ALE aware of my compiler flags?

27
 
 

TJ made a nice video about how to start with neovim and its configuration. I hope that this link is not against the rules since it's about neovim and not about vim .... Personally I find those 2 very very alike and with the features that I need for my daily work, I can use either one of them without noticing any difference.

https://www.youtube.com/watch?v=stqUbv-5u2s

Enjoy !

28
 
 

Hi fellow vimmers (and neo-vimmers).

Since “The Great Reddit Rebellion” I’ve found myself not wanting to go back to Reddit, together with Twitter blocking anonymous scrolling it was the push I needed to finally move to the Fediverse and get rid of corporate social media.

After a few days of being a nomad and trying different instances I found SDF and immediately felt home (I even opened a shell and became an ARPA member).

I am posting this here as I’m an avid (neo-)vimmer myself and the author of a few neovim lua plugins.

Something which irked me a bit on Reddit is the animosity between the vim and neovim subs, doesn’t make a lot of sense IMHO given we’re already a very small and niche community.

Would really love to see this place flourish and become the new home to both vim and neovim reddit refugees.

Content is important, I’m gonna try to do my part, in the meantime I’ve attached a link to a fairly popular vim cheatsheet, being the author I’m a bit biased but it’s pretty pretty good :)

To a decentralized, non-commercial internet, cheers!

29
 
 

Does anyone have experience using GNU Stow for managing dot files? I'm especially interested in using it to build a git repo to include my .vimrc file so I can sync it between hosts.

I know I've seen other methods, such as making your home directory a bare git repo, so you can check-in your config files without moving them. There is also the chezmoi golang project.

How do others sync .vimrc between hosts?

30
11
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 
 

TL;DR: I use a vim like editor which tackles Vim's greatest weakness: vis.

31
 
 

Has anyone ever tried to use vim on a non qwerty layout? I've always been interested in colemak but having to possibly re-bind every single key for vim is daunting.

32
 
 

Wow, I'm surprised that there is not a single post in here yet. Let's this to be the first one. I'm using NeoVIM tbh but we all know where we came from, right ?

33
 
 

Generalize Orgmode to Markdown and any Folding structure in Vim and Neovim. Supports Org, Markdown and any Folded file.

See the repo for more information.

Features :

  • folding based on headings in org and markdown files
  • headings based on folding in folded files
    • you can handle your folds like headings in orgmode
  • navigate in headings or list items hierarchy
    • next, previous : any level
    • forward, backward : same level as current one
    • parent heading, upper level
    • child heading, lower level :
      • loosely speaking : first headline of level + 1, forward
      • strictly speaking : must be in the current subtree
    • go to another headline with prompt completion of full path
  • modify headings or list items
    • new headline or list item
    • select, yank, delete subtree
    • promote, demote heading or list item
    • move subtree up or down
    • move current subtree in another one (aka org-refile)
    • cycle todo status
  • headlines
    • tags
  • lists
    • cycle list item prefix
    • toggle checkbox
    • checked boxes ratio on parent item
  • tables
    • inside of table : align columns
      • also works with multibyte characters
    • outside of table : align following a pattern
    • go to next or previous cell
    • go to beginning or end of cell
    • duplicate above cell content to current one
    • select cell content
    • add new row, colum
    • delete row, colum
    • move row up or down
    • move column left or right
  • links
    • store url at cursor
    • create link with url completion
    • goto link under or close to cursor
    • goto next/previous link
  • expand shortcut to template (aka org-structure-template)
    • markdown support limited to code blocks
  • insert timestamp
  • insert unicode character
    • refer to autoload/organ/unicode.vim to see available chars
  • insert result of vim or python expression
  • export in another format using
    • pandoc
    • emacs
    • asciidoc or asciidoctor
    • view exported document
  • convert headings and links org <-> markdown
34
 
 

Vim actually feels natural...

... to people who use vim.

35
 
 

as title says :-). Time to start posting some .vimrc / .nvimrc snippets.

36
5
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 
 

Like many others, I am a huge fan of vim and with the recent Reddit blackouts I thought this would be a great opportunity to explore alternatives for enthusiasts who - aside from in r/vim and a slightly dead [email protected] - could use some more support!

This community offers more hands on and personal resources and discussions that might bring others along in the path of learning and using vim to code (write, etc.) some amazing things!

If anyone has the direct contact of the mods who currently run r/vim, please let me know and I would be happy to appoint them as mods here as well.

Thanks!

max~┌(・。・)┘♪

37
38
 
 

Do you guys prefer visual cheat sheets better? I found this one to be very comprehensive.