gedit is a lightweight text editor for the Gnome desktop environment

learn more… | top users | synonyms

14
votes
5answers
10k views

Gedit won't save a file on a VirtualBox share: Text file busy

I have a text file that I can change using other applications (for example openoffice). But when I try to change and save it using gedit, I am getting error from gedit: Could not save the file /...
8
votes
1answer
901 views

How can I write a new syntax highlighter for gedit?

Some times I wish the particular language I happen to be writing in had syntax highlighting. How can I add that?
8
votes
3answers
1k views

Gedit cannot save in shared folder (Virtualbox)

I'm getting the "Cannot save _ Unexpected error: Error renaming temporary file: Text file busy" in Gedit 2 when I try to save in a shared folder with Virtualbox (Debian). I've searched and apparently ...
5
votes
3answers
620 views

Gedit or an other non-commandline editor with the ability to spell-check two languages at the same time

I'm searching for an editor with the ability to spell-check two languages at the same time (German and English). Gedit can't do it out of the box. But I want to use Gedit. It should be possible by ...
5
votes
2answers
287 views

How to launch gedit from terminal and detach it (just like “subl” command works)?

To open a file to edit in gedit I run gedit sample.py &. But with Sublime Text it is simply subl sample.py. This opens the file to edit and it doesn't run in the background (in my shell). How ...
4
votes
1answer
3k views

How do I scan for invalid characters on gedit?

I am having a dilemma whether to edit a javascript file or not. When I open it with gedit, it shows the following warning: The file you opened has some invalid characters. If you continue ...
4
votes
1answer
1k views

gedit: tabs or spaces dependent on syntax

I almost always use the Insert spaces instead of tabs feature in gedit. The one exception is when writing a Makefile which requires tabs. I don't suppose there is a way to make this option dependent ...
4
votes
1answer
3k views

Error with gedit can't save any file

meraj@meraj-SATELLITE-C850-A785:~$ sudo gedit /etc/php5/apache2/php.ini (gedit:16243): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org....
4
votes
1answer
750 views

Is it possible to insert image in gedit in Linux?

I'm using RHEL. Totally new to Linux. I want to insert an image in gedit, but I'm not able to do so. Also I'm unable to install LibreOffice because they are asking for a subscription. Any alternate to ...
4
votes
3answers
2k views

Gedit opening an “Unsaved document” on opening files with mouse

When I open files by double-clicking a file with mouse I always get one additional "Unsaved Document X".. which is very annoying, because I have to close tham all, and click "Close without save" every ...
4
votes
2answers
1k views

Gnome - windows always open top left

I find this a highly annoying "feature" on a wide screen monitor that my mostly used apps - terminal and gedit always open directly under the top-left corner of my screen and I have to drag them to my ...
4
votes
1answer
450 views

How to reset linux centOS 6.0 keyboard shortcuts with custom changes to default one?

On Single Desktop Environment.... I created some custom shortcuts, but currently I want to revert all the changes to default settings (which having no custom changes). Example: created like CTRL + N ...
3
votes
3answers
1k views

Problem installing markdown preview plugin for gedit on Linux Mint

I'm trying to install a markdown preview plugin for gedit, but when I try to active it, the entry greys out. Running gedit via the terminal, I get the following error message: Traceback (most recent ...
3
votes
3answers
4k views

How to identify and remove invisible whitespace characters on gedit?

I want to remove unnecessary whitespace on my css file. I am using grep with the command as follows: $ grep -rn "[[:space:]]$" Surprisingly, it is returning a hit on every line in the file. I ...
3
votes
2answers
9k views

How do I create a new file and edit it as root?

I've tried: gksudo gedit /etc/xinetd.d/tftp (this is the path I need). I got an error message: couldn't find the file /etc/xinetd.d/tftp please check that you typed the location correctly and try ...
3
votes
1answer
58 views

gedit installation size is too large

have installed Debian Linux, but gedit is not installed along with it. When I attempt to install gedit using apt-get, it prompts to download many packages up to 370 MB, which is strange. I only want ...
3
votes
2answers
253 views

In Gedit, how might I jump from the command line (bottom frame) to the file explorer frame to the text editor frame using keyboard shortcuts

I know how to jump from tab to tab in the text editor frame, but jumping from the text editor (center-right top frame) to the command line (center-right bottom frame) using only the keyboard eludes me....
3
votes
2answers
2k views

gedit preferences grayed out

I'm using gedit 2.28.4, on Centos 6.4. When I click on Edit > Preferences, I can't modify anything, as everything is grayed out. Also, I could not re-size the preferences window to locate the '...
3
votes
0answers
283 views

Vertical lines connecting blocks in Gedit

I'd like to know if there is some way I can get gedit to display vertical lines connecting logical blocks of a programming code (namely Fortran 95 in my case).     See in the image ...
2
votes
2answers
3k views

How does one find and replace text in all open files with gedit?

How does one find and replace text in all open files with gedit?
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 ...
2
votes
2answers
538 views

Cannot resize Gedit window

Gedit 3.14 in Debian 8 has no window manager decoration and the window cannot be resized. Do I need to install any additional package to make it work or has Gedit become unusable outside of the Gnome ...
2
votes
2answers
3k views

Arithmetic operations in regex

I am using gedit regex plugin (Python style regex). I would like to do some arithmetic operation on a backreference to a group. For example: PART 1 DATA MODELS Chapter 2 Entity-Relationship Model ...
2
votes
1answer
393 views

Adding new language to Gedit

I need to add a new language in Gedit. The problem is, it is included in Gedit menu of languages now, but its syntax is not highlighted and Gedit is not able to indentify the language just from the ...
2
votes
1answer
60 views

How can I syntax highlight Ruby range bounds in gtksourceview3.0?

I do most of my coding in gedit, which highlights integers and other syntax. When I use an integer range in Ruby, represented as 0..3 for example, the integers are not properly highlighted and are ...
2
votes
1answer
35 views

Regarding identical copies of gedit files

When ever I save a gedit file in a directory, two copies of it get saved with identical content. Ex: If the gedit file is named as file_name and saved in Home directory then when u ls the Home ...
2
votes
2answers
5k views

How to edit /etc/inittab?

I want to edit /etc/inittab in order to get a login prompt on the serial console once the system boots. By default, inittab file complains to be ro. I tried both gksudo gedit /etc/inittab and sudo vi ...
2
votes
1answer
946 views

gedit reverting settings to default

I'd like to revert to the fresh gedit on my system. Any idea how to get back to default state? So that all my preferences would be lost as well as having activated only the plugins active by default? ...
2
votes
3answers
3k views

open whole folder in gedit

Moving from OS X & Textmate to Ubuntu & gedit, the one feature of Textmate I am missing is it's command line tool. With mate I was able to open a folder as a Textmate project using mate . ...
2
votes
1answer
163 views

Downgrade Gedit in Fedora 23

I am running Fedora 23 and need to downgrade to gedit 3.10.4 and the corresponding versions of gedit-plugins and gedit-r-plugin. This answer provides code to do this in ubuntu. I'm trying to do the ...
2
votes
1answer
234 views

Removing gedit without removing all of cinnamon-desktop-environment

I don't like gedit and always use geany or vim or something else. Removing it from my current Debian testing install also removes the cinnamon-desktop-environment meta package because it depends on ...
2
votes
1answer
628 views

How do I make Python plugins work in Pluma?

I'm trying to add the Python plugin trailsave to the text editor Pluma* (which is a Gedit fork) but the plugin doesn't show up in the "Active plugins" list in the Pluma preferences. Also, I have ...
2
votes
2answers
2k views

How to change the colour of embedded terminal in linux mint 12 to be able to use `ls` and `byobu`?

I'm using Linux Mint 12 and am having problems with the embedded terminal in gedit. Using the default themes I'm unable to use 'ls' and 'byobu' as in part of their output foreground and background ...
2
votes
0answers
40 views

Font in gedit changes when I input the first letter in a line

I think this is a rather strange problem. I am using gedit, and my current font in the settings is the default (Monospace 10). But some lines in my text file has a clearly different font: Still ...
2
votes
0answers
279 views

Highlight linux shell commands

I have a log of new commands I use and my own tips/descriptions with them inside a text file. I noticed there is DOS Batch code highlighting which highlights DOS commands. Is there one for Linux ...
2
votes
1answer
442 views

How can I change the gedit tab colouring?

I'm using Debian Jessie, and xfce desktop environment. I find the look of tabs for other applications, such as chrome, and the file manager (thunar), and terminal (xfce4-terminal), display the active ...
2
votes
0answers
160 views

Automatic replacement of strings in gedit

I want to replace some strings defined by me in gedit, after a word has been completed and/or the document has been saved. For example \ðrac should be replaced with \frac How do I do this in gedit or ...
2
votes
0answers
1k views

Changing background color of gedit's whitespace highlighting

I've used NEdit since about 2003. NEdit's whitespace highlighting is subtle and I prefer it to the dot other editors put in whitespace. NEdit's background normally is light grey and whitespace is ...
1
vote
1answer
93 views

What is it that clobbers my letters together in Gedit?

Sometimes, after I’ve been editing a text file in Gedit, the letters clobber together like this: Why is this? How can I stop it from happening?
1
vote
1answer
95 views

Search plugin for wrapping words with text in Gedit v3

I've been searching out for a plugin that could possibly wraps words with specified text. For example I double click this word to highlight it : word and using a particular shortcut, it becomes as ...
1
vote
1answer
2k views

How to match group 1 in a regex followed by a 0 rather than matching group 10

In regex plugin of gedit, I use a regex to match/search and another for substitution. In the matching regex, I only have one group. In the substitution regex, I use \1 to refer to the group, and I ...
1
vote
0answers
32 views

xcalib not saving brightness settings and other issues [closed]

I have certain issues which I'll list below, I hope you can help me: 1.) I have xcalib installed, I use it to manually change my contrast settings (something not possible in ubuntu directly, at least ...
1
vote
0answers
51 views

How to remove context menu items or change right click behaviour?

Is there any way to remove or disable the 'undo' and 'redo' options in the right click context menu for gedit? Another suitable solution would be to disable the 'click on release' mouse feature. So ...
1
vote
0answers
124 views

lp prints blank pages for pure text file

Printing a text file through lp result in blank page while printing same file through gedit works fine. lp is able to print pdf and jpg image files, but not text file. On further looking in to ...
1
vote
0answers
151 views

How can keyboard smooth scrolling be turned off in gedit (GNOME 3.14/Fedora 21)?

In gedit on GNOME 3.14 (Fedora 21), using the mousewheel to scroll results in ordinary scrolling, whereas using the arrow keys or PageUp/PageDown results in smooth scrolling. How can smooth scrolling ...
1
vote
0answers
169 views

Gedit not saving settings - Fedora 21

I have Fedora 21 and gedit won't save config settings (like tab width, auto-indent, etc.). I tried deleting the configuration files directory per this question: gedit reverting settings to default, ...
1
vote
0answers
97 views

Can gedit highlight element of svg stucture?

Gedit can show matching parenthesis. Can it do the same with tags of an SVG file ? For example when I mark <text> I need to find closing </text> tag.
1
vote
0answers
36 views

Using FC 19 - How can I interact with very long menus?

I am using FC 19 with the default Gnome setup. Assuming this is Gnome shell, some version 3. Some common apps have very long menus. An easy example is Gedit and the languages menu. This is so large ...
1
vote
1answer
736 views

Polish chars in gedit (Fedora 18)

I locked my Fedora18 computer (set to Polish). Later I couldn't log in (password was accepted, but I didn't see my desktop). I used pkill -KILL -u tymon command in root mode (Ctrl+Alt+f2). After ...
1
vote
1answer
1k views

Installing a gedit plugin on Fedora

I have been trying to install a gedit plugin called RunC to compile C programs using the text editor. Although the instructions tell me to use ubuntu 9 or 10 for this, I'm currently running Fedora 16....