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

learn more… | top users | synonyms

50
votes
4answers
138k 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 ...
42
votes
4answers
18k 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 ...
38
votes
4answers
22k 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 ...
32
votes
4answers
6k 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 ...
32
votes
6answers
18k 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
5answers
234k 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?
24
votes
3answers
30k 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.
23
votes
13answers
12k 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?
22
votes
11answers
32k 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 ...
22
votes
3answers
23k 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 ...
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 ...
17
votes
7answers
21k 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 ...
16
votes
5answers
59k 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
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 ...
14
votes
5answers
587 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
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
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++, ...
11
votes
4answers
8k 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 ...
9
votes
5answers
28k 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
11k 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
5answers
3k 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 ...
8
votes
6answers
2k 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
4answers
13k 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 ...
7
votes
3answers
13k 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
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.
7
votes
2answers
17k 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
7k 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
3k 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
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
4answers
8k 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. ...
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: ...
6
votes
3answers
2k 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
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
5answers
3k 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
4answers
2k 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?
5
votes
3answers
675 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
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
8k 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
1answer
4k views

Is it possible to view two files simultaneously in Geany?

I tend to be a simple text editor user, but when I want IDE-like features, I've been using Geany. One thing I find bothersome about it, though, is I can see only one file at a time. Sometimes I want ...
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
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 ...
5
votes
1answer
934 views

Transpose words in Sublime Text 3

In Sublime Text 2, I'm able to transpose two words by placing the cursor on the space between them and pressing Ctrl+T. However, in Sublime Text 3 (build 3059 on OS X Mavericks), I get the default OS ...
5
votes
1answer
2k 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
2answers
595 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
1answer
948 views

Remove Byte Order Mark (BOM)

Background Run SQL files using pgsql that were edited with gVim on Windows. Problem The BOM character causes syntax errors with pgsql. I would like to edit files using gVim and, when saved, no ...