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

learn more… | top users | synonyms (2)

11
votes
2answers
3k views

Why would someone use joe?

I've seen some skilled unix/linux users use joe instead of vi(m) or nano. Why would they prefer using it over the provided alternatives?
1
vote
2answers
104 views

splitting the gvim editor window horizontally

In gvim editor how to split the editor window horizontally? so that includes two files and can see simultaneously ?
1
vote
1answer
18 views

server file owner and group changed when editing file locally [duplicate]

If i edit the file from a remote server via text editor (geany, sublime text..etc) locally, the file user and group will changed to the logged user. Let say if I accessing the remote file with root ...
2
votes
4answers
343 views

Move in crontab -e editor

I'm trying to manipulate the editor of crontab but it's really really confusing. So I launch the creation of a new crontab with crontab -e Then the default editor opens. Now from there, it's seems to ...
2
votes
2answers
31 views

Setting editor in mutt: vim with parameters?

I am exploring mutt as an email client - and I like it very much - my only problem is setting the editor to be vim with some extra parameters. Ideally, I would like something like set editor='vim -c ...
14
votes
12answers
8k 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 ...
1
vote
1answer
403 views

Edit the editor in bash and other shells

Executing the fc builtin causes bash and other shells to fire up $FCEDIT on the last command. Because FCEDIT is a variable, this is inherently customizable. Is it possible to also customize the ...
0
votes
4answers
70 views

How to add hostname as first line of a file

I have a file which has a few lines. one two three four five I need to add hostname of the server I'm working on as the first line of the file. For example if abcd555.india.com is the server, the ...
0
votes
1answer
37 views

Can I edit library with text editor?

I want to edit python library in Visual Studio Code. I dont know how to do it and editing in another folder and then sudo cp edited_file library_path is annoying. I tried something like sudo ./Visual\...
36
votes
4answers
93k views

How do I quit from Vi?

I started Vi on my Ubuntu machine. However I'm new to 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 Vi?
0
votes
3answers
75 views

Find-grep for List of .tex Files?

My document.tex where I want to get the list of files, and grep those files with the term gastric \subimport{}{1.2_protocal_answers.tex} \subimport{}{2_protocol_answers.tex} 1.2_protocal_answers....
1
vote
2answers
119 views

Why is npm struggling to connect to the internet on my Arch?

So while downloading the Atom Text Editor through the command yaourt -S atom-editor, but I get these errors: Installing build modules... npm ERR! Linux 4.5.4-1-ARCH npm ERR! argv "/usr/bin/node" "/...
3
votes
1answer
113 views

Tring to install Atom Text Editor on my Arch by using Yaourt

I am currently trying to install Atom Text Editor (atom-editor on Yaourt). However I get the errors below: ==> Downloading atom-editor-arch PKGBUILD from AUR... x .SRCINFO x .gitignore x PKGBUILD ...
1
vote
1answer
130 views

How do I remove the 'split lines' error in Bluefish?

How can I stop this error from occurring every time I start Bluefish editor? Of course, apart from shortening long lines... Bluefish 2.2.4, running on Fedora 19. Edit: I have done this in ...
4
votes
3answers
46 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
3answers
2k views

How to turn off permanent highlighting of all braces (not just pairs) in vim [closed]

I have no idea how I modified vim such that all braces are highlighted, not just matching ones, but I want to turn it off now. How do I do that? The usual highlighting of matching braces works fine.
1
vote
1answer
133 views

How can I view my virtualbox guest unix filesystem from the host windows file/text editor? [closed]

I'm running Ubuntu/CentOS in a virtualbox guest and am trying to configure various services to run on it (nginx, php, memcache and more). As a novice Unix user, I'm finding it slow to use the console ...
1
vote
1answer
57 views

How to avoid that Geany editor changes owner of file when it's edited?

I use Geany to edit files in a web app that resides in /var/www. The owner and group of /var/www and all sub directories and files are www-data:www-data. My user account is a member of that group and ...
18
votes
3answers
9k views

How to automatically strip trailing spaces on save in Vi and Vim?

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
5
votes
6answers
235 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 temp.txt~....
0
votes
1answer
33 views

Unknown media type error while installing

I'm trying to install gmate on fedora 23 First, it require some packages: pywebkitgtk, python-sexy, python-inotify and ack Installing them without any problems: [root@host gmate] # dnf install ...
39
votes
3answers
44k views

How do I change the default text editor in the Debian (squeeze) distro

"Joe's own editor" does not come naturally to me. How do I change to using nano or vim? I've tried export EDITOR=nano but it doesn't seem to be respected. I'd like visudo to respect this as well.
2
votes
1answer
55 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 ...
5
votes
5answers
12k 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, ...
84
votes
6answers
75k views

vim - better colors so comments aren't dark blue?

Mostly I edit ruby files, although shell script file comments are also # Currently my comments show as dark blue on black which is really hard to read. See screenshot. How can I change their color? ...
1
vote
1answer
51 views

Launch editor from a shell script with text

I know it is possible to launch the default editor from a shell script. For example, assuming the $EDITOR environment variable is set: $EDITOR ~/newfile.txt Is it possible to open a new file with ...
0
votes
1answer
190 views

Edit .docx files with Emacs?

I'm starting with Emacs, and testing around I wondered if I could edit my own .docx file from there, just to explore its features and that stuff. But my surprise is huge when, having the text ...
1
vote
0answers
246 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 ...
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 ...
3
votes
0answers
26 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> &...
0
votes
1answer
29 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
78 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
604 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
70 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
95 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
135 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
219 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
50 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 ...
5
votes
1answer
530 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 ...
0
votes
0answers
45 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
68 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 ...
1
vote
2answers
52 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 ...
6
votes
5answers
1k views

Editor for markdown tables

Is there any tool for linux which makes it easier to generate and edit tables for markdown?
1
vote
1answer
655 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
33 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 ...
3
votes
4answers
2k views
17
votes
2answers
6k 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 ...
4
votes
1answer
2k views

How do I make Kate indent with spaces on Python files but use tabs for text files and other files?

My goal is to set Kate up to work properly on Python files but to use different settings (tabs not spaces) on other documents. I'm sure others are doing this, but I can't figure out a convenient ...
7
votes
4answers
2k views

Block editing *live* in Emacs or Vim

jEdit supports block editing, but Emacs and Vim seem to have some serious usability issues on the same subject. If someone could fill in the unknowns here it would be much more bearable to use either ...
2
votes
1answer
144 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 ...