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

learn more… | top users | synonyms (2)

1
vote
0answers
21 views

Manjaro: Change default text editor to Sublime Text 3

I recently installed Manjaro Linux. I love everything so far, but I have been having some issues with my favorite text editor, Sublime Text 3. I installed it from Octopi, but I can't run it from the ...
0
votes
0answers
17 views

Console hex/ascii editor w/ a cut function [migrated]

Can you recommend a console hex/ascii editor w/ a decent cut function (which would allow to cut blocks e.g. from the middle of file)? Something which wouldn't be blue all over the place like Norton ...
2
votes
0answers
43 views

Text editor that allows for coloring of arbitrary text (and exporting thereof)?

I have a rather large backtrace, which is kind of difficult to read, so I thought I'd color the portions of the backtrace text for easier reading. (I thought, as a backtrace problem, this question is ...
3
votes
1answer
91 views

How can apropos find emacs?

Funny thing is, after 25 years of hearing what apropos can do -- 25 years ago I didn't understand what it can do -- yesterday I just found that it is for making suggestions for what tools or command ...
0
votes
1answer
22 views

syntax highlghting in vim

I have text files which have extensions *.sc. So to make syntax highlighting for some of the keywords in that type of text files I created ~/.vim/syntax/sc.cim. Below is the file content. user $ cd ...
1
vote
2answers
96 views

notepad++ adds \r to shell scripts [closed]

I noticed notepad++ adds characters when writing bash scripts. For example a simple wait script written in notepad++ it adds \r breaking the script. The standard windows notepad does not have this ...
0
votes
2answers
20 views

Need help copying text from a webpage into vi?

I have this wall of text open on my browser that I need to copy and paste into vi in order to edit it. I tried controlC and controlV and it didn't work. I tried looking online, but everyone said to ...
0
votes
2answers
70 views

Opened file with several million lines: how to close it?

I've just accidentally opened rockyou.txt in Kali Linux on a fairly slow computer. It has now been sitting on the desktop loading the 30million words for over an hour. It is not frozen, as I can still ...
2
votes
1answer
69 views

Move one screen row up/down in a multi-line text

I have a multiline text in my Vim editor as, One line of text is spread across multiple lines as shown above. For editing, i would like to move up/down one display line (screen-row) at a time. But ...
1
vote
2answers
42 views

Any text-editor which list numbers of words in a file?

Does anybody of a GUI FOSS text-editor which shows number of words by default in a document. If not the one in which having such a preference is the easiest. I am looking for a text-editor which ...
1
vote
2answers
57 views

What's the best way display tabs/spaces in my plain text files

I have a file that unfortunately contains both tabs and spaces. How do I display them so I know if a particular space is actually tab or space?
1
vote
1answer
38 views

Text Editor like WordGrinder [closed]

I like to write text files in an CLI environment. No distractions. However, the problem is that the common editors like vim, nano, joe are not suited to - and not intended for - writing large amounts ...
0
votes
0answers
31 views

Kate Editor - insert document properties such as file name into text

I would like to insert the file name and other document properties into the text of the document automatically in Kate. Is there a code that will do this? I'm thinking about something like the ...
1
vote
4answers
55 views

Is there a text-editor in GNU/Linux where CTRL++ for making font bigger works?

In GNU/Linux all the text editors I have used I have go to and make the font bigger size via going through the menu. Is there a text-editor where you can use or bind CTRL++ and CTRL+- to zoom in and ...
0
votes
1answer
211 views

Installing Atom editor on RedHat (Scientific) without root priviliges

I'm on the verge of giving up installing the atom editor on a university machine to which I don't have root access to. The instructions on the Github page for building from source require some ...
0
votes
0answers
29 views

Polish–Vietnamese mojibake in a .txt file, using LibreOffice, mousepad, and vim

I have a trouble with some .txt file. When I try open it with mousepad, vim or LibreOffice Writer in every case some Polish letters are changing to another, incorrectly (i.e. correct char ś and ć are ...
5
votes
1answer
180 views

Why are mtime and ctime changing for a directory when a file is modified?

I am learning about atime, ctime, mtime with regard to files and directories. It seems to me that if I modify a file within a directory, I haven't changed the "directory file" itself in its inode or ...
4
votes
2answers
34 views

Edit columnar data in vim

Data Name Age Madhavan 29 saravana<Tab Press> ! How can i edit this data in vim in a tabular fashion? When i press tab key from column 1 in row 3, ...
2
votes
0answers
25 views

Specify the format of application temp/backup files in kde

Many text editors will create temporary or backup files with the format <filename>~. Because of this, folders appear very cluttered with tons of files duplicated in this way ( <original> ...
2
votes
1answer
115 views

Editing multiple files simultaneously with vim/gedit

I'm trying to save some work by editing multiple files with the same name located in different directories: $ mkdir -p directory_{0..10}/results How may I create files with the same name in all ...
1
vote
1answer
213 views

How to reset Kate default color schemes?

I accidentally changed some of Kate's default color schemes. How do I set them back to default? I tried reinstalling (including with the option to remove config files) but it kept my changes.
0
votes
1answer
56 views

color scheme setup for iTerm

How do you setup color scheme of iTerm on Mac? For color scheme, I mean using different color to display folder name, file name, machine name, etc.
28
votes
4answers
5k views

How do I remotely edit files via ssh?

I have to edit some files placed on some server I could reach via ssh. I would prefer to edit these files in customized vim on my workstation (I have not rights to change vim settings on remote ...
2
votes
1answer
93 views

How to configure Alpine to use an alternate editor on Mac OS X?

I'm considering using Alpine on OS X (Yosemite). I have most things configured, but I want to be able to use a GUI text editor (specifically OS X's TextEdit) as the Alpine alternative editor, so that ...
2
votes
1answer
133 views

Color syntax highlighting working on one system but not the others. Same nanorc file

I'm trying to set my color syntax highlighting in nano, but it doesn't work as expected. One system everything works. This is an Fedora 21 laptop. Two systems everything I've tried except man ...
0
votes
1answer
166 views

Modify part of line if keyword is found using sed? [duplicate]

I want to modify a line if a specific keyword is found in a line. CS_CODE, SM_NUM, PORT_NUM, DEV_PORT_NUM, DIRNUM, MAIN_DIRNUM, BILL_NO, ADR_NAME In above line, if 'PORT_NUM' is present then ...
0
votes
0answers
64 views

How do I edit files in LXC?

I have a Centos 6.6 running on lxc. I would like to edit files using Sublime or Gedit but not as a root user. Presently I do a gksudo editor and then open rootfs folder. Is there a better way of doing ...
0
votes
1answer
59 views

How to switch from input mode into command mode in ed ?

As far as I know, ed starts in command mode. Once I input i,a or c ed changes into input mode. So far it worked. Now I read that in order to switch from input mode into command mode one has to input ...
0
votes
0answers
53 views

CAJA: make all files with a given suffix get a given file type

Currently, my files with the suffix (extension) .def are recognized as generic "plain text files", and are opened in gedit, which I prefer for plain text files. However, my .def files are actually a ...
0
votes
2answers
61 views

How to weave the words of a string into a block of strings in vim?

Given a string and a block of strings e.g. String: Use three words. Block: This is the first string of another block of strings. This is the second string of another block of strings. This is the ...
1
vote
2answers
41 views

Moving by page without chords in Vim

Often I want to skim through a document or piece of code, which I do with page down (Ctrl-D) and page up (Ctrl-U), but it feels like I am violating the spirit of Vim using emacs-like chords/control ...
0
votes
1answer
83 views

Is there something similar to the Notepad++ session workflow?

Is tmux+vim/nano the closest thing to the Notepad++ workflow (in recent versions of Notepad++ that automatically save session state)? I really miss that, it was convenient to just dump text I copied ...
2
votes
1answer
253 views

A Sublime editor feature for vim… File pre-view?

I was wondering if there was a vim plug-in for the Sublime editor feature showing a smaller version of the file currently being edited, generally in the right hand side of the window -- see picture ...
2
votes
4answers
64 views

Linux log file structure change, abnormal (?) sed behaviour

Ok, so I tried to get this 0x0000: 4500 0044 68f7 4000 4011 25c7 8083 d0bf E..Dh.@.@.%..... 0x0010: 8083 da24 85b1 15b3 0030 1e8b 3132 3033 ...$.....0..1203 0x0020: 3132 2e37 3836 3036 2c20 ...
2
votes
1answer
671 views

In VIM how do you run a command silently in the background?

I'm using ubuntu and currently have the following line in my vimrc file: nnoremap < leader >dc :execute 'silent !drush cc all' | redraw! The command works but it doesnt hit me back to the ...
1
vote
1answer
596 views

Choice of editor when running under sudo

On an Ubuntu 12.04 machine I've used the alternatives system to set the editor to vim.basic. I get the correct editor when root but not when I sudo to root and run crontab, and I'm trying to ...
0
votes
1answer
113 views

Cursor keys do not jump over tabs in Vim

When I step over a tab with the cursor keys (h and l), the cursor does not jump over the tab, it just goes one space at a time. This is annoying because I am not sure if there is a tab there or ...
1
vote
1answer
33 views

why does emacs stop superuser from editing files without permissions?

If I have a file I want to edit, as root, I should have the ability to modify it regarless of the permissions. But this does not seem to be the case with all text editors, emacs in particular. If ...
1
vote
1answer
263 views

What does “position” mean in iconv error message?

I get error when converting a large file: $ iconv -f GB2312 -t UTF-8 2001.txt -o 2001_u.txt iconv: illegal input sequence at position 245256667 What does the position mean in this error? I tried it ...
0
votes
0answers
47 views

What are some preferred methods to efficiently edit files on a remote Unix server?

I'm looking for a more efficient GUI-based solution to edit root-owned and root-only writable files than using either nano or vim, both of which of course limit your cursor to navigate one character ...
6
votes
1answer
135 views

Can I specify the layout of a vsplit command?

When I do the :vsplit command, it always opens the new file on the left side of the screen. Is there a way I can specify I want the new file to open to the right?
1
vote
1answer
179 views

dot command in Vim, last change?

The dot command in Vim repeats the "last change", but I am not exactly sure what constitutes the "last change". For example, if I type the sequence: A;{ESC}j. Then a semi-colon is appended to ...
1
vote
1answer
184 views

Does Kate support HTML5?

I am editing a long HTML document in Kate, and I'd love to be able to "close" the parts I'm not currently working on. But this is a new document, and the highest level of modularization uses section, ...
8
votes
3answers
525 views

Vim: pasting lines line by line

Let's suppose I have a file containing: xxx yyy zzz and another file: kkk qqq ppp I want to obtain: xxxkkk yyyqqq zzzppp Is that possible in Vim with some command? (I've tried using VISUAL ...
0
votes
2answers
561 views

How to get permission for editing fstab file in debian [duplicate]

I wanted to change my fstab file to be able to solve "Error mounting" (I tried to delete the last line of fstab file) # /etc/fstab: static file system information. # # Use 'blkid' to print the ...
1
vote
0answers
123 views

Kdevelop over SSHFS sometimes stutters last few lines on save?

Sometimes, but not always, a certain file, when saved with Kdevelop over SSHFS to a remote server, will include the last n lines of the file repeated. N is variable from save to save. The file that ...
0
votes
0answers
36 views

terminal text editor with Windows like hotkeys [duplicate]

As a Windows user (please forgive me) interacting with GNU\Linux through SSH I am looking for a terminal-based text editor that has similar hot keys to most Windows text editors which I have grown ...
2
votes
2answers
362 views

Sed? Stripping all formatting, i.e line breaks and whitespaces, from a report text file, while masking out certain pieces

I am working on a project in which I need to remove all formatting from a text file including whitespaces and line breaks, then replace any colons with pipes. I've made some headway but I cannot find ...
-1
votes
2answers
91 views

Editing files in debian before installation

I am having problems installing debian on virtualbox. The installation step fails when trying to configure packet manager. The guy in the following post had them solved by editing a certain file ...
1
vote
1answer
243 views

Gummi: Extend with Markdown functionality, or suggest Markdown editor

I use Gummi for my LaTeX work, and I use online Markdown1) editors, for quick note taking, making protocols, and making quick handouts, etc. I'd like to combine both. Is there any way, to extend ...