Posts by SergioAraujo • 111 points
5 posts
-
0
votes2
answers12143
viewsA: How to change the Linux time by the command line?
I was able to make a script that uses the command "doas" which runs root commands without password, I could only get the time right site='https://www.horariodebrasilia.org/' dia=$(curl -s "$site" |…
linuxanswered SergioAraujo 111 -
0
votes3
answers280
viewsA: How to Show the file path opened in VIM
In normal mode press 1Ctrl-g
-
1
votes4
answers416
viewsA: How to remove multiple blank lines in sequence with vim?
I created two functions in my ~/. vimrc The first aims to execute commands without changing the position of the cursor and search records, because when we locate consecutive blank lines in order to…
vimanswered SergioAraujo 111 -
0
votes6
answers3344
viewsA: How is an agile way to add and remove code comments in VIM?
The most complicated in my opinion are the multiline comments, if the file has many lines staying doing visual selection goes against the principles of vim. The Global command provides us with an…
-
0
votes2
answers7285
viewsA: How to paste clipboard text into vim?
If I’ve been using Linux you have an "extra clipboard" called visual Selection, any selection with the mouse puts the selected content in it, to paste this content into the Insert mode do: Ctrl-r *…
vimanswered SergioAraujo 111