Tag Info

Hot answers tagged

68

Both packages provide the same application, but compiled with different dependencies (e.g. vim-gnome depends on libgnome2). Vim-gtk is important only to people who use Kubuntu (or some lightweight desktop environment) and don't want to install GNOME libraries. If you use the standard Ubuntu desktop, the dependencies are already present, and you can safely ...


35

Solution 1: Make the global menu for gvim work To get global menu for gvim and to get rid of the warning message, add this to ~/.bashrc and restart the terminal: function gvim () { (/usr/bin/gvim -f "$@" &) } Solution 2: Disable global menu for gvim To just get rid of the warning message, you can disable the global menu, at least for gvim: How do ...


33

Besides the vim package, there appear to be at least six "vim-variants"(not including available documentation, or plugin packages) to be found within the main and universe repositories. Below is a brief summary of each(links go to package description and dependencies): jvim-canna - Japanized VIM (Canna version) This package allows the entering of Kanji ...


27

For gEdit there does not seem to be a way to disable having a newline inserted at the end. However, for Vim (and gVim ) you can - by executing the following option: :set binary. Setting to binary will save the file as is and not insert a newline at the end of the document (Unless there already is one, in which it will be retained). At anytime you can ...


24

This doesn't fix your issue, but I tried removing and installing vim-gnome and had the same problem. So, I removed vim-gnome and installed vim-gtk and it works fine.


17

Close. Set the font through the gui, then use the command (: to get the prompt) set gfn? to get the current font string. It should look something like this: guifont=Mono Uralic 10 Then edit/create ~/.gvimrc and add the line: set gfn=Mono\ Uralic\ 10 Note: You need to escape the spaces from the output (as I have above)


12

The following worked for me: run this sudo apt-get update and then run sudo apt-get install vim-gnome


10

Everyone else has excellent advice, I thought I'd fill in with some of the basics: 1. GVim for vim outside the console, and how to install it You asked whether vim can only be run from the console. GVim (GUI-Vim) is the standalone version. From your screenshot, it looks like you're using Ubuntu, you can find gvim in the Software Centre and install it from ...


9

Ok so setting this in my .gtkrc-2.0 alleviates the problem: style "vimfix" { bg[NORMAL] = "#242424" # this matches my gvim theme 'Normal' bg color. } widget "vim-main-window.*GtkForm" style "vimfix" Screenshot: This still doesn't fix the resize triangle in the lower right.


8

It is a known issue. The workaround is mentioned in the gnome-look.org Faenza page: Some applications are configured to always use the same icon regardless of the selected theme: e.g. vim, emacs23, gcolor2, bluefish, hardinfo, defcon, gufw, pithos, goldendict, rssowl, picasa, netbeans, gazpacho. To display the Faenza icon, edit as root the ...


8

I'd suggest you start studying .vimrc's just like the one above. Everyone's needs and preferences are different so you should denfinitely go with manually installing stuff instead of just copying someone elses configurations. Some resources about learning VIM itself: Learn Vim Progressively, a great guide about learning Vim. Vim Novice Tutorials, a series ...


7

At this web site you can find a non official thunderbird extension to use an external editor of your choice: http://globs.org/download.php?lng=en


7

I assume you mean you want to change the editor that Quickly loads when you ask it to. Well I did some sleuthing... I'll show you what I did followed by the answer. I fired off this command: sudo find / -name "*quickly*" -exec grep gedit {} \; That searches for all files with quickly in and then greps them for gedit. It was a long shot -- I should have ...


6

It means the menus (File, Edit, Tools, Syntax, Buffers, Window, Help) will not be displayed on hovering at the top of the screen when the gvim window is the active window. It is a bug and has a work around. gvim(){ /usr/bin/gvim -f "$@" & true; }


6

Run the following commands in the terminal. sudo apt-get build-dep vim-gnome to get all the build dependencies you need. Then sudo apt-get install mercurial to get the Mercurial version control system needed to download the latest Vim source code. Then hg clone https://vim.googlecode.com/hg/ vim to download the Vim source code to the subdirectory ...


6

Make a file called ~/.local/share/applications/gvim.desktop and copy the following into it: [Desktop Entry] Name=gvim GenericName=Text Editor Comment=Edit text files Keywords=Plaintext;Write; Exec=gvim %U Terminal=false Type=Application MimeType=text/plain; Icon=gvim Categories=Utility;TextEditor; It should now be in the applications list and you can add ...


6

For solving this, I added an alias to run gvim with all stderr messages discarded. Just add the following line to your .bashrc file: alias gvim="gvim 2>/dev/null" I hate these types of errors and warnings when the program I'm using is beyond my control and it prints a lot of these which distract me from what I'm doing.


5

I'm also seeing this delay with gvim and rox-filer on 12.04. I added scim recently so that I could use chinese input. I have a little keyboard icon in my tray whose about box tells me is IBus 1.4.1. Selecting 'quit' off that same menu (so that the keyboard icon disappears) gives me instant gvim startup again. Starting ibus-daemon again (by "ibus-daemon -d"), ...


5

There is a workaround here: https://bugs.launchpad.net/ubuntu/+source/vim/+bug/776499 Create an alias at the top of your shell init file (e.g. ~/.bashrc): alias gvim="UBUNTU_MENUPROXY=0 gvim"


5

Update: I searched a bit and found that you can use any monospaced font in vim but if you choose a non-monospaced font, the results will be ugly because vim has a fixed character cell. So, you can't use Devanagari fonts in gvim. It seems to me that gVim treats every font as monospaced and that is creating the problem. You can try other editors which can ...


5

This is what I use to get rid of the resize handle in the corner. Just put this in ~/.gtkrc-2.0 style "no-resize-handle" { GtkWindow::resize-grip-height = 0 GtkWindow::resize-grip-width = 0 } class "GtkWidget" style "no-resize-handle"


5

It seems that set nomousehide did the trick.


5

For gEdit: If you are using 12.04 or 12.10 (other versions not tested), you can set the behavior already. Run dconf Editor (dconf-editor) Go to /org/gnome/gedit/preferences/editor Uncheck ensure-trailing-newline if you don't want automatically added newline. ref https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/379367


4

iconv is probably what you'll want to use. iconv -l will show you the available encodings and then you can use a couple of commands to recode them all: # all text files are in ./originals/ # new files will be written to ./newversions/ mkdir -p newversions cd originals for file in *.txt; do cat $file | iconv -f ASCII -t utf-8 > ../newversions/$file; ...


4

I was seeing this in 14.04. But I only had vim-gnome installed. Removing vim-gnome and installing vim-gtk works without any error messages.


4

This should work (thanks @Braiam): UBUNTU_MENUPROXY=0 gvim Running the above command from a terminal will launch a gvim instance with its own menus. So, to create a launcher on your desktop, open a file called ~/Desktop/gvim.desktop with the following contents: [Desktop Entry] Name=gvim Comment=Run gvim with menus Exec=env ...


4

Put de following line in your .vimrc: set laststatus=2 This helped me on the commandline :)


3

I found a workaround at this blog. Using gvim -f doesn't have this problem, apparently, so aliasing gvim to setsid /usr/bin/gvim -f works. For bash, you can put gvim(){ setsid /usr/bin/gvim -f "$@"; } in your .bashrc.


3

You'll need to check your sources. I see that libruby1.8 1.8.7.352-2 is available through main while it seems that the newest version you have is: 1.8.6.111-2ubuntu1. This probably means that you dist-upgrade failed or that you still need to update your sources. $ apt-cache policy libruby1.8 libruby1.8: Installed: 1.8.7.352-2 Candidate: 1.8.7.352-2 ...



Only top voted, non community-wiki answers of a minimum length are eligible