Vi and Vim Asked by VladislavThePoker69 on August 31, 2021
I’m running into a bothersome issue I can’t seem to solve myself. When I open
gvim I receive the error E285: Failed to create input context
The error always comes twice, and looks to be related to XIM input. Although
this is the first I’ve ever heard of IM and XIM as I am only ever working in
English.
I don’t normally use gvim but I recently started using qutebrowser
and when I try to use gvim for input fields the errors pop up in a gui, and
require more action from me until I can actually type into the buffer.
Basic Specs:
uname -a Linux pop-os 5.4.0-7634-generic #38~1592497129~20.04~9a1ea2e-Ubuntu SMP Fri Jun 19 22:43:37 UTC x86_64 x86_64 x86_64 GNU/Linux
VIM - Vi IMproved 8.1 (2018 May 18, compiled Apr 15 2020 06:40:31) Huge version with X11-Athena GUI. +X11, +xim, +xfontset.
What I’ve tried:
--clean
or like gvim -u NONE -U NONE -N -i NONE file.txt
. I was hoping to narrow down if a certain configsudo gvim file.txt
. This is the-u-U $HOME/.vimrc
gives way more errors from plugins and personal scripts as my/root/
. last problem is I’m not wanting to type myguifont
whenhas("gui_running")
and has("x11")
are true. Plus some otherset guifont=-*-courier-medium-r-*-*-11-*-*-*-*-*-*-*
. I tried multiple styles of-f file.txt
as suggested for some other bugs, but has no effect on the error messages.Final Thoughts: I’m at a loss for new solutions as searches for the error only
results in a few similar issues from 2014 or older, that haven’t fixed my
problem. And since even the –clean startups were unsuccessful I can’t even
drill down a certain config causing it, but using sudo actually works, but I am
unable to say why.
The one solution I haven’t tried is the last post on the following link, to get
the source code and disable xim, but the instructions were just vague enough I
wasn’t sure how to do it myself.
https://www.linuxquestions.org/questions/linux-software-2/gvim-complains-that-it-failed-to-create-input-context-926593/
Same problem, after upgrade Ubuntu (20.04 TLS) worked for me:
sudo apt-get remove vim-athena vim-gui-common vim-gtk3
sudo apt-get install vim-gtk3
Answered by iqmaker on August 31, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP