0

I am using vim8 on windows 7. The problem is what whenever I try to paste a unicode character from somewhere else it doesn't work instead it shows. For example when I try to enter It shows a question mark inside a square ?.

The output of of :version is

VIM - Vi IMproved 8.1 (2018 May 18, compiled May 18 2018 18:36:07)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1
Compiled by mool@tororo
Huge version with GUI.  Features included (+) or not (-):
+acl                +comments           +farsi              +linebreak          +packages           +startuptime        +user_commands
+arabic             +conceal            +file_in_path       +lispindent         +path_extra         +statusline         +vertsplit
+autocmd            +cryptv             +find_in_path       +listcmds           +perl/dyn           -sun_workshop       +virtualedit
+autoservername     +cscope             +float              +localmap           +persistent_undo    +syntax             +visual
+balloon_eval       +cursorbind         +folding            +lua/dyn            -postscript         +tag_binary         +visualextra
-balloon_eval_term  +cursorshape        -footer             +menu               +printer            +tag_old_static     +viminfo
+browse             +dialog_con_gui     +gettext/dyn        +mksession          +profile            -tag_any_white      +vreplace
++builtin_terms     +diff               -hangul_input       +modify_fname       +python/dyn         +tcl/dyn            -vtp
+byte_offset        +digraphs           +iconv/dyn          +mouse              +python3/dyn        -termguicolors      +wildignore
+channel            +directx            +insert_expand      +mouseshape         +quickfix           +terminal           +wildmenu
+cindent            -dnd                +job                +multi_byte_ime/dyn +reltime            -tgetent            +windows
+clientserver       -ebcdic             +jumplist           +multi_lang         +rightleft          -termresponse       +writebackup
+clipboard          +emacs_tags         +keymap             +mzscheme/dyn       +ruby/dyn           +textobjects        -xfontset
+cmdline_compl      +eval               +lambda             +netbeans_intg      +scrollbind         +timers             -xim
+cmdline_hist       +ex_extra           +langmap            +num64              +signs              +title              +xpm_w32
+cmdline_info       +extra_search       +libcall            +ole                +smartindent        +toolbar            -xterm_save
   system vimrc file: "$VIM\vimrc"
     user vimrc file: "$HOME\_vimrc"
 2nd user vimrc file: "$HOME\vimfiles\vimrc"
 3rd user vimrc file: "$VIM\_vimrc"
      user exrc file: "$HOME\_exrc"
  2nd user exrc file: "$VIM\_exrc"
  system gvimrc file: "$VIM\gvimrc"
    user gvimrc file: "$HOME\_gvimrc"
2nd user gvimrc file: "$HOME\vimfiles\gvimrc"

This is my minimal vimrc file

set fileencodings=utf-8
scriptencoding utf-8
if has("gui_running")
  if has("gui_gtk2")
    set guifont=Inconsolata\ 12
  elseif has("gui_macvim")
    set guifont=Menlo\ Regular:h14
  elseif has("gui_win32")
    set guifont=Consolas:h13
  endif
endif

Note: Some the characters work fine. But majority doesn't.

New contributor
Maheer Ali is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • 1
    Can you give the output of ga over the characters that don’t render, and see if they correspond to the unicode table you’re using? It might just be that your font doesn’t support such characters – D. Ben Knoble Dec 1 at 15:03
  • @D.BenKnoble Its outputs 8667, Hex 21db, Octal 20733 for – Maheer Ali Dec 1 at 15:10
  • Well, try a different font then. I have been using DejaVu_Sans_Mono_for_Powerline and while this font also does not show all glyphs (which BTW is impossible), it has a pretty good coverage of the multibyte characters that I use and encounter – Christian Brabandt Dec 2 at 7:07

Your Answer

Maheer Ali is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.