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).

Popular General Dev topics Top

New
AstonJ
Inspired by some of the comments in our https://forum.devtalk.com/t/your-vim-tips/4748 (in particular those by Mafinar and Hallski) …what...
New
First poster: davearonson
Welcome to the third part of this series aimed to help you unleash a power never seen on Earth using the Almighty Vim. If you don’t under...
New
herminiotorres
Someone where use Doom Emacs right now? I like to starting this topic to discuss it and learn a little bit more, not just only the emacs ...
New
First poster: iPaul
TL;DR: You want to teach yourself vim (the best text editor known to human kind) in the fastest way possible. This is my way of doing it....
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
nirg
So, I actually got my Onivim License Key a while back. Am a Vim user for about 4 years. For me it was never ready enough for getting ac...
New
CommunityNews
This is neither an in-depth article about advanced vim features nor is it an ideology-inducing primer on why the oh-so-powerful god of ed...
New
AstonJ
This was interesting: He’s definitely more of an Emacs fan (which is fine) and the thing I found interesting is how you wo...
New
sona11
I want to declare max of length in case condition i.e 7 but getting a syntax error near select in this code. DECLARE @SQ Int(MAX) SELEC...
New

Other popular topics Top

Exadra37
Please tell us what is your preferred monitor setup for programming(not gaming) and why you have chosen it. Does your monitor have eye p...
New
AstonJ
Curious to know which languages and frameworks you’re all thinking about learning next :upside_down_face: Perhaps if there’s enough peop...
New
AstonJ
Just done a fresh install of macOS Big Sur and on installing Erlang I am getting: asdf install erlang 23.1.2 Configure failed. checking ...
New
Maartz
Hi folks, I don’t know if I saw this here but, here’s a new programming language, called Roc Reminds me a bit of Elm and thus Haskell. ...
New
foxtrottwist
A few weeks ago I started using Warp a terminal written in rust. Though in it’s current state of development there are a few caveats (tab...
New
AstonJ
If you get Can't find emacs in your PATH when trying to install Doom Emacs on your Mac you… just… need to install Emacs first! :lol: bre...
New
PragmaticBookshelf
Author Spotlight: VM Brasseur @vmbrasseur We have a treat for you today! We turn the spotlight onto Open Source as we sit down with V...
New
DevotionGeo
I have always used antique keyboards like Cherry MX 1800 or Cherry MX 8100 and almost always have modified the switches in some way, like...
New
sir.laksmana_wenk
I’m able to do the “artistic” part of game-development; character designing/modeling, music, environment modeling, etc. However, I don’t...
New
AstonJ
This is a very quick guide, you just need to: Download LM Studio: https://lmstudio.ai/ Click on search Type DeepSeek, then select the o...
New