AstonJ

AstonJ

Vim And Emacs Are The Most Important Skills You Should Learn

This was interesting:

He’s definitely more of an Emacs fan (which is fine) and the thing I found interesting is how you work with remote servers - on Vim you don’t, you use the terminal to SSH into a remote server and then fire up the installed Vim there to edit files, but in this vid he’s saying with Emacs you ssh into the server from emacs and any files you edit you edit on -your- emacs on your local machine, not one installed on the server. This is interesting!

So does this mean Emacs has a ‘full’ terminal? And will it use my .bashrc or .zshrc automatically? I have lots of functions/aliases etc that I’d want to use. Would be cool if it can do this!

Most Liked

Hallski

Hallski

I have never really explored the workflow in Emacs but I believe if you just open a terminal and ssh from there you will only have that terminal connected to the SSH session. Emacs has support for connecting (similar to VSCode) through TRAMP Mode which from my understanding will cause the normal “find file” etc to act on the remote file system.

On that note, I can recommend you look into using vterm, I have found it to be a much greater experience than M-x term.

You can enable it through .doom.d/init.el (it needs libvterm as well though).

OvermindDL1

OvermindDL1

Emacs can do all that and a whole lot more. There’s a reason the meme about Emacs being its own OS is a thing, lol.

AstonJ

AstonJ

I’ve just tried it but I’m stuck :lol:

I’m using doom-emacs and do SPC :term then I ssh into the server with my usual alias, then when there I navigate to the directory which contains the file I want to open. If I press escape and then SPC I am shown:

If I press . I am only shown my local files, but I want to open one of the files from the server - is there an easy way to do that after having navigated to the folder as I have above? Or can I only open a file as per the video where you must already know the file name and location and use the path while ssh’ing in (in which case it’s not much use to me as it’s much easier then just to ssh into the server normally).

Where Next?

Popular General Dev topics Top

AstonJ
You might be thinking we should just ask who’s not using VSCode :joy: however there are some new additions in the space that might give V...
New
AstonJ
If you would prefer your file tree to be on the right hand side in Onivim, just: CTRL (or CMD) + SHIFT + P Then start to type config th...
New
First poster: bot
Why I Teach vim. The why of why people use vim has been covered fairly extensively, so I thought I would spend a little time explaining ...
New
AstonJ
Please share your favourite Vim tips here :nerd_face:
New
New
ankur
I am thinking of switching to Onivim from VSCode Vim since VSCode Vim supports limited Vim features . Would like to hear from the current...
New
First poster: bot
VIM Clutch is a hardware pedal for improved text editing speed for users of the magnificent VIM text editor (1, 2). When the pedal is pre...
New
First poster: OvermindDL1
It’s Magit! A Git interface inside Emacs Magit is a text-based Git user interface that puts an unmatched focus on streamlining workflows....
New
AstonJ
Anyone seen Neovide? Looks pretty neat! This is a simple graphical user interface for Neovim (an aggressively refactored and updated Vi...
New
First poster: bot
Here’s my (current) minimal setup: set ai nocp digraph ek hid ru sc vb wmnu noeb noet nosol set bs=2 fo=cqrt ls=2 shm=at tw=72 ww=&l...
New

Other popular topics Top

wolf4earth
@AstonJ prompted me to open this topic after I mentioned in the lockdown thread how I started to do a lot more for my fitness. https://f...
New
brentjanderson
Bought the Moonlander mechanical keyboard. Cherry Brown MX switches. Arms and wrists have been hurting enough that it’s time I did someth...
New
New
AstonJ
You might be thinking we should just ask who’s not using VSCode :joy: however there are some new additions in the space that might give V...
New
Exadra37
On modern versions of macOS, you simply can’t power on your computer, launch a text editor or eBook reader, and write or read, without a ...
New
Margaret
Hello content creators! Happy new year. What tech topics do you think will be the focus of 2021? My vote for one topic is ethics in tech...
New
mafinar
Crystal recently reached version 1. I had been following it for awhile but never got to really learn it. Most languages I picked up out o...
New
PragmaticBookshelf
Author Spotlight Jamis Buck @jamis This month, we have the pleasure of spotlighting author Jamis Buck, who has written Mazes for Prog...
New
PragmaticBookshelf
Author Spotlight Rebecca Skinner @RebeccaSkinner Welcome to our latest author spotlight, where we sit down with Rebecca Skinner, auth...
New
Fl4m3Ph03n1x
Background Lately I am in a quest to find a good quality TTS ai generation tool to run locally in order to create audio for some videos I...
New