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
2 answers
46 views

Can't change Arch default editor

I want to set nvim(Neovim) as my default editor, I have tried to edit my .bashrc and add this two line: export EDITOR=nvim export VISUAL=nvim and then $ source .bashrc but it didn't work. Proof: $ ...
0 votes
0 answers
6 views

Geany editor sliding bar question

In most of the editors I've used, normally the sliding bar at the right side, when clicked above/below its current position, it'll advance one page/lines per click, but with Geany, it'll advance to ...
0 votes
0 answers
35 views

How to show a table of content (TOC) for a text document in KDE's Kate?

Is it possible to show a Table of Content (TOC) in Kate for text documents such as txt files or files without filetype? Maybe it's possible with some setting that I haven't found or with some plugin (...
  • 3,440
0 votes
0 answers
20 views

Is there a gui ".texi" editor for translation purposes such as poedit?

Is there a gui ".texi" editor for translation purposes such as poedit? How i can edit / translate texi files with easiness when they include a batch of code? is there a linux program that ...
0 votes
1 answer
24 views

Text (from file) to running program

I have degenerative bone disease in my hands and would like to make YouTube videos that look like I am typing in a text editor such as Sublime or Kate (KDE). How can I make a text editor receive a ...
  • 157
0 votes
1 answer
55 views

What replaces .txt in *nix?

I know that files in *nix don't have to have extensions as in Windows (.txt, etc), so instead list.txt a file could just be named list. But if we do embrace the file extensions culture in *nix (as ...
0 votes
1 answer
82 views

Is it possible to easily switch between tabs and spaces in nano on MAC?

Is it possible to easily switch between tabs and spaces in nano on MAC. I have seen here how to do that but this doesn't work, maybe because I am working with a mac machine
0 votes
0 answers
18 views

Multi-Tab Scratch Pad That Never Asks You Anything - AutoSave

I've used numerous text editors, but I can't seem to find one that meets my requirements for temporary notes. I just want a place I can type things, and the things I type survive a reboot, but I also ...
  • 4,433
0 votes
1 answer
166 views

How to strikethrough (a text) in Kate text editor?

So,how can I strikethrough a text in kate or kwrite?
  • 11
0 votes
0 answers
77 views

Notepad++ (via Wine) missing some fonts (or they work differently than in the rest of the system)

Most of the fonts that I installed in my system are available in the "style configurator"/"styler" (in "define your language") of Notepad++, but not all do. For example I ...
3 votes
2 answers
1k views

Using Visual Studio Code as EDITOR e.g. with sudoedit

I am using Kubuntu 20.04. When I run sudoedit /etc/fstab, VS Code opens to a blank document and the CLI immediately returns (see details below). If I run export SUDO_EDITOR=nano, the document opens in ...
  • 385
0 votes
1 answer
53 views

Behaviour of crontab -e and environmental variables or configuration of default editor ( Debian )

Operating System: Debian GNU/Linux 10 (buster) Kernel: Linux 4.19.0-17-amd64 Architecture: x86-64 I am studying behavior of crontab -e. Are following assumptions correct? crontab -e edits the crontab ...
  • 411
3 votes
1 answer
3k views

Using Kate text editor, how to compare two files and find differences

I am using Kate text editor, and I would like to compare two files, and find (highlight) their differences. Maybe there is a plugin to do that? I would be open to solutions other than using Kate, e.g. ...
  • 259
0 votes
1 answer
65 views

Unset/Reset editor set by edit-sources (propably set by select-editor)

After running edit-sources, I was asked to select an editor: $ sudo apt edit-sources Select an editor. To change later, run 'select-editor'. 1. /bin/nano <---- easiest 2. /usr/bin/vim....
  • 299
-1 votes
2 answers
190 views

How to select a word under cursor?

For all text editor or application I'm using, I want to select a word under cursor using keyboard shortcut. How can I do it? I tried look around I didn't find anything helpful.
  • 231
5 votes
2 answers
458 views

What text editor supports positioning the cursor anywhere, even beyond the end of line?

I want an editor that can put the cursor anywhere in the text document, as if it were filled with spaces everywhere. This way I can place the cursor anywhere and type or paste right away, without the ...
  • 757
1 vote
1 answer
253 views

Showing line numbers by default in ed

In the ex editor, one can show line numbers by default by adding this line to a .exrc file: set number Is there a way to have ed start with line numbers showing by default, when lines are invoked?
  • 438
0 votes
0 answers
28 views

vim to start edit right below the cursor

In the current behaviour of vim, at least on Ubuntu, it will clean the screen and make new edit window. I would like to just start right below the cursor, for example: $vi test.txt [start editing by ...
  • 123
0 votes
0 answers
37 views

Nano: keyboard shortcut to move cursor to the beginning of the next empty line?

In nano text editor: what is the keyboard shortcut to move cursor to the beginning of the next empty line? If there is no default one, then what would be the right one?
  • 407
0 votes
1 answer
43 views

Safe to remove Mousepad dependencies in POP_OS?

Note: Originally posted question on Ask Ubuntu and they kindly directed to this StackExchange as more appropriate for a non-official Ubuntu derivative. Background information. Currently Running ...
7 votes
1 answer
2k views

How to quit the `mg` editor?

I tried to use one of my Git aliases and accidentally opened the mg editor. I tried a lof of different keys and nothing seemed to close it. I eventually just used ctrlz to to send it to the background ...
  • 213
5 votes
1 answer
697 views

Why a text editor shows different from cat command

I run: $ man cd > mancd $ cat mancd This shows as expected. But when I open the file with VSCode and vim, they are completely different. Why is it and how can I redirect the man page to a file ...
  • 599
0 votes
1 answer
73 views

Is anybody maintaining leafpad?

I'm using Leafpad as the plain-and-simple text editor on my Devuan GNU/Linux. But - I've noticed the Copyright message is from 2010, and the homepage also suggests no recent releases. I wanted to file ...
  • 7,683
-1 votes
1 answer
116 views

How to link in between text document of personal notes with tags (to jump between lines across files in a text editor like Kate)?

I'd like to have keywords in textfiles opened with the text-editor Kate that when clicked jump to a specific line marked with a keyword of another textfile, usually open in another tab in Kate. Here ...
  • 3,440
0 votes
3 answers
623 views

Researched, but still really confused about Vi vs. Vim [closed]

My first post on unix.stackexchange.com. Please, don't just react by the title of this post as I'm not jumping in having not researched what I'm asking for. I have done quite a research about Vi vs. ...
3 votes
1 answer
72 views

Is there a way to have an editor like nedit with the possibility to scroll horizantally from trackpad?

I am looking for an editor like an nedit editor where I could move horizontally with trackpad. For the moment, I can only scroll vertically and it is frustrating to not be able to scroll horizontally. ...
4 votes
2 answers
1k views

Using the caret symbol (^) in substitutions in the vi editor

I'm using CentOS and I was reading about the substitution command, s///, in the vi editor. I wanted to test some of the examples I saw: :%s/old/new/g Substitutes old with new throughout the file :....
0 votes
2 answers
441 views

configuring cursor shapes in gnome

First of all, this question is not about the mouse cursor, and not about cursor shapes in a terminal or console. I want to configure the shape of the cursor while typing e.g. while typing this ...
  • 11
-2 votes
1 answer
195 views

Text Editors with the smallest total LOC

I'm aware of certain Text Editors that would be called "small" in term of LOC, or "Line Of Code". I'm also aware it's no the best way to demonstrate (nor the only one) how small a ...
0 votes
3 answers
202 views

How to read in a user's input in shell script and replace a line with the input after the script finishes executing?

I currently have a script that asks for users to verify their OAuth credentials, which then returns a refresh token. It is annoying for the user to have to place the refresh token in themselves. I ...
0 votes
1 answer
186 views

iterm2 - vim is printing line numbers while scrolling

In iterm2, while scrolling in the vim I see a strange behavior. Whenever I am scrolling it is printing line number with scrolling. How to overcome from this behavior call-hometic_scale_1.txt" ...
  • 131
1 vote
0 answers
1k views

Search and 'in-place' replace strings in binary file

I want search and 'in-place' replace strings in binary file (case-sensitive, colon-separated strings). What method would be more clean, sed or bbe? sed -i.bak 's/F:O:0/B:A:R/g' file.bin bbe -e 's/F:O:...
  • 437
2 votes
1 answer
402 views

How can I examine the Unicode encoding of a text document

Given a text document or string in an encoding such as UTF-8, what is the easiest way to find out what Unicode encoding represents the characters I see? I should like to find out which code points ...
  • 162
0 votes
0 answers
56 views

Terminal editor/pager that allows jumping to particular line based on external command or file?

I'd like to script something so that an existing process viewing a listing file jumps to a particular line. The process might be less or nano or, if need be, another pager or editor. I would, if ...
  • 121
1 vote
1 answer
61 views

Open file with vi in konsole by default

I am running Fedora 32 with KDE env. In dolphin, I would like to open '.m' files using vi in konsole by simply clicking on this file. In short, if my file is "toto.m", I want the command "konsole -e ...
  • 300
2 votes
2 answers
177 views

MS Word alternative with math mode

I'd like to know about MS Office possible alternatives for Gnu/Linux with possibility to write in math mode, that is to write equations; at least angle signs and triangle signs. I am going to send ...
0 votes
1 answer
996 views

How to batch-edit pdfs to remove headers and footers

I have a large number of .pdf files with much the same headers and footers that I’d like to remove. Is there a something that can remove everything up to a known string and everything after a ...
2 votes
4 answers
222 views

Use substitution to delete everything up to a point on a line

I want to use a global substitution in Vim to delete everything up to https. Before The website is https://website.com The website is https://website.com The website is https://website.com After ...
  • 323
1 vote
2 answers
690 views

tail command does not display last line

I am using the following command to read the last line every time the file changes. tail -f -n1 Entrie.txt It happens that the first line written shows it without problems, but later when I write ...
1 vote
1 answer
128 views

Need program - "editor" that lets you check-mark lines to keep

I was wondering if anybody could recommend a program or plug-in (for an editor) to solve the following problem: I have a file with a large list (one line per item). I need to manually go through ...
2 votes
1 answer
106 views

Geany: Ruby comments in erb.html break the syntax highlighting

I use Geany (v1.123.1), my favourite text editor for code editing, as it's nice and simple. One thing which it doesn't do right is the syntax highlighting of comments, in erb files (a type of ruby ...
  • 1,027
0 votes
0 answers
129 views

Xed : highlight selected text occurences?

I'm using Gnome Xed text editor. Is there a way to auto select all occurrences of currently selected-text across the document. If Xed cant do it, what other linux text editor can do it ? How ?
  • 103
0 votes
1 answer
46 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 if ...
  • 943
0 votes
1 answer
219 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 ...
  • 11.2k
0 votes
1 answer
40 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
1 answer
147 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
0 answers
162 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 ...
  • 16k
-3 votes
1 answer
369 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 ...
  • 1
4 votes
1 answer
1k 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 ...
  • 225
1 vote
1 answer
152 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 ...
  • 625

1
2 3 4 5
7