Official text editor of the GNOME desktop environment

learn more… | top users | synonyms

97
votes
7answers
38k views

Prevent gedit from creating files with the '~' (tilde) suffix

I have observed that in gedit if I edit a file, another file is created in the same directory (the one with the same filename and a tilde '~' suffix). The extra file remains even if I close gedit. I ...
39
votes
2answers
32k views

How do I install a plugin for gEdit v3?

I just installed the ubuntu 11.10, and I want to install a plugin for gEdit. I unpacked the plugin to the following folder: ~/.gnome2/gedit/plugins but in the gedit doesn't show up the plugin.
30
votes
5answers
28k views

Make gedit embedded terminal colours the same as the default terminal

I've just updated to 11.10 and now my embedded terminal in gedit does not match my default terminal. I hate looking at a white and black terminal. Does anyone know how to make the embedded terminal ...
29
votes
6answers
25k views

I can't use the terminal while gedit command is running [duplicate]

I recently installed 12.04. When I try to edit a file with gedit, I can't use the terminal until I close the editing file or I have to open a new terminal. But I think I didn't have this problem with ...
23
votes
2answers
13k views

How to stop Gedit, Gvim, Vim, Nano from adding End-of-File newline char?

Sometimes I want the last line of a text file to be a simple string of text with no newline character appended: ...eg. to concatenate another file to it. Several editors automatically modify my ...
23
votes
3answers
4k views

Why does gedit keep randomly opening new instances when opening files from nautilus?

Oh how I love Ubuntu and all its features, but this "bug" has been making me angry for so long and I've finally decided to ask for help here. I've assigned all .php files to be opened with gedit ...
23
votes
6answers
15k views

Where are gedit's preferences?

This is incredibly weird. I don't see "preferences" in any of my gedit menus. I'm running Version 3.8.3. All I want to do is show line numbers, but I can't do that without preferences. Where the heck ...
23
votes
4answers
10k views

Can I toggle word-wrapping on/off quickly in Gedit?

Depending on nature of the text, sometimes line wrapping is convenient, sometimes it is just confusing. And every time I need to switch this (pretty frequently) I have to do to View - Preferences - ...
22
votes
3answers
10k views

Is there code folding for gedit?

Does anyone know about a way to get code folding in gedit, I've found this plugin in google code, but looks like dead and doesn't work with the latest gedit. Any idea is wellcome
21
votes
6answers
7k views

When creating a new text file, should I add a .txt extension to its name?

When I create a new document aimed at containing only plain text, I am not obliged by Ubuntu to add a .txt extension to its name. It works indeed very well: gedit opens it without problem, ...
17
votes
8answers
1k views

How can I make 'man' more gui friendly?

When I type man bash it shows the info in the terminal itself. How do I tell "man" to open up the info in gedit instead? Is this possible?
17
votes
3answers
8k views

Can I set a default syntax highlighting in Gedit?

Until you save a document in gedit, syntax highlighting is turned off. There are obviously good reasons for this -- people might get confused if certain words were randomly showing up in different ...
17
votes
4answers
9k views

Custom keyboard shortcuts in gedit

Since I spend a lot of time on my laptop, I've gotten used to using keyboard shortcuts for everything. I want to be able to switch from tab to tab of opened documents in gedit by pressing Ctrl+Tab ...
15
votes
2answers
13k views

Is it a good idea to install gedit in Lubuntu?

I've been a Ubuntu user for years now, but since 11.10 will come with GNOME3/Unity, neither of which I like, I've decided to switch to Lubuntu, which uses LXDE as the desktop environment. The only ...
14
votes
4answers
15k views

Is there an easier or more 'correct' way to open gedit as root?

I have ubuntu 12.04 running in a virtual machine on virtual box. Its existence is mainly as a 'toy' to play about with Ubuntu, so for this reason I wanted the GUI (is that what 'Dash' is in ubuntu ...
14
votes
2answers
2k views

gedit modelines – What are they? How do they work?

There is a gedit plugin called Modelines and the plugin is described as Emacs, Kate and Vim-style modelines support for gedit. What are modelines? And how do they work in gedit?
14
votes
3answers
9k views

Is there Split Pane support in Gedit?

I know some other text editors like Notepad++ enable split pane to edit to files side by side. Is there any way I can add this functionality to Gedit?
13
votes
6answers
2k views

How to write superscript characters in gedit? [duplicate]

In gedit, how can I write x^2 without using ^? Where 2 will be the superscript of x.
13
votes
7answers
26k views

True column-mode (block-selection and editing) text editor solution?

In windows, I used to use a text editor called crimson editor which featured the best column-mode editing support I have yet to use. When enabled via a simple Alt-C shortcut, selections could be made ...
13
votes
2answers
11k views

Some Ubuntu 13.04 applications cannot access files on MTP-mounted systems. Why?

Ubuntu 13.04 comes with MTP support to access files on newer Android devices. My Nexus 10 works OK: after plugging in, I can access the N10 files with Nautilus, and I can copy from and to the device. ...
13
votes
3answers
38k views

Gtk-WARNING : Calling Inhibit failed

I was trying to use gedit, when I came across the following problem: myPC@TM77:~$ sudo gedit /etc/pm/config.d/config (gedit:12512): IBUS-WARNING **: The owner of /home/myPC/.config/ibus/bus is not ...
13
votes
1answer
7k views

How can I change the color of the text in a terminal embedded in GEdit?

I am having trouble using the terminal in GEdit since the text-color is white on gray background. I can not find an option to change anything for that terminal anywhere. How can I change it? N.B. The ...
13
votes
2answers
11k views

Recommend regular expression plugin for gedit?

I would like to do some search and/or replace using regular expression in gedit. If I am correct, by default it is impossible to do this. So I was wondering if someone can recommend some nice plugin ...
13
votes
1answer
4k views

Gedit plugin for HTML tag match

Is there a Gedit plugin for highlighting HTML matching tag? If so then please suggest me. For example in this sample: <div> //div1 <div> //div2 </div> //end of div2 ...
12
votes
2answers
34k views

How to set encoding in gedit 3.2?

I can not display file coded with GBK. In gconf-editor of gnome 3.2 , I can not find encoding item of gedit . How to set it ? thanks
12
votes
2answers
9k views

Why is 'gedit' going back to default tab sizes all the time?

Everytime I open a file in gedit, I have to change again the tab with from 8 to 4, as I prefer it. Is there any configuration file where I can make 4 the default tab width?
12
votes
3answers
3k views

How do I stop gedit from opening anything?

I use gVim all the time and open all sorts of plain text files, source codes and virtually anything that is readable with gVim. Ubuntu however decides that I should use gedit! I got searching and I ...
12
votes
2answers
5k views

How to stop gedit (and other programs) from outputting GTK warnings and the like in my terminal?

I am running awesome on trusty after having upgraded from raring. My desktop environment intentionally does not have all the Gnome / Freedesktop daemons running—I don't want them. When I execute ...
12
votes
1answer
5k views

SyncTeX with gedit and Evince

In Oneiric gedit includes support for SyncTeX and Evince has supported it since 2.32 (Oneiric includes Evince 3.2.0). How do I use SyncTeX with gedit and Evince? I have compiled with the -synctex=1 ...
11
votes
2answers
3k views

How to compile gedit LaTeX plugin?

Because I'd like to use the Gedit LaTeX plugin that is unfortunately not available for Gedit 3.2 in the repositories, I want to compile it myself. The most recent version you can get on ...
10
votes
2answers
27k views

Need Software to compare two text files [duplicate]

Possible Duplicate: File and directory comparison tool? Is there any software available on Ubuntu12.04 to compare two gedit text files for the differences between them. I have two CSS text ...
10
votes
7answers
1k views

Support for various features in gedit

I'm trying to use gedit as my main editor, and am looking for help with some tricky features. For each of the following, can people help me out with how to install and configure the feature? code ...
10
votes
3answers
8k views

Opening a non-utf8 encoded text file

I sometimes need to open text files that are encoded in EUC-KR. man gedit gives: --encoding Set the character encoding to be used for opening the files listed on the ...
10
votes
4answers
15k views

Can I change gedit's background color without changing to another theme?

I like ambiance but i find it a little too hard on the eyes to have to edit files on a pure white background, like gedit's. Is there any way to modify my theme to make gedit's background color ...
10
votes
1answer
1k views

In gedit, what is the “file browser panel” plugin and what does it do?

The "File browser panel" plugin says "Easy file access from the side panel". What side panel? The launcher maybe? I was watching 4 Tricks to Speed Up Ubuntu - YouTube and it said to turn off this ...
10
votes
2answers
12k views

How do I add a syntax highlighter format to Gedit?

How can I add in the regular expressions for an additional syntax language?
10
votes
1answer
340 views

gedit top menu invisible when started from terminal and using x11-Forwarding

Given: I'm using export $(dbus-launch) in my /etc/bash.bashrc file as I'm normally running under a non-admin user and need to su - admin to do anything dangerous. Normal behaviour: Go to dash, open ...
10
votes
0answers
127 views

Configuring the gedit embeded terminal [duplicate]

I have two problems with my gedit embeded terminal: First my terminal line is white and black, and I really want it to be like the Ubuntu terminal line that is purple: Embeded terminal: Regular ...
9
votes
3answers
33k views

Enable line numbers in gedit

I can't find how to enable the line numbers, current line highlight, and other goodness in 13.10.
9
votes
3answers
280 views

How to enter a tab charater in gedit if replacement with spaces is set up?

Some programs require tab characters to work, e.g. make requires tabs in Makefiles. If gedit is configured to replace tabs with spaces, it's painful to change the settings every time or copy a ...
9
votes
2answers
14k views

Finding the gedit plugin folder

I am a bit confused as to where I should put externally downloaded plugins. I have tried putting them in: /usr/share/gedit/plugins ~/. Local/gedit/plugins ~/. Gnome2/gedit/plugins ...
9
votes
2answers
1k views

How can I install gedit-latex-plugin without installing the rest of TeX?

After installing ubuntu 12.04 Gedit has gotten much better (faster), and I'm considering using it for LaTeX. I have installed TeXLive 2011 via their own installation script (Ubuntu repositories only ...
8
votes
2answers
6k views

How can I get gedit ready for programming in Ruby and Ruby on Rails?

I'd like to know which gedit plugins I could install to make programming for Ruby and Ruby on Rails easier?
8
votes
2answers
3k views

How do I move to a new tab in gedit using the keyboard?

If I have multiple tabs open, how do I move from one to another? (Ubuntu 11.10; gedit 3.2.1)
8
votes
4answers
460 views

How to open the same file twice in gedit?

On Windows most document editing applications have a Window/New window menu item to get more views on the same document. Is it possible to do the same, somehow in gedit? It seems gedit is trying as ...
8
votes
3answers
13k views

Warnings while launching gedit from the Ubuntu terminal

I am facing these warnings while launching gedit from my terminal. Eventually gedit starts, but with these lines of warning every time when I launch gedit: (gedit:3830): Gtk-WARNING **: Theme parsing ...
8
votes
2answers
16k views

How to use gedit-latex-plugin?

I have installed the packages texlive and gedit-latex-plugin. I see syntax highlighting for .tex files, but I don't get any extra stuff in my gedit menus or toolbars for latex -> pdf like I expected ...
8
votes
3answers
3k views

Gedit warning: GtkScrolledWindow is mapped but visible child GtkScrollbar is not mapped

When I use gedit, there is warning shown: (gedit:3166): Gtk-WARNING **: GtkScrolledWindow 0x236cd10 is mapped but visible child GtkScrollbar 0x2307ab0 is not mapped How can I fix it ?
8
votes
2answers
3k views

How can I print the line numbers of gedit?

I want to print the line numbers along with c source-code in the text editor "Gedit". I am tired to look all day at the display. Thank you for any time or effort.
8
votes
1answer
4k views

Unindent selected lines in gedit

I'm using the Gedit text editor. For a single line, we can simply press Backspace to remove the indentation on that particular line. How can I select several lines and unindent them all?