You are not logged in.

#1 2015-07-25 00:29:49

rixz
Member
Registered: 2015-07-25
Posts: 14
Website

Opening a file with `vim` inserts `g` letter under the cursor

I am not quire sure that I need to ask this question here, but I just installed Arch on one of my old laptops.
I've been customizing the system for a while and I just noticed that when I open a file with the `vim` editor, it automatically inserts the `g` letter under the cursor on the first line.

What could be the issue? I haven't got not even a single clue on how to t-shoot this?

Example:
Inspect the head before I open the file with `vim`:
http://i.imgur.com/dKIBTtq.png

After I hit enter you can see the `g` letter at the very beginning of the file:
http://i.imgur.com/tqH8qQr.png

-- mod edit: converted img to url tags.  Trilby --

Last edited by Trilby (2015-07-25 00:38:04)


Big is a matter of perspective.
Remember this, when facing the mountains of the mind.

Offline

#2 2015-07-25 00:37:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,559
Website

Re: Opening a file with `vim` inserts `g` letter under the cursor

Welcome to the forums.  Please have a look around, check out the stickied threads and the forum etiquette in our wiki.  These cover bits like appropriate image sizes for the forums: I have changed your images to urls as they were too large.  Also you'd see that we strongly encourage users to search the forums well before posting new threads: any issue you face may have been dealt with by others already.  This one sounds just like a recent thread - the underlying problem is solved in an upcoming vim update:

https://bbs.archlinux.org/viewtopic.php?id=199362

EDIT: actually, the fixed version of vim is already in [extra].  Are you up to date?  What version of vim are you running?

Last edited by Trilby (2015-07-25 00:41:47)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2015-07-25 05:20:54

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Opening a file with `vim` inserts `g` letter under the cursor

Also, paste your .vimrc


Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2015-07-25 08:41:06

rixz
Member
Registered: 2015-07-25
Posts: 14
Website

Re: Opening a file with `vim` inserts `g` letter under the cursor

Hi to all and thank you for your answers,

Yesterday was late and I was a little tired from the installation smile

I now realized that vim inserts that `g` character only when I am using it with ssh.
Once I installed my system I moved to working with ssh from my desktop, until I decide witch desktop environment I will use.

Trilby wrote:

Welcome to the forums.  Please have a look around, check out the stickied threads and the forum etiquette in our wiki.  These cover bits like appropriate image sizes for the forums: I have changed your images to urls as they were too large.  Also you'd see that we strongly encourage users to search the forums well before posting new threads: any issue you face may have been dealt with by others already.  This one sounds just like a recent thread - the underlying problem is solved in an upcoming vim update:

https://bbs.archlinux.org/viewtopic.php?id=199362

EDIT: actually, the fixed version of vim is already in [extra].  Are you up to date?  What version of vim are you running?

The system is also up to date.

VIM version:

[root@mercury ~]# vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jul 11 2015 08:44:21)
Included patches: 1-778
Compiled by Arch Linux
Huge version without GUI.  Features included (+) or not (-):
+acl             +farsi           +mouse_netterm   +syntax
+arabic          +file_in_path    +mouse_sgr       +tag_binary
+autocmd         +find_in_path    -mouse_sysmouse  +tag_old_static
-balloon_eval    +float           +mouse_urxvt     -tag_any_white
-browse          +folding         +mouse_xterm     -tcl
++builtin_terms  -footer          +multi_byte      +terminfo
+byte_offset     +fork()          +multi_lang      +termresponse
+cindent         +gettext         -mzscheme        +textobjects
-clientserver    -hangul_input    +netbeans_intg   +title
-clipboard       +iconv           +path_extra      -toolbar
+cmdline_compl   +insert_expand   +perl            +user_commands
+cmdline_hist    +jumplist        +persistent_undo +vertsplit
+cmdline_info    +keymap          +postscript      +virtualedit
+comments        +langmap         +printer         +visual
+conceal         +libcall         +profile         +visualextra
+cryptv          +linebreak       +python          +viminfo
+cscope          +lispindent      -python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con      +lua             +rightleft       +windows
+diff            +menu            +ruby            +writebackup
+digraphs        +mksession       +scrollbind      -X11
-dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     -xim
+emacs_tags      -mouseshape      -sniff           -xsmp
+eval            +mouse_dec       +startuptime     -xterm_clipboard
+ex_extra        +mouse_gpm       +statusline      -xterm_save
+extra_search    -mouse_jsbterm   -sun_workshop    -xpm
   system vimrc file: "/etc/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -L. -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE  -Wl,-O1,--sort-common,--as-needed,-z,relro -L/usr/local/lib -Wl,--as-needed -o vim        -lm -lncurses -lelf -lnsl   -lacl -lattr -lgpm -ldl  -L/usr/lib -llua -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector-strong -L/usr/local/lib  -L/usr/lib/perl5/core_perl/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc -L/usr/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic   -lruby -lpthread -lgmp -ldl -lcrypt -lm  -L/usr/lib
jasonwryan wrote:

Also, paste your .vimrc

There is no .vimrc and the global one /etc/vimrc is the comments only.

Last edited by rixz (2015-07-25 08:55:46)


Big is a matter of perspective.
Remember this, when facing the mountains of the mind.

Offline

Board footer

Powered by FluxBB