From nobody Thu Feb 29 12:50:35 2024 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TlrgF3Tw8z5C6rJ; Thu, 29 Feb 2024 12:50:49 +0000 (UTC) (envelope-from simon.n.connah@protonmail.com) Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch [185.70.43.16]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "protonmail.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TlrgD6qq3z4NNr; Thu, 29 Feb 2024 12:50:48 +0000 (UTC) (envelope-from simon.n.connah@protonmail.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1709211044; x=1709470244; bh=ongQSZFetJgaRsX8OEddOVSXcrUfcU17hxVibNlUE0U=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=gb8sCltztSd0WkbZ4kJ3TcdPc5zoF1EjyvshRrpWFuHmgmEC6QVBcRXOoydKb9hrC RkE5EoVs+iYB59VzoBI7Akcup+i3H/pREpmGJg+UaGLM7Lhn+6ywrA51m4SBjyCX7L vWK2oph3xhxO4rgKNP/V8WIDn0K7Y9CmEnwThAGWyhQPs4Wzn1DqE8+4YNyEGa7Ure Oh7+nzS48TQzo6fBz56oM6yh/n++4lCJF2Vcg/Uu4FGQZKUfDHFdeWt4xHhjqOcq5i S2XBv91dhp8dKk/uAIIEAjq2EJ/4UEJGWg4G9f/DdgPL2T1HKKTN1wlHKq1vX6L50J TeKUyXRnCMXwQ== Date: Thu, 29 Feb 2024 12:50:35 +0000 To: Alexey Vyskubov From: Simon Connah Cc: questions@freebsd.org, freebsd-questions Subject: Re: Remote development with neovim, tmux and SSH from macOS? Message-ID: <8kgWaMVLQfVPdhmRkh3T-WGZstgZua_5iYfJYL4ooIecXZwZq00xpYeOkFodtKwxfOGlUInlt5Ttz4A9R4ae85RGRX1M1vyrukwj65VwjYY=@protonmail.com> In-Reply-To: References: <6-vIFoipZvllLfrAwkIMmQ72B1mFYwcw7IRtdlG0JxM_2y5iN2WPWwMF1PVY8YWHw4jrx270Rg3PlA2qaVeJIPyudjoOhd-kdGd1Bt0M7m4=@protonmail.com> Feedback-ID: 24074989:user:proton List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha512; boundary="------6ce363b7b9d06e09cc91f4d0289dd0ad3cbc52f9799d77c76c140f1a1c194995"; charset=utf-8 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:62371, ipnet:185.70.43.0/24, country:CH] X-Rspamd-Queue-Id: 4TlrgD6qq3z4NNr This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------6ce363b7b9d06e09cc91f4d0289dd0ad3cbc52f9799d77c76c140f1a1c194995 Content-Type: multipart/mixed;boundary=---------------------0d1efc8dd7ca68e8ab7bc56f70d5345e -----------------------0d1efc8dd7ca68e8ab7bc56f70d5345e Content-Transfer-Encoding: quoted-printable Content-Type: text/plain;charset=utf-8 On Wednesday, 28 February 2024 at 19:01, Alexey Vyskubov wrote: > = > = > On Wed, Feb 28, 2024 at 10:29:42AM -0700, Modulok wrote: > = > > > > What do you use for developing on FreeBSD servers? Unfortunately I= can't > > > > install FreeBSD on my machine (well I can but it would be in VMwar= e Fusion > > > > Pro). > = > = > I have a headless FreeBSD server. I mostly do development with vim (I > have used it for like 25 years, switching, ahem, from emacs -- and it > helps) running in tmux (I have used screen before but about 10 years ago > I've made a mistake to look into its source code -- and since then I'm > using tmux and made a point never look into its sources). > = > For connection I normally use SSH, and sometimes VNC (with Xvnc running > on FreeBSD side). I can use both options on my iPad (with Blink and > Rvnc); actually, I'm writing now on iPad, with SSH connection to > FreeBSD. > = > I have several scripts/aliases to make working with tmux easier (think > listing sessions; show menu, allowing to choose to which session to > attach; something for tmux new -A -s ). To make working with > = > vim easier in terminal over SSH I use such options as colorcolumn, > numbers, rnu. I also use t_* settings in vim to make cursor of different > color and shape in different modes. I use "set -o vi" in my shell, and I > use starship prompt (some people strongly dislike it, by the way). > = > Useful thing, if your SSH connection is unstable, is mosh. > = > > is my daily driver. I write code in the `helix` text editor running in= side > > `tmux`, itself inside the `alaccrity` terminal emulator (which you wou= ldn't > > have if developing remotely). > = > = > I had a brief affair with helix, couple of months, and it did not fly > for me. I use alacritty as well and it works reasonably well over VNC > (keep in mind that though my connections usually -- not always -- over > WiFi, they are normally inside the same house). > = > > vim-like experience with far less configuration out of the box. Like > = > = > Well, helix has modes. Experience is quite far away from vim, though I > know what you mean. > = > > `neovim` it has built in LSP support and will use installed LSP server= s > = > = > I never found a compelling reason to switch to neovim. I have started to > use LSP in vim a couple years ago with coc.nvim (yep, it works in plain > vim) plugin. > = > > I've run VS code in the past, > = > = > ..and it works reasonably well over VNC. > = > > want to get in deep with X11 forwarding > = > = > While I prefer VNC, I had remote X servers connected to FreeBSD, it is > not that difficult. > = > > You can use these in `vi`, `vim`, `neovim`, `helix`, and there's even = a > > plugin for `VS code` that supports them. > = > = > There is a VS Code plugin which connects to real neovim and uses its > engine, so it's not just emulation. > = > I can only approve learning vim way of editing, and not because of time > saving. It is very convenient, when you get used to it. > = > P.S. vim has a ton of options for programming, see things like makeprg, > errorformat, quickfix list, integration with tags. You definitely want > to know how to use 'make' and 'ctags' programs. > = > -- > Alexey > I cannot receive HTML mail at this account. > Hi, I am a signature virus. Add me to your signature to help me spread. Thank you. That was a reallu interesting reply. I had never heard of Helix= for example. My internet connect is pretty rock sold but thanks about the mention os mo= sh. Simon. -----------------------0d1efc8dd7ca68e8ab7bc56f70d5345e-- --------6ce363b7b9d06e09cc91f4d0289dd0ad3cbc52f9799d77c76c140f1a1c194995 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: ProtonMail wnUEARYKACcFgmXgfYoJkFrvKC74ta6lFiEEXOYF9uqFRn4815bYWu8oLvi1 rqUAABYRAQDIFuQvSuiR6U+KaUTgHwzN8ZaN7LFfPM9GeaP5p43dLQEA6JNA N1BMftm3pVhRBmoJDR6p+03Hx0trK6C7m/PLfgk= =5x5K -----END PGP SIGNATURE----- --------6ce363b7b9d06e09cc91f4d0289dd0ad3cbc52f9799d77c76c140f1a1c194995--