Questions tagged [text-editor]

Questions about text editors

Filter by
Sorted by
Tagged with
62 votes
5 answers
550k views

How to edit files in a terminal with nano?

Sometimes, a graphical text editor like gedit or kate cannot be used (because you're in a virtual console for example). Luckily, there are text editors for the terminal. An easy one is nano, but I ...
Lekensteyn's user avatar
  • 174k
139 votes
13 answers
538k views

What are the alternatives to Notepad++ on Ubuntu?

I use Notepad++ on Windows 7 and I want to know if there is a good substitution for it on Ubuntu. I want something that is good for editing html files.
user171010's user avatar
  • 1,399
132 votes
16 answers
208k views

Text editor to edit large (4.3 GB) plain text file

Is there any text editor, which can edit such file? I've tried: gedit kate nano vim mcedit without success.
cupakob's user avatar
  • 1,919
108 votes
10 answers
178k views

Find and replace text within multiple files

I want to know how I can find and replace a specific text in multiple files like in Notepad++ in the linked tutorial. e.g.: http://cybernetnews.com/find-replace-multiple-files/
Faruk Uzun's user avatar
  • 1,280
97 votes
2 answers
143k views

How do I make Sublime Text 3 the default text editor [duplicate]

I'd like to replace gedit, and use Sublime Text 3 as my default text editor for all text files on my Ubuntu system. Can you let me know how do I go about making this change?
user avatar
323 votes
16 answers
372k views

Hitting arrow keys adds characters in vi editor

When I tried to use arrow keys in insert mode in vi editor the following characters are being inserted in the editor: for ↓ I get B, for ↑ I get A, for ← I get D, for → I get C. Please help me in ...
bvb's user avatar
  • 3,331
197 votes
3 answers
524k views

Command to append line to a text file without opening an editor

Assuming i have a line that i want to add to a file without opening an editor. How could i append this line alias list='ls -cl --group-directories-first' to this file config.fish
NES's user avatar
  • 33.2k
44 votes
12 answers
18k views

What's the easiest way to get started with LaTeX?

I'd like to learn and use LaTeX on Ubuntu. What packages do I need? What is the best editor for LaTeX code on Ubuntu for a new LaTeX user? I'd also like the ability to see the code in one pane and ...
eugenemarshall's user avatar
2 votes
4 answers
16k views

How do I edit configuration files?

I'm a beginner to Ubuntu. Can anyone tell me how to edit a configuration file? This is on Ubuntu 18.04 LTS. Thanks in advance.
ashwinnraj's user avatar
35 votes
10 answers
81k views

What are some good PHP editors? [closed]

I'm currently using PhpStorm by Idea JetBrains, but its buggy and I'm really looking for something that will allow me to get work done without too much hassle. Please limit one IDE/Editor an answer.
17 votes
9 answers
123k views

How can I change the encoding of a subtitle file?

I downloaded a Greek subtitle for a movie, and this is what I see when I open it with Gedit. Subtitle works great on VLC, all perfect. But what if I want to edit this subtitle with some Greek words? ...
Leon Vitanos's user avatar
  • 1,232
13 votes
2 answers
23k views

How to make text file created in Ubuntu compatible with Windows Notepad?

Sometime I have to use the text files created in Ubuntu, using editors, in Windows editors. So basically when ever I create a text file in Ubuntu I append the extension .txt, and it does make the file ...
Saurav Kumar's user avatar
  • 14.9k
211 votes
16 answers
2.3m views

How do I open a text file in my terminal?

There is a file named RESULTS.txt and I want to open this file in my terminal. (I mean I want to see the file contents be displayed in the terminal and not in some text editor) How do I do that ?
194 votes
10 answers
257k views

Changing default crontab editor

I am trying to change the default editor from nano to vim. I have run the following commands: sudo update-alternatives --config editor and update-alternatives --config editor Both now output: ...
austinbv's user avatar
  • 1,923
59 votes
3 answers
40k views

How to stop Gedit, Gvim, Vim, Nano from adding End-of-File newline char?

Sometimes I want the last line of a text file to be a simple string of text with no newline character appended: ...eg. to concatenate another file to it. Several editors automatically modify my ...
Peter.O's user avatar
  • 24.7k
50 votes
4 answers
196k views

What are the default text editors in different flavours of Ubuntu?

What are the default text editors (GUI and CLI) in different flavors of Ubuntu. what commands should we use to edit files with them? Behind the question I tried Kubuntu and want to try more Ubuntu ...
Yoginee Pingale's user avatar
21 votes
3 answers
61k views

Save an edited file in nano, but no permissions

I edited a file in /etc/ that I want to save, but forgot to open it using sudo. I remember there was a command to save such a file in vi, and want to know if there is any such way to do it in nano? ...
theTuxRacer's user avatar
  • 16.2k
12 votes
6 answers
39k views

How to paste text from Vim editor to browser?

I need to copy text from vim to web browser since I'm not able to use gedit as I'm opening an sql file. How do I get this done?
Harshal Kshatriya's user avatar
4 votes
4 answers
4k views

Text editor that updates file without prompting

Is there any console- or window-based text editor that automatically reloads file changed on disk without prompting anything?
Kadir's user avatar
  • 453
38 votes
2 answers
39k views

How can I change the default editor of the sudoedit command to be vim?

I'm trying to use sudoedit, but it keeps running the nano editor. My preferred editor is vim. How can I make it the default? Looking at the man page, man sudoedit, I've noticed the following: ...
Dan's user avatar
  • 13.1k
18 votes
4 answers
3k views

Is there any text editor which supports Markdown (Ask Ubuntu's formatting style)?

Is there any text editor with support for Markdown (formatting syntax used by Ask Ubuntu) which can be used to write questions or answers while you are offline?
Anwar's user avatar
  • 76.6k
7 votes
5 answers
85k views

Unable to edit /etc/apt/sources.list file

When I try to edit my sources.list file using the command: $ gksu gedit /etc/apt/sources.list It requests an administrative password and when I type the password, It says incorrect and try again....
IronMan007's user avatar
5 votes
1 answer
2k views

Switch text direction in GEdit

I want GEdit to show all paragraphs in right-to-left view. I know that it renders paragraphs starting with rtl characters correctly. But I need paragraphs starting with ltr characters also shown as ...
Amir Karimi's user avatar
5 votes
1 answer
2k views

How to setup AutoKey for text auto-completion

How do I setup AutoKey to get the following result? I type a word like ubu in a text editor A window opens with the suggestion ubuntu I can select ubuntu through TAB-key ubu gets replaced with ubuntu
Tom's user avatar
  • 187
5 votes
4 answers
9k views

Leafpad not available for newer releases of Ubuntu?

I see that my favourite text editor Leafpad has been dropped by Debian and now also from Ubuntu versions 19.04 Disco Dingo and onward. How can I get this simple text editor installed now?
andrew.46's user avatar
  • 38k
20 votes
4 answers
5k views

Tool for viewing LibreOffice Writer files in terminal window

I am using a couple of documentation files in LibreOffice (.odt) format. Normally, I access them with LibreOffice Writer of course. But there are times when I can only connect to the site with a text ...
rookie09's user avatar
  • 303
7 votes
6 answers
12k views

What editor is as good as TextPad for compiling and running Java programs? [duplicate]

I want an editor that is as good as TextPad (for Windows) for compiling and running Java programs on Ubuntu 12.04. Please suggest one.
Ankit's user avatar
  • 6,779
4 votes
3 answers
26k views

How do I create a file?

I'm following instructions about Installing and setting TFTPD in Ubuntu. It asks to Create /etc/xinetd.d/tftp and put this entry: service tftp { protocol = udp port = 69 ...
Shira's user avatar
  • 899
2 votes
1 answer
606 views

How to open Ubuntu files in an interface friendly editor from Windows?

I am using Ubuntu app inside the Windows 10. I am writing some programs inside the Ubuntu OS, able to edit the files through the Vim editor from terminal interface. I am wondering if there is a way to ...
Aadil Hoda's user avatar
0 votes
3 answers
3k views

16.04: crontab -e editor settings / Python syntax highlighting in vim

crontab -e defaults to using vi for editing. This is not usually a problem. vi is an excellent editor, and easy to learn. Recently I've begun to use vim which is installed by sudo apt-get update ...
SDsolar's user avatar
  • 3,169
102 votes
9 answers
219k views

Please recommend a hex editor for shell

Can you recommend a hex editor that can be run from shell? I need to be able to edit not only view the content.
Aviran's user avatar
  • 1,171
89 votes
1 answer
68k views

What are the differences between vim.basic and vim.tiny? [duplicate]

My favorite editor is Vim, so I decided to change the default editor of my ubuntu installation with the following command: sudo update-alternatives --config editor A prompt (with listed options) ...
talles's user avatar
  • 2,005
65 votes
17 answers
128k views

Comparizon between text editors in Ubuntu: Vim vs. Emacs vs. Nano [closed]

I was wondering the difference between these text editors and which is best used with Ubuntu? What are each of them good for? Are there better ones?
33 votes
9 answers
13k views

encrypting text editor

Is there an encrypting text editor for ubuntu? In other words, the text editor, preferably GUI capable, should always save an encrypted file and always prompt for the password to re-open the file. ...
H2ONaCl's user avatar
  • 9,673
28 votes
12 answers
25k views

Lightweight table editor

I am looking for something like Sublime Text for tables. That is, when it encounters something with table delimited values (for example), the columns should be displayed aligned. Excel, Calligra ...
a06e's user avatar
  • 13.2k
27 votes
2 answers
21k views

How to view huge text file via Vi or gedit

I have generated a wordlist.txt of 11 GB by crunch-3.6. When I try to open the file with Vi or gedit, I run into problems because of the file size. How can I view this file?
vais sai's user avatar
  • 273
21 votes
2 answers
45k views

Centre, left and right align text in GIMP

I am running GIMP 2.8. And I was wondering if there is any way of left aligning, right aligning, or centring text in GIMP? As this would be something very useful and is included in most other programs....
user avatar
20 votes
5 answers
13k views

Is there a markdown "rich text" editor?

I have become fed up with writing down markdown tables scratch, I need some "rich text editor like" program to automate creation of markdown for me and hence of tables. The only rich text editor I ...
user avatar
20 votes
10 answers
49k views

True column-mode (block-selection and editing) text editor solution?

In windows, I used to use a text editor called crimson editor which featured the best column-mode editing support I have yet to use. When enabled via a simple Alt-C shortcut, selections could be made ...
tamale's user avatar
  • 1,459
18 votes
9 answers
10k views

Markdown, LaTeX combined in WYSIWYG editor. Is there any?

I really like the way markdown is implemented in SE bunch of sites, where I can easily write code blocks, performing formatting or even use latex on some of sites like writing $\pi$. I also like how ...
om-nom-nom's user avatar
18 votes
2 answers
5k views

gedit modelines – What are they? How do they work?

There is a gedit plugin called Modelines and the plugin is described as Emacs, Kate and Vim-style modelines support for gedit. What are modelines? And how do they work in gedit?
N.N.'s user avatar
  • 18.2k
15 votes
3 answers
64k views

How do I find out what my default terminal text editor is? [duplicate]

While reading the git introductory material, I read a piece that brought this question to mind. How do I use the Terminal to find out what my Default Text Editor is? Are there a General Commands ...
user avatar
15 votes
3 answers
3k views

gedit last line obscured by status bar

When I maximize gedit the last line of the text editor is obscured by the status bar at the bottom of the screen. This occurs even if I scroll to the very bottom of the document. Say the document is ...
stackinator's user avatar
  • 1,941
12 votes
4 answers
15k views

How do I open a large file in a terminal (using vim causes terminal to hang)? [duplicate]

I'm using Ubuntu 14.04. I have a large log file: -rw-r--r-- 1 rails root 1792390124 Jan 10 14:54 /var/log/unicorn/unicorn.log Nonetheless, I need to open it and find some things in it. I tried vim,...
Dave's user avatar
  • 2,095
12 votes
0 answers
9k views

Good text editor for Ruby on Rails programming? [duplicate]

Possible Duplicate: What is a good text editor for developing code on? I'm trying to find a text editor that I can use for doing Ruby on Rails development. I have been using TextMate on my Mac ...
10 votes
3 answers
28k views

How do I update Sublime Text 2?

I have Sublime Text 2 installed and I have it configured to my liking. There is a newer version of Sublime Text 2, but I have put off downloading it since I do not want to lose my configuration. I ...
railguage48's user avatar
6 votes
2 answers
23k views

How to edit files in GUI text editors as root?

This time and another I need to edit some files that are supposed to be edited by root only. I would very much prefer to do it in a GUI text editor rather than using command line tools like nano or vi....
S. N.'s user avatar
  • 305
6 votes
4 answers
25k views

Alternative to basic text editors in ubuntu wsl

Currently I have a ubuntu terminal that I downloaded from the MS store. I would like to be able to edit code without using nano/vim/emacs. Is this possible? Can I use an external editor like visual ...
cap's user avatar
  • 171
4 votes
2 answers
3k views

Editing with nano, Alt is caught by the window menus, how can I fix that?

The Alt key is used for many useful commands, but unfortunately it's caught by the terminal window to activate the window menus (File, Edit, ...). I would like to either force the terminal window to ...
drevicko's user avatar
  • 4,363
4 votes
1 answer
4k views

Set VSCode as Default Text Edtior

Is there a way to set VSCode as the default text editor? I'd like to have it be default when opening a file from the command window and when using the files app. When I right click on a file and ...
Jon's user avatar
  • 281