Text editing is the process of selecting and preparing text [files].

learn more… | top users | synonyms

1
vote
1answer
3k views

Replace text when in visual-block mode

Maybe I'm searching the wrong way, but I've failed to find out how to do this. Here's the scenario: I have a list in a text file where I want to insert the same word on multiple lines, here's an ...
1
vote
1answer
3k views

How to change the text direction on Windows?

Sometimes when I'm typing, text orientation changes from LTR to RTL, but I am not able to find any shortcut to change the text direction on Windows. How can I change the text direction inside a text ...
0
votes
1answer
97 views

How can I switch vim mode quickly?

This question is not the same as In vim, how can I quickly switch between tabs?, but what I want is a bit similar to it, since we are all trying to find shortcuts when editing with vim:) Now I am in ...
2
votes
3answers
403 views

Adding text to the beginning and end of a number of files?

I have a number of files in a directory hierarchy. For each file, I'd like to add "abcdef" to the beginning, on its own line, and "ghijkl" to the end, on its own line. For example, if the files ...
3
votes
5answers
6k views

How to split a text file into multiple text files

I have a text file called entry.txt that contains the following: [ entry1 ] 1239 1240 1242 1391 1392 1394 1486 1487 1489 1600 1601 1603 1657 1658 1660 2075 2076 2078 2322 2323 2325 2740 2741 2743 ...
5
votes
4answers
1k views

How can I edit a file if there is no vi, vim, joe, etc?

Is there a way to edit a file if there are no vi, vim, joe, mcedit? In another words is there a way to edit a file using just the shell commands?
3
votes
2answers
1k views

How can I edit file permissions (e.g. make script files executable) from within Sublime Text 2?

When writing e.g. shell scripts, I want to change their permissions (primarily the executable permission) from within Sublime Text 2. How can I accomplish that?
10
votes
8answers
9k views

Notepad++ - Removing the first column in a comma separated file

I have a large CSV file that I need to remove the first column of data. I cannot open it in Excel because Excel converts some of the values in the columns to scientific numbers. I am using Notepad++, ...
42
votes
4answers
17k views

How can I filter a file for lines containing a string in Sublime Text 2?

I want to filter a file I'm editing in Sublime Text 2 for lines contain a certain string, if possible including regular expressions. Consider the following file: foo bar baz qux quuux baz When ...
1
vote
1answer
2k views

Replacing timestamps in Notepad++

I have a log file with time stamps on each line such as 2012-06-26 21:31:40 Killshot: Something, Something... 2012-06-26 21:31:40 Killed [player name] 2012-06-26 21:31:40 Executing Death Sequence ...
0
votes
1answer
741 views

How can I find and replace multiple blocks of text in multiple documents all at once?

I tried searching for this everywhere but couldn't find any solution. I have 100 html pages with various text to translate. I have also the translated text ready on a word document. So what I have to ...
1
vote
1answer
950 views

How to remove blank lines in .txt files

I want to change a text file's format, removing all blank lines. How can I do that? (2) 5. The function of the condenser is to: a) vapourise the liquid refrigerant b) change ...
2
votes
3answers
422 views

How to substitute multiple lines between delimiters

Given the text example: .... text ,.. {{{python string1 = 'abcde' string2 = '12345' print(string1[[1:3]]) print(string2[[:-1]]) }}} .... text ,.. The [[ and ]] also appear outside of {{{ too. ...
2
votes
1answer
459 views

looking for an alternative to refile in orgmode for emacs

In emacs/orgmode there is something called refile. you select text, hit refile and you get a list of your outline headlines, select one and your text goes there. Can I achieve something like this in ...
2
votes
2answers
261 views

Transpose emacs rectangles

Suppose I have this text: RUN_ RUN_ RUN_ RUN_ RUN_ and want this one: RUN_A RUN_B RUN_C RUN_D RUN_E I would like to be able to write ABCDE and somehow `transpose' it and kill-yank it as a ...
2
votes
2answers
178 views

Delete until character is found

In my text editor, I would like to define a keyboard shortcut (say, CTRL-D) with "delete until character is found" functionality. For example, if the cursor is placed before the "H" of this text: ...
7
votes
3answers
12k views

Selecting range of lines in Notepad ++

How do I select specific range of lines in Notepad++ quickly? I have a text file that has over 1M of lines and I need to delete some fragments from it, but selecting lines manually just takes too much ...
-1
votes
2answers
274 views

Find and Replace using different keywords

Example. I want to find and replace using: Test1 Test2 Test3 Of course I have to input and click it 3 times in order for me to find and replace using those terms. How do I do it in one shot? Does ...
1
vote
1answer
130 views

Which editor can I use to create a nested hierarchy?

I'm using OpenOffice (don't have Microsoft Office). I'm designing an application and I want to create a hierarchy similar to what the image below shows. There can be several nested levels of ...
3
votes
3answers
285 views

“Drag” selected text using the keyboard?

If I select some text in a text input field/area/window, I can drag that text to another position somewhere within the text area using the mouse. Is it possible to do this dragging using the keyboard? ...
0
votes
1answer
139 views

Emacs c-mode can't recognize utf-8?

I need to read one C++ head file which has some Chinese and was encoded using utf-8. Emacs should recognize this encoding, but it turns out: Then, I changed it to text-mode, it works: I also ...
22
votes
3answers
7k views

Turn Off Parenthesis Matching in Sublime Text 2

I have questions about turn off parenthesis matching. Does anyone know how to turn off parenthesis matching? example: When I type a (, it will automatically add ), becomes (). It's pretty nice for ...
2
votes
2answers
409 views

trimming an XML file the dumb way

(see solution below) I have XML files which I parse with a Python script (I did not write it but it does the job perfectly). The problem is that the XML file is large (~ 1GB) and the parsing take ...
2
votes
1answer
2k views

Toggle between column selection and regular selection in Sublime Text 2

In Textmate, I can make a regular multiline selection using the keyboard and switch to column selection mode by pressing the alt (⌥) key. I have not found a similar way of doing this in Sublime Text ...
0
votes
1answer
275 views

Batch transpose a comma separated file

I'd like to reorder a file with a batch from this schema: Default Web Site;anonymousAuthentication Default Web Site;windowsAuthentication Daisy;anonymousAuthentication Daisy;windowsAuthentication ...
0
votes
3answers
113 views

Process plain text data

I've this plain text file that I need to be automatically examined and results written in another plain text file. Note that I'll use plain text and CSV interchangeably, since CSVs are plain text ...
1
vote
1answer
268 views

Change data from columns to nested list

I need to move data from this format: node 1 node 12 node 121 node 1 node 12 node 122 node 1 node 13 To this one: node 1 node 12 node 121 node 122 node 13 Is there an ...
1
vote
1answer
2k views

Search & replace with wildcards and variable length strings in Notepad++

I am trying to edit a series of strings in Notepad++ using search & replace. What I'd like to do is to search for a particular piece of HTML code, then delete a portion of it. The challenging ...
0
votes
1answer
68 views

Is there way to add Language shortcuts in Mac OS X?

On iOS, I could add a language short cut easily in settings. Like gd stands for "have a good day". Is there a way of doing that on a Mac? I don't know if this is even possible since OS X doesn't ...
2
votes
0answers
71 views

Swapping two values without using an intermediate one

In a given text file, generally speaking, if I want to swap two things, say the word apple with the word orange, and both exist in the document, then I first have to change one of them to something ...
1
vote
1answer
583 views

How can I avoid using the cursor keys in Notepad++?

I've started programming after an 8 year break. I'm using Notepad++ and I like it, but taking my hand away from the main keyboard to the cursor keys to get around the file is really slowing me down. ...
1
vote
2answers
160 views

How do I split a wrapped numeric list into several lines?

I have some text in this format all on 1 line: 1v YHWH said, Let us make man in our image, after our likeness, and God created man in his own image. 2v And God formed man from the ground, and he ...
5
votes
1answer
2k views

Is there a difference between the tab symbols when using “Show White Space and TAB”?

I have a tab-delimited file that I have opened in Notepad++, was having trouble parsing it, so turned on View->Show Symbol->Show White Space and TAB. I noticed that there were two different types of ...
0
votes
1answer
607 views

Different Font styles in Editplus

I would like to have keywords to be appear Bold and variable names,Comments and Strings should be in normal style. is that possible
1
vote
0answers
328 views

Unicode problems in Mini Lyrics

Shri guru granth sahib ji is epic granth for sikhs. I am working on the project for creating karaoke of guru granth sahib. I am using Mini Lyrics for this for synchronizing speech to text. But this ...
15
votes
3answers
2k views

Edit one file in two different buffers in emacs

I would like to open the file foo.bar twice (or more) in emacs, so I can edit two different parts of it simultaneously. Is it possible? Probably the better question is, how to do it? Is there a way to ...
1
vote
3answers
173 views

Edit a very large textfile [duplicate]

Possible Duplicate: Is there a text editor for very big files? I've a 3 gigabytes big log file and I have to edit just a few rows. With Notepad++, I can't edit the file at all. Does ...
4
votes
1answer
503 views

How to do a search-and-replace in Opera for textarea context?

How do I do a search-and-replace in Opera for a textarea's context? I have a web page with html form and I need to input and edit large text in this form. Easy example: Stay on this page, scroll ...
4
votes
2answers
121 views

Getting vi/vim syntax highlighting used by certain user

At work most web-development we do, is done in vi/vim, on a debian-server. Sometimes we have to alter some files as root, and the syntax-highlighting-model of that user (root) is absolutely awesome. ...
2
votes
2answers
2k views

What's is the easiest way to append ';' to the end of lines which contain the char ':'?

I have a text file, whose content is like: body font-size: 12px color: blue td font-size: 14px ... I want to append ; to the lines which contain :, so the content will be: body ...
1
vote
1answer
786 views

Is it possible to type a floating “c” letter?

I have a close friend that has a Scottish surname "McGregor". However the "c" in the name needs to be aligned to the top of the "M". I have searched through alt codes but cannot spot it anywhere. Does ...
1
vote
4answers
10k views

How do I insert line breaks into a text file - not programming, not fixed width - via find & replace

This is a different from someone else's similarly-titled question. Neither Excel nor OpenOffice allow users to specify line delimiters, so I'm trying to replace semi-colons with line breaks. How do I ...
1
vote
2answers
94 views

How can I use the vim editor to format the text like this?

I have a data.txt file, the data format is something like this: a|Êó• a|Êõ∞ a|Ôõ∏ a|Ôùã aa|Êòå aa|Êòç aaa|Êô∂ aamh|Êöò all I would like to do is convert the following text into this result: 'a' ...
0
votes
2answers
5k views

What is the ^I character and how do I find it with sed?

I usually import data from csv files to MySQL, but my data provider leaves NULL entries as "", so I need to replace "" with "\N". This is easy enough with a script like for csvfile in *.csv do ...
1
vote
2answers
5k views

Can't edit Microsoft Word template

I am trying to change an existing Microsoft Word template. It's the 28 line legal pleading template found here: ...
14
votes
5answers
584 views

Match and delete in Notepad++

I have the following text in Notepad++. 192.168.0.1 37 ms N/A 192.168.0.2 Dead N/S 192.168.0.3 ...
0
votes
2answers
198 views

Is there a fast way to change multiple links in a HTML file?

I have a HTML file containing the code for an image map with over 200 links, like this: <area shape="RECT" coords="410, 7, 438, 35" href="/ItemDetails.jsp?item=os_landranger_1"/> The problem ...
2
votes
1answer
1k views

Is it possible to change the default text cursor orientation from vertical to horizontal?

In almost any application or Windows component, the text cursor usually appears as a vertical black line -- in Notepad, browser address bar, the Run window. Is there a setting I can tweak in the ...
0
votes
1answer
89 views

How to do Linux-like file modifications on Windows command line?

I need to do some more or less easy replacements in certain files on Windows machines. This is part of an automated software build process, so to be able to reproduce it on all build mashines I ...
1
vote
1answer
809 views

Changing text in current visual selection in Vim

I have some part of a line visually selected. I would like to remove all non-word characters in the selection and replace all whitespace characters with underscores. How would I go on about this?