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

learn more… | top users | synonyms (2)

0
votes
3answers
425 views

Text editor with indented word wrapping

I've been using Notepad++ in windows for a while and it has a cool feature for word wrapping so that the wrapped text is indented. That is the start of the sentence starts at column 1, but wrapped ...
6
votes
3answers
3k views

vi / vim - how to automatically strip trailing spaces on save?

Is there a .vimrc setting to automatically remove trailing whitespace when saving a file? Ideally (to be safe) I would like to only have this functionality for certain files, e.g. *.rb
0
votes
1answer
112 views

vi / vim - extra indents when pasting text? [duplicate]

I can copy characters in other apps such as browsers with ctrlc. I can then press i to enter insert mode in vim and press shiftctrlv to paste the text in. The problem is that each line gets indented ...
2
votes
3answers
136 views

Can I bridge “backwards” from an ssh connection to my local emacs-server?

I'd very much like to log in to a remote machine with ssh and via the $EDITOR environment variable (or something similar) be able to edit in my local Emacs. In this case, specifically for when I log ...
4
votes
2answers
627 views

vim shortcut to open a file under cursor in an already opened window

In vim you can open a file under the cursor by using the gf command. One can also easily open that file in a new split window by hitting <c-w> f. This is a really nice and time saving feature. ...
5
votes
4answers
178 views

Is it possible to have more than just one backup when editing text files?

Gedit and medit are two text editors that I know of that allow me to save a backup. So, if I create a file called temp.txt the next time I edit it and then save it, I'll have a backup called ...
3
votes
2answers
518 views

I need a text editor to edit/visualize >10GB text files

So as to vizualize, and hopefully edit, a very large text file, more than 10GBytes (a backup dump of whole database), I have tried using vim... it didn't behave very well. I have also tried cat to at ...
0
votes
1answer
58 views

Select line not selecting whitespace

Is there a way to select (or paste) text without trailing/ending whitespace? eg. To copy the whole line I press y, to paste it somewhere else I use p, but it pastes the whole text with the trailing ...
0
votes
1answer
610 views

Comparable editor for gedit with less dependencies?

I want to leave Gnome and install awesome on debian squeeze or wheezy, but I really can't work without gedit. Is there any text editor like gedit capable of editing columns, highlighting nearly any ...
1
vote
2answers
1k views

Align columns in ASCII file

I have a text file that looks like his: #c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 4599 995,274 2523,658 ...
1
vote
2answers
70 views

Latex auto package loading

In Windows, TexWorks loads the missing sty packages itself. In Linux it doesn't: how is this sty loading managed in Linux?
9
votes
1answer
2k views

Vim: Making XML text “pretty”

Is there an easy way within vi to make your XML text "pretty"? For example: I want this.. <person> <name>Nick</name> <age>26</age> ...
3
votes
1answer
136 views

How to display the permissions of a new file in the status line of the Vim editor?

With the following piece of code I get the permissions for an existing file: augroup Get_file_perm autocmd! autocmd BufWinEnter,FileChangedShell * let w:file_perm=getfperm(expand('%:p')) augroup ...
7
votes
2answers
2k 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
571 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 ...
3
votes
2answers
7k 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
85 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
108 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...
12
votes
9answers
4k 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 ...
5
votes
7answers
2k 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
144 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
2k 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
204 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. ...
8
votes
2answers
165 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
798 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 ...
9
votes
2answers
10k 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
754 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
498 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
4k 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 ...
5
votes
3answers
4k 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
102 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, ...
23
votes
2answers
16k 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
132 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
511 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
4k 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
228 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
5k 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
369 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
1k 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
438 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
1k 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 ...
0
votes
1answer
1k 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?
2
votes
1answer
72 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 ...
3
votes
1answer
583 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 ...
3
votes
3answers
691 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
182 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
165 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
1k 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
3k 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 ...
6
votes
2answers
151 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 ...