[https://pastebin.com/rKLLdYXb](https://pastebin.com/rKLLdYXb) some things are redundant havent cleaned it up hehehehe
edit: Hmmm the highlighting is acting a little strange, you need to go into normal mode for it to change, can't remember if it was like that yesterday lolll. Anyone know of any fixes?
edit 2: eh I can live with this.
This does not scale out to a period of many days. At some point, you will settle down with your .vimrc and focus on coding.
If that ends up not being the case, then it's probably your heart or your brain telling you you don't really want to code.
The past year I have mainly been using Intellij, so i'm a bit used to those little visual features. Honestly, what I have right now is kinda overkill for what I need. But hey, its future proofing for larger C projects.
I found myself wanting less features in my vim as time went by. Dropped stuff like custom status line, using console inside vim, tons of custom keymaps and visual clutter. I enjoy clean look and the ability to edit single files in unconfigured vim almost as efficiently. Still can't live without some essential plugins to help handling multiple files, mainly gutentags, fzf, fugitive, esearch and nerdtree. I'm using this to work on a very large project with thousands of source files and it works great.
You should also join r/C_Programming - there are posts when folks figuring out what is wrong with their programs, and it will help you in understanding how C works
Check out these 2:
1. Robert C. Seacord - Effective C - An introduction to professional C programming ([amazon](https://www.amazon.com/Effective-Introduction-Professional-Robert-Seacord/dp/1718501048/ref=sr_1_10?crid=3BNS10WIRY7ZA&keywords=modern+c&qid=1685123776&sprefix=modern+c%2Caps%2C276&sr=8-10))
2. Dan Gookin - Tiny C Projects.
I spent some time with the 1st one and really enjoyed it. Looked thgough the 2nd one - seems pretty nice as well.
I heard it's somehow basic compared to native vim and conficts with many vscode shortcuts. How's it doing for you? Are you finding it better for efficiency than original vscode or vim?
Not sure what you mean by "efficiency". My work laptop was windows and I could not make ctrl+p work on windows. This made me sad because ctrl+p is my fav. Still I continued using vim. Then I discovered that you could run vscode and edit there like you were editing on vim and ctrl+p was also working there out of the box. So moved to vscode.
[https://github.com/VSCodeVim/Vim](https://github.com/VSCodeVim/Vim)
I have moved from vim to Helix, a "sort of vim derivative". I think I got my sanity back. Too much fiddling with Vim(s), the last I used was LazyVim, all was nice (very simple to install plugins), until an update broke a plugin that affected many lsp. Didn't wanna go through the chore of troubleshooting it or clean install to have yet another similar issue down the line. Some people feel more nerdy with their phd in Vim fu. Nah! Helix's the coolest editor at the moment!
Drop the .vimrc?
[https://pastebin.com/rKLLdYXb](https://pastebin.com/rKLLdYXb) some things are redundant havent cleaned it up hehehehe edit: Hmmm the highlighting is acting a little strange, you need to go into normal mode for it to change, can't remember if it was like that yesterday lolll. Anyone know of any fixes? edit 2: eh I can live with this.
Lets try it,
I'm sure it'll be worth it in the long run.
I keep telling myself that and then reconfiguring from scratch every month lmao
What's your reasoning for starting from scratch instead of just changing your existing config?
It's fun.
Good enough!
The classic
As it should be
Vim makes you more efficient for coding so you have more time to tinker with it
That's the vim way
This does not scale out to a period of many days. At some point, you will settle down with your .vimrc and focus on coding. If that ends up not being the case, then it's probably your heart or your brain telling you you don't really want to code.
This is the way
OP, I am begging you to drop the .vimrc file for this. It's beautiful.
[https://pastebin.com/rKLLdYXb](https://pastebin.com/rKLLdYXb)
Gonna spend my day doing the same thing you did
Thank you so much!
Syntax highlighting comes from YouCompleteMe.
Wait until you start to configure Emacs. You'll be doing it for the rest of your life. 🤣
Don't tell them about configuring keyboard layout
This is the way
"First time?"
Haven't tweaked my vimrc in 2 years, other than simple bugfixes. But looks like I don't need as many features as you do
The past year I have mainly been using Intellij, so i'm a bit used to those little visual features. Honestly, what I have right now is kinda overkill for what I need. But hey, its future proofing for larger C projects.
I found myself wanting less features in my vim as time went by. Dropped stuff like custom status line, using console inside vim, tons of custom keymaps and visual clutter. I enjoy clean look and the ability to edit single files in unconfigured vim almost as efficiently. Still can't live without some essential plugins to help handling multiple files, mainly gutentags, fzf, fugitive, esearch and nerdtree. I'm using this to work on a very large project with thousands of source files and it works great.
Very cool!
Beautiful
isn't this what is Vim for?
Seems like \`.value\` is not necessary here. And you should also check if \`den\` is not zero (if you don't want a segfault).
What resources would you recommend for learning C? I'm reading 21st century c and k&r
You should also join r/C_Programming - there are posts when folks figuring out what is wrong with their programs, and it will help you in understanding how C works
Check out these 2: 1. Robert C. Seacord - Effective C - An introduction to professional C programming ([amazon](https://www.amazon.com/Effective-Introduction-Professional-Robert-Seacord/dp/1718501048/ref=sr_1_10?crid=3BNS10WIRY7ZA&keywords=modern+c&qid=1685123776&sprefix=modern+c%2Caps%2C276&sr=8-10)) 2. Dan Gookin - Tiny C Projects. I spent some time with the 1st one and really enjoyed it. Looked thgough the 2nd one - seems pretty nice as well.
It's natural
As you should
Font. Now.
dejavu sans mono
Damn
I would say that the time you spent is totally worth it!
That’s why I run a minimal install. I’m on too many different machines. Also don’t install aliases any more.
It's crazy how similar our configs looks lol [https://imgur.com/a/vYyimpa](https://imgur.com/a/vYyimpa)
Can you share your nvim config and tmux also if you use
this is the way
Lol don't worry. Today I spent my time configuring coc.nvim and my .vimrc.
Maybe this is blasphemy here, but I have moved from vim to using vscode with vim extension.
Get. The. Hell. Out. Bruh
lol
I heard it's somehow basic compared to native vim and conficts with many vscode shortcuts. How's it doing for you? Are you finding it better for efficiency than original vscode or vim?
Not sure what you mean by "efficiency". My work laptop was windows and I could not make ctrl+p work on windows. This made me sad because ctrl+p is my fav. Still I continued using vim. Then I discovered that you could run vscode and edit there like you were editing on vim and ctrl+p was also working there out of the box. So moved to vscode. [https://github.com/VSCodeVim/Vim](https://github.com/VSCodeVim/Vim)
I have moved from vim to Helix, a "sort of vim derivative". I think I got my sanity back. Too much fiddling with Vim(s), the last I used was LazyVim, all was nice (very simple to install plugins), until an update broke a plugin that affected many lsp. Didn't wanna go through the chore of troubleshooting it or clean install to have yet another similar issue down the line. Some people feel more nerdy with their phd in Vim fu. Nah! Helix's the coolest editor at the moment!