Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [editors]

Questions about text editors in general (i.e. programs used for editing plain text files).

1
vote
0answers
22 views

Cannot change default text editor using update-alternatives

I want to use vim over nano as default text editor. I tried to do it with sudo update-alternatives --config editor From menu I chose vim. However, when I open any file, Linux launches nano just as ...
0
votes
1answer
79 views

How to change default text edior for virsh edit? (setting EDITOR env variable didn't work)

I recently installed virt-manager on an Arch Linux install, and unlike under Ubuntu, I was not prompted to choose a text editor on the first launch of virsh-edit. Instead, the XML file was opened in ...
0
votes
3answers
100 views

Editing text files in WSL with Notepad++

I use WSL (Windows Subsystem for Linux) with Debian, which provides a simple cmd interface. I'd like to open files in Notepad++, which is installed on the Windows side of this PC. is this possible? ...
0
votes
0answers
16 views

How to change the color of C++ comments in Kate

I'm using Kate with custom setup where I have dark background. My code is in C++. I have comments in my code. And comments are highlighted in electric blue. Since I have dark background, the color ...
0
votes
0answers
67 views

How to open windows txt with cyrillic text?

How to open Windows text file that have Cyrillic text ? If I open with mousepad there is understandable text. If I type file -bi test.txt text/plain; charset=iso-8859-1
0
votes
0answers
24 views

Strange static lines in Kate Editor

I'm having a strange issue with Kate under Kubuntu 18.10 where the lines displayed in the below screenshot seem to persist no matter what option it is I'm disabling. They are static and remain in the ...
0
votes
0answers
54 views

opening editors on files with invalid characters in them

In my use case, I have a lot of text files containing invalid characters. When I search through those files, e.g. grep "some text" /home/bla/blubb/* | xargs editor_of_your_choise I'm getting the ...
1
vote
1answer
18 views

Anyone know why Find or Replace dialogs not coming up in Geany editor under Ubuntu 18.04?

I'm using Geany (1.32) in Ubuntu 18.04 and am finding that the dialog boxes to search within the open file using the Search-->Find... and Search -->Replace... are not coming up. At first I thought ...
0
votes
0answers
120 views

nano line numbers in nanorc by default

"set linenumber" doesn't seem to be working. GNU nano version 2.5.3. LinuxMint 18.02 (old because my Ubuntus -- 17.04 and 18.04 -- are broken.) Is there another way to do it?
0
votes
1answer
49 views

EDITOR: subsidiary program 'emacs -nw' not found [duplicate]

I have set up $ echo $EDITOR emacs -nw I was wondering why it is not found here, and how I can solve the problem? Thanks. $ sdiff -o sdiff.out f1 f2 1 2 3 | 2 3 4 %...
0
votes
2answers
162 views

printf and backspace

I thought of playing around a bit with find -fprintf. In case you don't know what -fprintf does, it is the same as -printf but writing to a file you specify its name. Now, when I run a command like ...
-1
votes
1answer
190 views

Open default text editor from terminal

Suppuse I have some text file and I want to open it with text editor, how to do that from terminal?. I need it that it would work for Red hat 5.3 enterprise. Without need to download nothing, I need ...
1
vote
2answers
94 views

Prevent Nano from creating .save files?

I have a problem with the Nano editor. If it ever exits unexpectedly, it leaves behind .save files, which are just versions of the edits I was making. Is there a way to disable this behaviour?
2
votes
2answers
505 views

How to delete current word in nano text editor?

How to delete the complete word where cursor is positioned in nano text editor? Or if cursor is on white space, I assume it should delete the next word? Nano help shows these two functions but they ...
4
votes
1answer
32 views

piping a man page on MacOS into an editor

Using bash on Mac OS to edit some man pages for my own use. In Mac OS the command open -t filename will open the specified file in the system's default text editor. $ man somepage | col -b will ...
1
vote
1answer
27 views

Makefile opening in emacs, how to change?

I updated Ubuntu (technically Lubuntu) and now Makefile is opening in emacs. It used to open in leafpad. How to set it back? I checked the usual places, but I couldn't find any references in the files ...
0
votes
2answers
128 views

Simple Text Editor for Desktop Environment [closed]

Issue Leafpad is the default text editor for the LXDE Desktop environment designed to be lightweight and simple. Although I like this design choice, there are some additional features available in ...
0
votes
1answer
36 views

Why ctrl+x+e is not working?

I've added setenv EDITOR gvim to .cshrc, but still no able to run ctrl+x+e to launch editor from terminal command line.
0
votes
2answers
57 views

Editor that can open directory on MacOS / Linux

Is there a default editor (vi or nano don't seem to cut it) that can open a directory and view files on MacOS or Linux? I have Sublime Text installed, but for machines w/o sublime text, what might be ...
0
votes
1answer
123 views

insert current date into text document while editing it in Kate

I would like to insert the current date into an open Kate text document while editing it by using a shortcut key combination. I see several such options for Atom, but I don't find anything for Kate.
1
vote
2answers
47 views

CLI: Editing binary strings

There's a nice CLI binutils utility for interpreting binary files, and outputting legible strings, in a cat-like fashion. It's called strings. If you try to cat a binary file, you'll see a bunch of ...
0
votes
0answers
37 views

cshell text editor

Is there any text editor with highighting for cshell scripts that includes code folding? (Preferable something with a less steep learning curve than vim and emacs) I haven't been able to find ...
0
votes
1answer
51 views

Installing The Hessling Editor (THE) and Locating the Demonstration File

I'm still getting started with Linux. I've been trying to install The Hessling Editor with REXX enabled on Ubuntu (and hopefully the Linux Subsystem on Windows in the future). I thought it would be ...
1
vote
1answer
458 views

How to constantly show line number when navigating in nano?

I am looking for a keyboard shortcut to show the line numbers in nano editor when navigating up and and down within the file. I have seen in multiple posts about CTRL+C but this doesn't automatically ...
0
votes
1answer
508 views

How to set default color and font schemes for different katepart applications

katepart is the base for many KDE editing tasks and I mostly use it 1) as the editing component of kile, the LaTex editor, and 2) as standalone kate or kwrite for editing text files such as HTML or ...
0
votes
1answer
94 views

Stack tabs when using Geany

Is there a way on Geany text editor (Linux) to stack tabs, such that there are multiple rows of tabs? Issue: Sometimes I have open 30 or so files in Geany. But Geany only shows about 10 on average (...
0
votes
1answer
153 views

Set kernel.sysrq = 1 in /etc/sysctl.d/10-magic-sysrq.conf using command? [duplicate]

I wish to use a single command line instead of opening the text editor to change the parameter of the file /etc/sysctl.d/10-magic-sysrq.conf to kernel-sysrq = 1 from any current parameter, even if ...
0
votes
1answer
27 views

Selecting a Python Editing Tool [closed]

What do you recommend to use for Python editor/debugger tool on Linux? I use python 3.6.0 and edit the files on Windows. Now would like to do it in Linux environment Thank you
0
votes
0answers
40 views

Copying line in Joe's own editor

In Joe's Own Editor, is there a command to copy the line where the cursor is to the buffer so that I can paste it later?
4
votes
2answers
3k views

Non-root user getting root access after running “sudo vi /etc/hosts”

On a linux machine, a non-root user open a file, $ sudo vi /etc/hosts and quit saying :sh to get root access. 1) With above, How a non-root user becomes a root user? 2) Why Linux allow such ...
2
votes
1answer
125 views

What limits Kate text editor search feature?

I am fairly new with Kate, started to use it, because it's search feature shows the number of occurrences found. But now I found a problem with search. It works fine for few line files (few hundreds) ...
1
vote
4answers
80 views

Is it possible to add some text at beginning of a file in CLI without making new file?

I have two files; file1 containing - hello world hello bangladesh and file2 containing - Dhaka in Bangladesh Dhaka is capital of Bangladesh I want to update file2 as - hello world ...
4
votes
2answers
262 views

TextEdit producing “egrep: parentheses not balanced” error

I've written a small bash script for work: I'm trying to update a file automatically based on the metadata. Overall, the script works fine, but anytime I save a new version I get the error: egrep: ...
0
votes
1answer
130 views

How to edit files in text editor and not terminal when using nano command? [closed]

So when I use nano it opens a little interface to edit the file. However, is there a way to open the file with text editor?, as that is much easier to edit, navigate and save.
3
votes
2answers
203 views

Using sed to clean up long paths in log files

A script generates log files with tens of kilolines, and most lines are very long. It would be great to make this log human-friendly with a few edits. At run time, there are helpful environment ...
9
votes
2answers
5k views

Change default editor to vim for _ sudo systemctl edit [unit-file] _

[4.13.12-1-ARCH with gnome3 and gdm on Xorg] I already have set my VISUAL and EDITOR env-vars to vim. Similarly I did try SYSTEMD_EDITOR="vim"; export SYSTEMD_EDITOR in my ~/.bashrc, to no avail. ...
0
votes
1answer
45 views

I'm looking for a text editor that I can access from a browser on a different server

Much like you can do with Jupyter Notebook. I can start a jupyter server on a linux box and access that on a different computer. I know I can use Jupyter as a text editor, but it is very light-weight. ...
2
votes
1answer
404 views

Why is a duplicate file sometimes created after editing a file? [duplicate]

I use gedit to modify/create files in my system, and sometimes I see that after editing, a duplicate file is created by the name of samename~ Just that ~ is extra. Why does this happen? Is there any ...
-4
votes
1answer
63 views

What are the GNU programs that I need with Linux if I only edit files? [closed]

What are the minimum number of programs that someone can use to edit files with the Linux kernel? I mean reading a file from some storage device, changing it, and storing it. Maybe by specifying the ...
1
vote
1answer
162 views

Edited file after calling `sudo visudo`

To view permissions, I called sudo visudo in terminal. When I wanted to exit from the editor, I pressed control-x (on the Mac, it exits nano editor, but it was apparently not nano). Instead, it ...
0
votes
1answer
47 views

Minimalistic text editor/document processor?

I am looking for an open source word processor that can do the following: Text size Access a font database Big font/cursive Tables List Non-analogue imitation
0
votes
2answers
484 views

Save text file with multiple highlights in color

I have a text file which I am reading, it is too long and sometimes I need to mark content in it for later reference. I want to be able to highlight multiple lines in the file with color and save ...
0
votes
1answer
644 views

nano - soft wrap at 80 characters

I would like nano to soft-wrap at 80 characters. That is, as I keep typing, the text should flow to the next line beyond 80 characters, without nano insert a \n newline at 80 characters. set softwrap ...
1
vote
0answers
115 views

Kate editor: how to define / add filetype filters in file dialogs?

I use Kate extensively. When opening and saving files, I would like to have several pre-defined options to filter by filetype (extension). In Arch Linux Kate only shows the "All Files" filter in file ...
1
vote
1answer
147 views

ArchLinux: Still having the wrong editor in some cases

After the installation of my ArchLinux OS, the default text editor was set to vi. I wanted to change it to vim and edited all possible configurations, such as .bashrc, .zshrc, .zshenv and /etc/...
2
votes
0answers
233 views

Shortcut of mouse's right-click (Shift f10) does not work in some applications

I know that the shortcut of mouse's right-click is Shift+F10. I use it frequently in libreoffice, and I also try it in applications such as Firefox. However, in some case as in Texmaker, when I ...
0
votes
1answer
4k views

How to Change Text in Shared Libraries (*.so files) in Linux

When I search text in a folder using bash I can see that text is in binary file. I would like to change the text in *.so file.
1
vote
1answer
138 views

how to specify editor for `sudo netctl edit`?

~  echo $EDITOR /usr/bin/kak ~  sudo echo $EDITOR /usr/bin/kak ~  su Password: ⚡  /home/bjorn  ...
1
vote
0answers
44 views

Editing lines from multiple files as if from one

I'm looking for a program that can read lines from many files at once and allows editing them and saving them back after changes. It may seem a weird idea at first glance, but it's quite simple and ...
0
votes
0answers
230 views

Encoding problems on a VPS Ubuntu 16.04

This is greasy. I've checked this only with Polish characters. There's a virtual machine I SSH into. The only exception is when I type something in my terminal. Then it can echo it right. And there's ...