Questions tagged [editors]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
24 views

:n and :N not working when opening files with

Okay so I have already gone through this. So I know you can edit multiple files in VIM if you open them up in the following way: vim file1 file2 and you can change files using :n and :N. But what ...
0
votes
1answer
26 views

How to find special characters (say like the musical symbol which denotes when a song is being played

Sometimes I edit subtitle files (.srt) and at times I get a place where the music symbol should be used. I am nonplussed as to how to get the music symbol to come up in the editor. I use editors such ...
0
votes
1answer
19 views

VIM difference beetwen ] and . (Marks)

What is the difference between ] and . in marks? I can't understand the difference. I noticed that if I enter insert mode (without inserting anything) and go out, the line in question appears in the ...
0
votes
0answers
33 views

List of MARKS. Duplicate lines

The numbered marks, are used for trace history of the cursor position in the last closed session vim...and ok. therefore: 0 contain last position of the cursor before close VIM, 1 contain the ...
1
vote
0answers
19 views

Kate Editor: force Python files to use spaces instead of tabs

For Python files, I must use spaces for indenting. My default Kate editor setting uses tabs. I don't want to change the default, but I want to configure the proper settings for Python files. I found ...
-3
votes
1answer
57 views

How do I un-comment lines in this configuration file?

## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a ...
3
votes
1answer
88 views

How to open the crontab of another user in my editor of choice?

I work in a team. We have a CentOS Linux machine. There's a user there called www. We run cron jobs as that user, i.e. I can type sudo -u www crontab -e to see/edit the crontab, and my teammates do ...
1
vote
1answer
60 views

Can you run vim (or another editor) in two shells at once on a single file, in a coordinated way?

I am interested in having a single file open with vim in two shells at once. The use case I have in mind is two windows of gnu screen running on a tty. The catch is that I would like the instances of ...
1
vote
0answers
44 views

Text editor for Linux that auto-saves even new files

I'm transiting from MacOS X to Linux (currently mostly using the Gnome GUI, but I like KDE also, so my question applies to any of these interfaces). MacOS' TextEdit has a feature which allows all ...
0
votes
0answers
13 views

reordering tabs in Notepad++ using WINE causes them to not respond

I have Debian 10 with KDE Plasma and WINE. In Notepad++ if I drag and drop a tab to a different position, none of the tabs will respond afterwards until I restart. Is there any workaround or fix for ...
1
vote
1answer
72 views

Changing default editor

There are two ways to change the default editor: update-alternatives --set editor /bin/nano export EDITOR='/bin/nano' added to ~/.bashrc (single user) or /etc/profile.d/ (all users) Is there any ...
0
votes
0answers
52 views

Unicode hexadecimal editor

I am looking for a Linux editor or viewer with side by side panels displaying hexadecimal bytes and the visual representation and or code point of: at a minimum UTF-8 at a maximum the entire Unicode ...
1
vote
1answer
62 views

Debian editor with syntax highlight for DOT language

I'm looking for a Debian editor with syntax highlight for the DOT language.
-1
votes
1answer
39 views

How to measure how long I use an editor?

Does anyone know how to solve the following: A programming course wants to measure how much time it takes to solve the exercises. I use Ubuntu 19.04. Let's say I write the code by using Visual Studio ...
0
votes
1answer
73 views

Pdftotext not making paragraph breaks

OSX, Homebrew's pdftotext works, but it does not honor the paragraph breaks. I have experimented with -pagebrk, -eol mac or -eol unix, but the problem of dividing paragraphs seems to be always there. ...
0
votes
0answers
32 views

start executable without “open” cmd

I installed (using make...) a very interesting text editor called "aoeui" by peter m klausler on my OSx Mojave 10.14 https://sites.google.com/site/aoeuiandasdfg/ I can start it in the terminal with "...
3
votes
1answer
185 views

Horizontal scrolling in nano editor?

I am using nano on files with long lines. How could I scroll the nano window horizontally? Ex: ┌────────────┐ |Lorem ipsum |dolor sit amet, consectetur adipiscing elit, |sed do eiusm|od tempor ...
0
votes
0answers
113 views

Questions about default applications in ElementaryOS Juno

I know this title seems a bit recurrent, but after several hours of search, I still don't understand. Basically, what I want to do is set Sublime Text as default text editor. Each time I see a valid ...
0
votes
0answers
17 views

Piping to subl works only one time

I tried to run ls | subl <(cat) and it opened Sublime Text with ls output. But if I run ps | subl <(cat) I don't get it if editor is already opened. I would expect it opens new tab for new ...
1
vote
2answers
259 views

View and delete part of data in binary file

How to delete part of binary data from binary file? (hex dump). I tried GHex 3.18.0 binary file editor, but it's not suitable for this, just lack even simple features. For example, I need select the ...
1
vote
3answers
61 views

Can I replace multiple characters in ed?

I have a text 'ab' whose content is composed of a,b letter. I want to change a to b, b to a at once by using s command in ed. But if I change them step by step, as you know, all the text will be ...
1
vote
1answer
318 views

Suggestions for SSH Client in Linux Mint

I am using Linux Mint 18.3 on a Dell Laptop. I like the connect to server feature in my file browser windows which allows me to easily access remote directories via SSH. However, as I repeatedly ...
1
vote
1answer
103 views

What to do when hard link is lost because of my text editor

So, I have a file, for this instance we shall call it $HOME/Documents/hello.txt. I will write some text inside it: Hello, welcome to my text file And I will hard-link this file here: $HOME/Documents/...
3
votes
1answer
284 views

Open a file in the default text editor programmatically

I'm writing a program and I need to implement opening a particular file in a text editor. The file type has a different association by default (it's associated to the program itself), so calling xdg-...
3
votes
1answer
138 views

When I try to load and edit files in nano or vi, it only creates a new blank file. Why is this?

When I try to load any files in nano or vi, it simply creates a blank [New File]. For some reason it won't load any files I'm trying to edit. I'm at a loss. Why would this be? I open up a terminal ...
1
vote
0answers
80 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
2k 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 ...
1
vote
3answers
3k 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
301 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
292 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
54 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
1answer
462 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
73 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
333 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
874 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 ...
2
votes
2answers
514 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?
3
votes
2answers
2k 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
96 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
36 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
263 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
87 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
61 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
303 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
102 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
98 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
141 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
1k 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
1k 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
181 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
237 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 ...

1 2 3 4 5 6