Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Nano line wrapping (-w)

2»

Comments

  • daviddavid Member

    I do remember ":wq" and ":q!" for vi. It comes in handy if you're in an odd environment with only vi.

  • MannDudeMannDude Patron Provider, Veteran

    Never knew or cared about the nano vs vim debate, or realized it was such an important thing to some.

    Nano is easy to use. Can easily search, find/replace and do things I want to do like jump to a specific line. I'm old and never learned vim beyond :wq and always assumed the fanboys of it were young hipsters, the same who love Arch ;)

  • RubbenRubben Member

    @zed said:
    I admire you for admitting in public you use nano.

    WHAT ELSE DO I USE

    i use nano too :sob:

  • tentortentor Member, Host Rep

    nano is a notepad.exe of GNU/Linux world

    Thanked by 1BasToTheMax
  • RubbenRubben Member

    @tentor said:
    nano is a notepad.exe of GNU/Linux world

    ok punch me in the face i dont care, im not memorizing 6 billion key combos just to exit fucking vim

  • tentortentor Member, Host Rep

    @Rubben said:

    @tentor said:
    nano is a notepad.exe of GNU/Linux world

    ok punch me in the face i dont care, im not memorizing 6 billion key combos just to exit fucking vim

    Chill dude no one was punched for using notepad.exe

    Thanked by 1Rubben
  • fatchanfatchan Member, Host Rep
    edited May 2025

    Ive gone through the pipeline of nano->micro->helix(with llm plugin).

    And i made the keybinds in micro and now helix exactly like nano and disable modal editing, because fuck emulating vim. Very happy with it.

    The worst part is being in a browser and hitting ctrl+w (find in nano) and ending up closing the tab 😭

  • daviddavid Member

    Before nano, I was using pico, but somewhere along the line it got switched to nano in the distros.

    Both Dolphin and Kate (especially with the File System Browser plugin) can open directories and files with sftp. So I'm trying to get into the habit of using that. But when I'm checking something out it seems natural to remain in the terminal and use nano, instead of switching to a file browser and navigating to the location to open the file.

    I wish there was a way to open the file in Kate from the remote terminal. I can do it locally, of course, but I haven't found any way to do it remotely.

  • daviddavid Member

    I figured out how to get kate working from the remote terminal.

    #!/bin/bash
    
    FILE=$1
    DIR=$(pwd)
    SERVER="server"
    ssh -o ConnectTimeout=5 user@desktop "export DISPLAY=:0;kate sftp://${SERVER}/${DIR}/${FILE}"
    

    A small script, so when I type:

    kate testfile.txt
    

    on the remote terminal, it will open it on my desktop. I have to type my password each time because I'm wary of providing ssh key access to my desktop, with that key sitting on the server.

  • zedzed Member

    @MannDude said: always assumed the fanboys of it were young hipsters

    There's probably some but generally it's the opposite, youngsters get introduced to nano because it's default and the greybeards use vi because old and wise!

    Thanked by 1MannDude
  • @david said:
    So "-w" is the default now. I'm sure it wasn't before, though.

    In your ~/.nanorc or /etc/nanorc, you can do either:

    set softwrap # to turn on wrapping
    or
    unset softwrap # to turn wrapping off

Sign In or Register to comment.