Hey @codewithanthony
Thanks for the great video explanations. I was wondering if you could shed some light on the following.
I can't figure out why the comparison in `f2` evaluates to `False`.
Doesn't python evaluate the right hand of the `==` first?
1/ 2
#Python
1
27
Babak retweeted
3 ways to delete in insert mode - build edits you can repeat with dot:
• ctrl-h – Delete previous char
• ctrl-w – Previous word
• ctrl-u – Entire line (except indent)
👉 Read the tip: bit.ly/3onx4CM
📨 Subscribe for more: bit.ly/vimtricks
Babak retweeted
Stanford has released Prof. Manning's NLP course for free (!!!) on Youtube if you are interested in diving deeper into NLP.
It starts with the very basic word2vec and expends to:
-> Domain adaptation for supervised sentiment
-> Retrieval augmented in-context learning
-> Advanced behavioral evaluation
-> Analysis methods
-> More NLP methods
Happy A.B.L <Always Be Learning> y'all!
youtube.com/watch?v=PSGIodTN…
Babak retweeted
Stay in search mode in Vim by using Ctrl-g and Ctrl-t after searching for a pattern, instead of pressing enter. Refine your pattern faster this way.
Read the tip: bit.ly/2Gq6p6u
Subscribe for free Vim tips: bit.ly/vimtricks
Babak retweeted
Quickly add empty lines above and below with Unimpaired 👉 bit.ly/3aC7uDq
[ + space - Add line above
] + space - Below
According to our stats, this is the most hated VimTrick we've published. 🤷♂️
📨 Subscribe for (better) #vim tips: bit.ly/vimtrickspace
Babak retweeted
Vim's gn command will go to the next match and select it. On the blog post, we show how to build repeatable operations by combining this with other commands.
👉 Read the tip: bit.ly/3rUgUS3
📨 Subscribe for more: bit.ly/vimtricks
Babak retweeted
Yeah, so I helped the Excel team with this. Excited that it's out! techcommunity.microsoft.com/…
Babak retweeted
Use g; to jump back to your last change in Vim:
• :changes - Show list of changes
• g; - Jump to previous
• g, - Jump to next
👉 Read the tip: bit.ly/2G0u0dL
🖥️ Watch the tip: bit.ly/31zYqvM
📨 Join for weekly Vim tips: bit.ly/vimtricks
Babak retweeted
Sort lines in Vim:
• :sort - sort all lines
• :sort! - sort in reverse
• :sort u - remove dupes and sort
• :sort i - ignore case
• :sort n - sort numerically
👉 Our tutorial has more ways: bit.ly/3gxMUFm
📨 Subscribe for weekly Vim tips: bit.ly/vimtricks
Babak retweeted
Data structures form the foundation of programming.
Here’s a straightforward guide to get you started (with visuals):
Babak retweeted
Jump between methods or functions in Vim with ]m:
• ]m jump to beginning of next method
• ]M end of next
• [m beginning of previous
• [M end of previous
👉 Read the full tip: bit.ly/31aCtDo
📨 Subscribe for weekly Vim tips: bit.ly/vimtricks
Babak retweeted
Did you know you can access man pages from Vim?
• leader K - Press with the cursor on any word to open the man page for that command
• :Man command - Open that command's man page
👉 Use cases on the blog: bit.ly/30f2aS9
📨 More Vim tips: bit.ly/vimtricks
Babak retweeted
Use to undo all your changes in insert mode, but stay in insert mode.
I like this better than using and u and then reentering insert mode.
Read the tip: bit.ly/36zOCEq
Subscribe for more tips like these: bit.ly/vimtricks
Babak retweeted
Change case inside a substitution pattern:
• \U – uppercase everything after
• \L – lowercase
• \u – uppercase next char
• \l – lowercase
• \e or \E – stops changing
👉 Read the tip: bit.ly/2Joqo78
📨 Sign up for our Vim tips newsletter: bit.ly/vimtricks
Babak retweeted
Extract lines from a file by visually selecting them and then using :w path/to/file
Then reselect the last visual selection with gv and press d to delete.
👉 Tutorial: bit.ly/36SvyAb
📨 Subscribe for weekly Vim tips: bit.ly/vimtricks
Babak retweeted
Use & in your replacement patterns to insert the matched text. For example, adding markdown links to URLs:
%s/https.*/[&]()/g
👉 Read the tip: bit.ly/35pafab
📨 Subscribe to our newsletter: bit.ly/vimtricks
Babak retweeted
Did you know Vim can read and edit Zip and other archives out of the box? Works with gzip, tar, and even files that use Zip under the hood like xlsx and docx!
👉 Read the post: bit.ly/31J7vlG
📨 Get our newsletter: bit.ly/vimtricks













