Questions tagged [text-editor]

Questions about text editors

A text editor is a type of program used for editing plain text files.

Text editors are often provided with operating systems or software development packages, and can be used to change configuration files and programming language source code.

Excerpted from Wikipedia.

409 questions
347
votes
16 answers

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 resolve this problem.
bvb
  • 3,571
213
votes
16 answers

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 ?
203
votes
10 answers

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: Selection Path Priority Status…
austinbv
  • 2,013
197
votes
3 answers

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
  • 34,073
146
votes
13 answers

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
  • 1,469
135
votes
16 answers

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
  • 1,949
120
votes
11 answers

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
  • 1,351
111
votes
10 answers

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
  • 1,310
97
votes
2 answers

How do I make Sublime Text 3 the default text editor

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?
user193491
94
votes
1 answer

What are the differences between vim.basic and vim.tiny?

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) came up asking for an editor, but I noticed that it…
talles
  • 2,095
66
votes
17 answers

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

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?
myusuf3
  • 36,067
64
votes
5 answers

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 cannot understand how to work with it. If I start…
Lekensteyn
  • 179,873
62
votes
3 answers

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 text by adding a newline character, even though I have…
Peter.O
  • 25,449
  • 38
  • 120
  • 168
54
votes
4 answers

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 flavors and other distros, but when I was in Kubuntu…
47
votes
2 answers

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: EDITOR Default editor to use in -e (sudoedit) mode if…
Dan
  • 14,560
1
2 3
…
27 28