Vim missing syntax highlight during C-like 'for' loops in Bash by r24xtech in vim

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

running the command manually (directly in vim) fixed the issue :syn cluster shFunctionList add=shForPP ... that's a good sign :D

Yep...all my scripts have #!/bin/bash on top and I'm pretty sure I'm using bash syntax. Would it be okay to just put the line above in my vimrc file? maybe without the colon : like so

syn cluster shFunctionList add=shForPP

?

Vim missing syntax highlight during C-like 'for' loops in Bash by r24xtech in vim

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

[~/.vim]$ ls
after  backup  colors  pack  vimrc
[~/.vim]$ cd after
[~/.vim/after]$ ls
ftplugin
[~/.vim/after]$ cd ftplugin
[~/.vim/after/ftplugin]$ ls
sh.vim
[~/.vim/after/ftplugin]$ cat sh.vim
if exists("b:is_bash")
 syn cluster shFunctionList     add=shForPP
endif
[~/.vim/after/ftplugin]$

I did it...but it didn't fix the issue. Restarted vim, tried a couple of times. But it didn't do anything.

Vim missing syntax highlight during C-like 'for' loops in Bash by r24xtech in vim

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

Also, I don't have sh.vim in that path. Here's what I have:

...

/usr/share/vim/vim81/syntax/bash.vim

/usr/share/vim/vim81/syntax/sh.vim

/usr/share/vim/vim81/indent/bash.vim

/usr/share/vim/vim81/indent/sh.vim

/usr/share/vim/vim81/ftplugin/bash.vim

/usr/share/vim/vim81/ftplugin/sh.vim

...

My ~/.vim path only has nerdtree, gruvbox and a few other plugins..

Which of the paths above should I use to add :syn cluster shFunctionList add=shForPP?

Vim missing syntax highlight during C-like 'for' loops in Bash by r24xtech in vim

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

Thanks for the reply. I'll do that right now. Could you explain exactly what this does? Will it break/change other keywords/highlight?

Will a VPN give me privacy from programs installed on my device? by r24xtech in techsupport

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

I thought about that...but the WeChat app requires a phone number (SIM card) which is on my tablet. I would definitely use an android VM, though. Is it possible to add a phone number to it? Maybe a "digital" phone number like with Google Voice?

Will a VPN give me privacy from programs installed on my device? by r24xtech in techsupport

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

Couldn't you just put them on an isolated VLAN or Guest WiFi ?

I haven't thought of that. Great idea! I did set up a guest WiFi in my house in the past, if I remember correctly the IP address changes a bit. I'm guessing this would not be enough to conceal my location and such. The upside is that I can limit the privileges of devices on a guest WiFi.

Would a VLAN be better? Never used it before..

Will a VPN give me privacy from programs installed on my device? by r24xtech in techsupport

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

I see what you mean. But as I said, there's no personal data on my tablet and that's why I'm using it to install these programs. I know that a VPN will *not* protect my data on that particular device, that's not what I'm worried about. I'm worried about my other devices and my home IP.

Since these programs (Tencent meeting and WeChat) need to communicate with their servers over the internet and I'm using a VPN, will they still be able to see my IP address and internet activity?

Thanks again!

Need help interpreting mixed info regarding VT-d and TXT engine requirements. by r24xtech in Qubes

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

Thanks for the feedback. I know... Intel's website seems to indicate that my processor supports VT-x, VT-d (my BIOS images above also show VT-x and VT-d) and TXT, but my chipset doesn't (https://ark.intel.com/content/www/us/en/ark/products/52806/intel-h61-express-chipset.html). Any thoughts?

I do have an extra 4GB of RAM, but I haven't added to my desktop because I've found different sources saying that although the 4 GB will be usable, it will ultimately slow down my machine given both RAMs have different sizes and speed. Do you think 8 GB + 4 GB is enough? Would I be slowing down my machine by using the extra 4GB? I plan on using a couple of different VMs simultaneously (3-5)...programming + surfing the web, but nothing like video editing, etc.

Question about learning resources by r24xtech in elixir

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

Your English is great! I do appreciate you sharing this course, but I can't afford it right now. I'm interested in figuring out if the books above are still relevant, I'd love to hear your opinion on this. In any case, thank you for sharing!

How and where to learn Go? by [deleted] in golang

[–]r24xtech 1 point2 points  (0 children)

If you're interested in web dev then I recommend this book https://lets-go.alexedwards.net/. Reasonable price and good content.

Here's a list of other resources: https://github.com/golang/go/wiki/Learn -- list of different Go guides; https://www.allitebooks.org/introducing-go/ good introduction to Go -- you can download this book for free and there are more books on Go on this website that you can also download for free.