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

learn more… | top users | synonyms (2)

4
votes
2answers
469 views

Modeless vs modal editors

I just started learning Linux and all my previous experience of programming has been using the Windows platform. I came across Vim editor and read that it is modal editor unlike notepad which is ...
0
votes
1answer
379 views

IDE or Editor for Front-end development (JavaScript/HTML/CSS)? [closed]

These days APTANA seems to be the IDE of choice for Javascript developers although there is no package for Ubuntu or any other distribution. How do I install Aptana on Ubuntu? Is it stable? (if you ...
2
votes
2answers
4k views

Bash/Korn shell script edited on Windows throws error '…^M: not found'

Some background on the issue: I am new to scripting and wrote a simple Bash script in Windows using Notepad++. cxStopAllServicesOnSERVER.sh #!/usr/bin/bash cd "/some/path" echo "Hi. Logs can be ...
1
vote
1answer
84 views

Get rid of *~ files in KDE editors

All the KDE based editors (Kate, KWrite, Kile, etc.) tend to produce recovery (?) files that are named like the edited file with a tilde at the end. The annoying thing is that these files are left ...
1
vote
5answers
97 views

vim automatic substitution

I have the following lines: '0, '1, '2, '3, How to put quote before the comma? I've tried the following so far: %s/[0-9],/&/g so & here replaces the matched pattern...
5
votes
7answers
2k views

Console Text Editor with Windows-like keyboard shortcuts (ctrl-z, x, c, v)

Ok, I realise that I risk a religious war asking a question about text editors, but here goes. Requirements Mostly used for config file edits Text based not GUI Available for Raspian flavour of ...
4
votes
7answers
937 views

Seeking alternative GUI File editor with large file support

Can anyone recommend a file editor, preferably free, that handles large files as well as EmEditor on Windows? I'm on Ubuntu, but other people reading this might not be, so suggestions for other Unix ...
3
votes
2answers
137 views

I want to modify root files while also being able to create non-root files in a single text editor session.

Catch 22: If I open my text editor without using sudo, I don't have permission to save any changes. If I open it with root privileges, any files I create are owned by root. I want to be able to ...
2
votes
5answers
1k views

Comment all lines in a text file?

In a text file I need to comment out all lines by adding a ";" as first character of each line. What is a good way to do this? I thought of Vim's visual block mode, but I couldn't find a "select all" ...
1
vote
1answer
164 views

TeXstudio: open file at line number n

I am creating a script to produce some .tex files with a lot of lines (a kind of automatic sample). The script finishes with texstudio /home/$USER/foo.tex where foo.tex is the file created before. ...
0
votes
2answers
73 views

Cancel auto-fill in emacs

When using emacs (version 24.1 if that makes any difference), I would like to have a way to remove all the automatic line braking inserted by the auto-fill minor mode. Disabling auto-fill-mode is ...
8
votes
2answers
134 views

How to write a literal dot in ed?

What would be the right way to write a line containing only . to a file in ed? The only way I came up with is something like this: a . s/^$/./
9
votes
2answers
689 views

How to set on executable bit for a particular file automatically

I want that when i make create a particular file, suppose i create it in vim editor, the created file should get executable permission as well when it gets created . I want this as i am creating some ...
8
votes
2answers
5k views

Locate and delete all temporary files in user directory

I use vim a lot, and my area has power failure a lot. So the resultant is I get many *.swp files scattered over my PC. I want an alias of rm command that removes all files with either .swp, ~, ...
2
votes
1answer
647 views

Is here an editor for linux terminal like there is for MS-DOS?

I know that there is an editor built into MS-DOS, so you can create batch (.bat) files. But is there something like that for Linux Mint 12 terminal?
5
votes
3answers
428 views

Gedit or an other non-commandline editor with the ability to spell-check two languages at the same time

I'm searching for an editor with the ability to spell-check two languages at the same time (German and English). Gedit can't do it out of the box. But I want to use Gedit. It should be possible by ...
23
votes
10answers
3k views

Text editor with split screen option

Is there an editor which has the option to "split the screen" into two or more parts, accessing more than one file (possibly with a file tree) without opening more editor windows at once, and how ...
4
votes
3answers
1k views

vi/vim, how can I write out a number of lines to a new file

I have a bunch of lines that I want to write out to a different file. How can I do that?
3
votes
1answer
96 views

ed: set first line as the default current line

I am trying to use ed to edit the first line of a large file, but I have to wait for ed to read all lines. Is there any way I could stop ed from reading the whole file and start editing immediately, ...
14
votes
2answers
7k views

How do I change the default text editor in the Debian (squeeze) distro

"Joe's own editor" does not come naturally to me. How do I change to using nano or vim? I've tried export EDITOR=nano but it doesn't seem to be respected. I'd like visudo to respect this as well.
1
vote
4answers
125 views

“Multipass” scripted modification of large file in-place (file-system level)?

I have just came to the problem of having to cut some lines from a large (gigabyte) sized file, and being aware of potential CPU hog trying to read it in memory, I wanted to edit it in-place ...
1
vote
4answers
384 views

Is learning a text editor like vi necessary and still worth the time today? [closed]

I started a new internship where all the servers run on AIX. Logging in for the first time I was suprised to see that my favorite text editor nano was not installed. Everyone here uses vi not ...
2
votes
3answers
3k views

How to edit file on remote machine with text editor?

I am on a Windows machine, and I am using NoMachine to connect to a development box. Unfortunately, the box runs on RHEL5, so lots of software is not supported. I want to use Sublime Text. Is there a ...
2
votes
1answer
190 views

Beep when typing backslash in cvim normal mode

I installed the cvim plugin for vim. Almost all the cvim commands start with '\'. But I when enter this character in normal mode, all I hear is a beep. Nothing happens. What might be causing this ...
3
votes
4answers
2k views

Advantages (or downsides) of GVim over Vim to edit code

Should I install vim or GVim ? I develop mainly Ruby on Rails (I also use IDE's, but different topic). Are there any differences or advantage of using Gvim vs vim ?
2
votes
2answers
302 views

What is the difference between `terminator -e ranger` and ranger from terminal?

EDIT: I just noticed that when I hit Enter on the ranger (if it is executed with terminator -e ranger) then nano opens while with e it uses my main editor. In contrast, when I use a normal shell to ...
3
votes
2answers
946 views

In emacs (or other editor) how to display the byte offset of the cursor?

The question indicates my preference to use emacs, but the overriding issue is that I want to be able to do a normal text search and somehow see/copy-paste the byte-offset of the matched text. To ...
1
vote
1answer
327 views

How to make tab insert spaces in pico?

Most text editors have a setting for converting tabs to spaces. How would this be done in pico?
1
vote
2answers
978 views

Editing Adobe PageMaker (.pmd) files in debian

I'm using Linux-Mint-Debian as my primary (only) OS and would like to edit Adobe PageMaker (.pmd) files on it. I've read that Scribus is the open-source alternative for PageMaker on linux, but I'm ...
9
votes
3answers
1k views

How different is Elvis from Vim?

I've been using Slackware for a while now, which ships with Elvis as its default editor. Most other Linux distributions seem to ship with Vim, instead of Elvis. Having gotten quite used to Elvis, ...
0
votes
1answer
966 views

Linux mint 12: change default editor and terminal

I have the sublime text editor located in usr/bin. How can I make it the default editor so I can do sublime /var/www/test.php? And can I change the default terminal to yakuake?
17
votes
6answers
3k views

Advantages of using set -o vi

I have seen many developers using this command to set the option to vi. I never understood the real use of this? When using bash commands, what help does switching to vi provide?
2
votes
1answer
68 views

!fmt for current line only

When I want to format part of text with fmt in vim I usually select parts of interesting lines in Visual Mode, with: Ctrl+V Arrows, and than type !+f+m+t. When there are couple of lines they are ...
9
votes
1answer
903 views

Emacs: How to insert 'λ' instead of 'lambda' in Scheme mode?

Long ago, I came across a text editor function that replaced the word 'lambda' with the character 'λ'. I would like to do this in emacs. My preferences: I would like to activate this function in ...
3
votes
1answer
436 views

Using word wrap with mc

According to the man page for mc, the internal editor (mc -e) has a word wrap option. How can I turn this on? I have found settings in "Options" --> "General", however, this seems to only change text ...
11
votes
2answers
978 views

GNU emacs vs. XEmacs

After using Vim for the past couple of years, I'm switching to emacs as part of my "get out og your comfort zone" 2012 resolution. Although I have been using GNU Emacs for the past 10 days, I am ...
3
votes
3answers
457 views

Editor for markdown tables

Is there any tool for linux which makes it easier to generate and edit tables for markdown?
2
votes
1answer
147 views

Expanding text format in VI

The following code is taken from the superfish module for websites: (function($){$.fn.hoverIntent=function(f,g){var ...
1
vote
1answer
146 views

How to create and edit a text file from the bash shell

I am logged into a linux server via ssh. From the bash shell, is there any standard way of bringing up some kind of text editing environment so I can create and edit a text file? I am aware that there ...
4
votes
2answers
942 views

How to install light-weight vim and to be able to efficiently load files into one instance vim?

On my laptop with Ubuntu I'm able to have just one instance of vim, launched with vim --servername VIM After this I'm able to open files from console with vim --remote-silent filename I use ...
1
vote
3answers
2k views

What is the native Gnome equivalent for Kile?

I was using Kile for editing Latex documents, but after latest package upgrade (I am running Debian Testing) all Kde applications are running reeeeaaaallllly slow - so I am looking for a temporary ...
3
votes
0answers
561 views

In emacs, is there a way to Hex edit/view a buffer without losing the undo info?

When I use hexl-mode in emacs, it discards the buffer's undo info. Is there another way to hex-edit the buffer and yet retain the undo info? If there is no alternative hex-editor, is there a ...
3
votes
1answer
184 views

Emacsclient docs mention emulating Gnuclient. What is the relationship?

When opening a file in GNU Emacs GUI, I use gnuserv to attach to an already running emacs. I use 'gnuserv' only because the first documentation I read on the subject suggested it. Today I was ...
6
votes
2answers
145 views

What is the connection between a gedit bug and a Unix-&-Linux Q/A href?

While answering a Unix-&-Linux question, I observed that Gedit and two other editors, Leafpad and Medit (I tested 12 editors altogether) exhibit the a certain bug. As it turns out, the bug is ...
3
votes
1answer
911 views

How to 'UnJustify!' text in GNU nano

I enjoy using nano as a respite from my usual GTK-based text editor. I like the simplicity of the interface, and using CTRL-K is the fastest way I know of to edit down long textfiles. However, I have ...
2
votes
2answers
227 views

Drop into an editor from inside aspell

I'm writing my doctoral dissertation using vim and LaTeX, and I spell-check the document using aspell. Sometimes I run across an error that can't suitably be fixed using the built-in spell-check ...
8
votes
4answers
230 views

Is the `ed` editor useful for any purpose besides emergencies and batch editing?

I'm wondering if the ed editor is useful any longer for interactive editing. I know that the diff command can produce patches as ed scripts and that ed is a last resort when the baud rate is super ...
13
votes
2answers
1k views

GNU Emacs; Does the GUI version offer anything more than the ability to have a GUI menu?

I've been looking at GNU Emacs for a few months now, on and off (mainly off), and I've really only gone as far as testing a few basic things which I especially want in an editor... I'm slowly getting ...
2
votes
1answer
1k views

How to install color schemas for Kate running on GNOME

How do I install schemas(like this one; for syntax highlighting, etc) for Kate (which is originally for KDE) running on GNOME 3? Trying to install with the install.sh script took no effect. Also, if ...
2
votes
3answers
734 views

What a good text editor with RTL (right-to-left) support?

gvim doesn't seem to support it out of the box on my Ubuntu lucid.