A text editor is a type of program used for editing plain text files.
0
votes
3answers
40 views
Make VIM act as Notepad++ on mixed line endings
I've googled all around and found tons of weird solutions to ^M problem, but couldn't find one and simple: how could I just open any file, like in Notepad++ and work on it? I don't want to mess with ...
1
vote
1answer
16 views
Vim Visual Mode - is there a way to change the background color only when in visual mode?
I forgot which mode I am in using VIM so I set this up in my .vimrc so that I easily know I am in Insert mode as the background changes to Yellow
:au InsertEnter * hi Normal term=reverse ...
1
vote
4answers
104 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 ...
2
votes
1answer
133 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
1answer
68 views
Save HTML from clipboard as markdown text
I want to be able to highlight a section of a web page and copy it to the clipboard then save it to my local disk as markdown. I need an efficient way to do that.
My current cumbersome method is:
...
1
vote
1answer
34 views
How does one find and replace text with geany in all files in a directory?
I see this discussion: How does one find and replace text in all open files with geany?
I want to find and replace all files in a directory. The method suggested in the answer, is very good to find. ...
3
votes
1answer
753 views
How does one find and replace text in all open files with geany?
How does one find and replace text in all open files with geany?
3
votes
4answers
194 views
Using Linux text editor to prepare content for Microsoft Word
I need to prepare a long manuscript that must be submitted in a Microsoft Word document in order to meet the submission criteria. (Please no "Don't use Word" comments.)
I want to use a text editor on ...
4
votes
4answers
167 views
What is the `editor` command in bash?
I was looking for a command that would hopefully open the current user's favourite text editor, because I am writing out some instructions with commands in a blog. I was expecting a command like edit, ...
1
vote
1answer
51 views
Problem when changing the font size in nedit
Whenever I open Nedit, the following error appears ----
Cannot convert string "-*-helvetica-medium-r-normal-*-*-120-*-*-*-iso8859-1" to type FontStruct
Cannot convert string ...
0
votes
3answers
64 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 ...
3
votes
3answers
123 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
58 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
61 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 ...
3
votes
2answers
51 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. ...
4
votes
2answers
174 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 ...
5
votes
3answers
113 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
118 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 ...
2
votes
2answers
2k views
How does one find and replace text in all open files with kate?
How does one find and replace text in all open files with kate?
2
votes
0answers
33 views
Kate editor: how to jump to modified lines?
Say I'm editing a long document and I have made a number of changes. I want to be able to jump to each changed line. Is there a way to do this?
I know about line modification indicators and I have ...
0
votes
1answer
31 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
151 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 ...
3
votes
5answers
1k 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 ...
0
votes
2answers
141 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
56 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?
2
votes
6answers
670 views
Can you recommend a GUI text editor for a developer (features needed are inside)?
F-cked up with all IDE bloatware (for my purposes they are all overcomplicated and inconvenient), I came to an idea, that I'd probably better use a good editor than an IDE.
I DON'T need projects, I ...
7
votes
1answer
153 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>
...
109
votes
14answers
26k views
vim vs. emacs… and no, this is not a flame war
How would you compare these editors? What are the pros and cons of each?
[note] This is not meant to be answered by those who "hate one and love another" or those who haven't used both.
3
votes
1answer
70 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 ...
8
votes
2answers
90 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/^$/./
2
votes
3answers
2k 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 ...
0
votes
1answer
281 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
1k 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 found ...
1
vote
1answer
71 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 ...
9
votes
3answers
410 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 ...
1
vote
5answers
92 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...
6
votes
4answers
5k views
How do I quit from Vi?
I started Vi on my Ubuntu machine. However I don't know Vi, and now I can not quit. I see the editor and I can write text, at the bottom line there is a label "recording".
How do I quit from Vi?
3
votes
2answers
558 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
2answers
232 views
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?
3
votes
2answers
121 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
683 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
121 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
64 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
2k 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, ~, ...
5
votes
3answers
318 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 ...
22
votes
10answers
2k 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 ...
2
votes
1answer
477 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?
0
votes
0answers
139 views
Adding intellisense features to emacs for perl programming [closed]
How do I go about adding Intellisense-like features to emacs for perl programming? In particular, I'm looking for:
Auto-complete/suggestions
Syntax highlighting
Indentation
I looked around on ...
3
votes
3answers
305 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
88 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, ...


