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

learn more… | top users | synonyms

49
votes
4answers
120k views

How to split large file on Windows?

Is there a tool to split large text file (9Gb) into smaller files so that I can open it and look through? Anything usable from command line that comes with Windows (XP)? Or what's the best way to ...
37
votes
4answers
13k 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 ...
33
votes
4answers
20k views

How to make cut/copy/paste in GVim on Ubuntu work with Ctrl+X,Ctrl+C,Ctrl+V?

By default, the cut/copy/paste short-cuts in GVim on Ubuntu are: Cut "+x Copy "+y Paste "+gP I would like to use control key combos in GVim, like I use in Firefox and othe gnome ...
29
votes
5answers
16k views

emacs: how to indent/unindent region of python code by 4 spaces?

I have a region of python code selected in emacs. What are the most efficient ways to indent and unindent every line in it by 4 spaces? Ideally I'd like something that's not context sensitive (eg. ...
27
votes
4answers
5k views

How reverse selected lines order in vim?

For example, if I have four lines as follows: the first line the second line the third line the fourth line I want to reverse them to the fourth line the third line the second ...
23
votes
13answers
11k views

Best LaTeX Editor [closed]

What's the best LaTeX editor you've used, and what would you recommend someone read to understand and become proficient with authoring papers/books in LaTeX?
21
votes
3answers
26k views

Replace \r\n with newline in Notepad++

How do I replace the string "\r\n" with the same characters? Example: Hello World.\r\nHello World. replaced with: Hello World. Hello World.
20
votes
5answers
168k views

How to write multi lines in one Excel cell?

I want to write multi-lines in one MS Excel cell. But whenever I press the Enter key, the cell editing ends and the cursor moves to next cell. How can I avoid this?
20
votes
3answers
6k 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 ...
19
votes
10answers
30k views

Convert unix line endings to windows

I recently moved back to Windows from Linux. I have some files with CRLFs, some with LFs and some that are mixed. Is there a utility that will help me find all my Unix-touched files and convert them ...
18
votes
3answers
19k views

Converting CSV to fixed-width in Notepad++?

Is there a way in Notepad++ to convert a comma-separated file to fixed width columns? This feature exists in UltraEdit and explained in Working with CSV files, but I am happy with my Notepad++, and I ...
16
votes
4answers
51k views

How can I edit Unicode text in Notepad++?

Sometimes I edit English text that includes Unicode characters. For some reason, on my PC, Notepad++ converts Unicode characters to ???'s thereby corrupting the text and losing all that data. I'm ...
15
votes
6answers
15k views

Can you edit the contents of an Excel cell without having to double click it?

I have a list of about 10,000 name/addresses that I have to manually cleanse in Excel (fun!). As you can imagine, having to double click to enter almost every cell to edit it is a drag. And it's ...
14
votes
5answers
576 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 ...
13
votes
3answers
1k 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 ...
12
votes
13answers
1k views

What Vim features do you use? [closed]

I spend almost all day programming in Vim and I am sure that a lot of you do too. What features do you use that make your day to day coding that much better? One that I use is gv, which will let ...
11
votes
4answers
6k views

Ctrl+Backspace inserts a small box instead of erasing

When I press Ctrl+Backspace, sometimes a small square is inserted, instead of the entire word being erased. If I copy and paste the character here, I get this: ``. But it doesn’t look quite like that ...
10
votes
8answers
8k 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++, ...
8
votes
5answers
22k views

What is the closest thing to Windows notepad on the Mac?

What is the closest thing to Windows notepad on the Mac? I'm using Leopard.
8
votes
5answers
8k views

Where's my Open-With gVim context menu option in Windows 7?

I have gVim installed. Under Vista and XP, this offered me an addition to either the object context menu of "Edit with gVim", or an addtion to the "Open With" context menu of "gVim". This would let ...
8
votes
7answers
10k views

What is a good, simple and free HTML Editor for Windows? [closed]

Are there any good, simple and free HTML Editors for windows out there? Something that a user with no experience can build a simple page. Edit: I'm looking for something like the old Frontpage ...
8
votes
6answers
1k views

Free tool for graphical representations of XML files [closed]

I need a tool which displays an XML file in a nice way. With "nice way" I mean a way on which I can fold and unfold all the nodes. Is there any free tool that runs on Windows Vista that does this ...
7
votes
5answers
2k views

How can I justify plain text in Linux?

I'm composing a plain text (.txt) document that has left-and-right justified paragraphs. I manually add spaces, breaking words with hyphens if necessary, until the lines are uniform length. To use an ...
7
votes
3answers
11k 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 ...
7
votes
2answers
12k views

Notepad++ inserting special Unicode characters in UTF-8

What's the best ways to enter special Unicode characters into a Notepad++ document? Do I have to rely on the operating system (Windows)? Looking for a see-and-click solution. I can bring up the ...
6
votes
5answers
6k views

Is there a VI equivalent I can use on Windows XP and later?

I get frustrated using Notepad on my Windows XP machine when I want to do more complicated text manipulation. Having used VI on various versions of UNIX I'd like to get something with its power on my ...
6
votes
12answers
4k views

Parsing text files

I encountered a situation tonight where I wanted to parse a text file. I had a very, very long word list that contained English words delimited by lines. I wanted to get rid of every word (or line) ...
6
votes
5answers
2k views

How do I delete the next line in vim?

In emacs, whenever I want to delete a few lines of text, I just use C-k until all the text is gone. However, in vim it seems a bit more complex. I know I can do d$ to delete until the end of the ...
6
votes
3answers
2k views

What is a CUA editor?

A term I hear now and then is a "CUA" text editor. What is a CUA editor?
6
votes
4answers
12k views

Text / log editor with auto-refresh support

I'm looking for a text editor / log manager of some kind that will automatically refresh a file's contents when it changes. I have a single target log file (e.g. current.log) that is overwritten ...
6
votes
4answers
2k views

How to delete each number at the beginning of a line in Notepad or Microsoft Word?

I have a list like this: 1 http:// 2 http:// 3 http:// 4 http:// 5 http:// I would like to remove 1,2,3,4,5 without doing this manually for each line. The only tool I am using is notepad in a bare ...
6
votes
6answers
1k views

Small, light text editor / note taker with built-in strong encryption?

I've been using a little app called SafeSex to jot down notes securely; however it's not been maintained for ages and lacks polish. However, it does have Blowfish encryption built-in. My question is: ...
5
votes
5answers
2k views

Ubuntu vi Acting Strange

I just installed Ubuntu Server 8 and found vi to be acting strangely (compared to vi on Fedora, CentOS and OSX). When I use the 'a' command to enter text, pressing the arrow keys results in "C", "D", ...
5
votes
5answers
2k views

Remote edit with local editor (Linux)

I have a server I can ssh into, and I am also running Ubuntu. How do I edit this remote file using any program I have installed on my local Ubuntu, without copying it to local, editing it, and copying ...
5
votes
3answers
648 views

Clipboard addon to remove text formatting

I was just wondering if anyone know of a Windows application that will remove formatting from any text in the clipboard? So if I copy something from Word into another document, the content is pasted ...
5
votes
3answers
7k views

Why does the margin on a numbered list over 99 become large (2007 Word)?

Have a numbered list in 2007 Word. Everything was fine until item 100. At 100 and on, the margin between the number and the text is very large. How do I make it normal? Thanks! i.e.- 98. ...
5
votes
2answers
1k views

Free program to scan a directory of text files and replace certain strings

I need a free program that can scan all .xml files in a directory and replace a certain string occurrence.
5
votes
2answers
7k views

How to distinguish between \r\n and \n in VIM

In VIM I can show all the hidden characters in a file via the command ":set invlist". However, end of line sequences are always displayed as $ whether it is a carriage return/line feed or just a line ...
5
votes
2answers
2k views

Windows Text Editor With SCP Support and No Install

Is there a programmer's text editor (line numbers, syntax highlighting) for Windows 7 that offers Edit in Place via SCP A non-administrator instalation/runs without instalation Free is nice, ...
5
votes
3answers
3k views

Show/Hide function folding margin on Notepad++

Is it possible to get rid of the function folding margin on Notepad++? It seems like the sort of thing that should be in the prefs but I'm not seeing it anywhere.
5
votes
3answers
1k views

Beyond-compare wont ignore line-breaks?

I have this comparison : I want those line to be treated equal. but it showes me they are different. I already applied those settings : What am I doing wrong ?
5
votes
1answer
1k views

“Overtype” mode in MS Powerpoint 2007?

is there any way to turn on the "Overtyping" feature in Powerpoint 2007 (you press the Insert key and then typing new characters replaces any existing characters to the right side of the insertion ...
4
votes
4answers
9k views

Delete blank lines from a text file

I am trying to delete all the blank lines in a text file. Is there a quick way to do this? What I have line one line two What I want line one line two I am using Notepad++, so a solution using ...
4
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?
4
votes
2answers
548 views

How to perform search and replace in lots of files with Emacs at once?

I'm looking for a solution to how to perform a search and replace in all files in a directory using Emacs.
4
votes
2answers
4k views

Cygwin - how to edit a read only file?

I'm trying to edit /etc/hosts using Vi in Cygwin but it's read only. Is there a command similar to sudo? How do I edit a read-only file? Thanks
4
votes
4answers
5k views

How do I convert a column of text to upper case in Excel 2007 without creating a new column?

I know that you can use formulas and convert the data that way, but how can I convert to Upper (or Lower or proper) in place? Is there an easy way built into excel to instruct a non-superuser with?
4
votes
1answer
1k views

How to select non contiguous lines of code in Notepad++?

What key enables the selection of non-consecutive lines in notepad++ ? I have some Matlab code I have edited with notepad++. I would like to select distinct (non consecutive) blocks of code in order ...
4
votes
2answers
502 views

Text files on linux have “<97>” characters

When viewing a particular text file in vim or less on Linux or OS X, all the en dashes show up as highlighted "<97>" characters. What control-sequence do I need to type in order to substitute the ...
4
votes
2answers
830 views

Split a large text file

I have a large text file grouped with separate headers that I need to split into separate files. For instance the file has headers like this: --Heading 1-- some text text --Heading 2-- more text ...