nordtheme / vim

An arctic, north-bluish clean and elegant Vim theme.
https://www.nordtheme.com/ports/vim
MIT License
2.51k stars 275 forks source link

Cannot find color scheme 'nord' #236

Closed ain closed 3 years ago

ain commented 3 years ago

Steps to reproduce

  1. Follow 3 points in installation instructions
  2. Restart Vim

What happens

$ vim
Error detected while processing /Users/ain/.vimrc:
line   73:
E185: Cannot find color scheme 'nord'

ln 73 is

colorscheme nord 

nord-vim is installed:

nord-vim

What should happen

As per installation guideline, no error should appear.

Additional details

Vim specs:

$ vim --version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Dec  2 2020 22:03:27)
macOS version
Included patches: 1-1719
Compiled by MacPorts
Huge version without GUI.  Features included (+) or not (-):
+acl               -farsi             +mouse_sgr         +tag_binary
+arabic            +file_in_path      -mouse_sysmouse    -tag_old_static
+autocmd           +find_in_path      +mouse_urxvt       -tag_any_white
+autochdir         +float             +mouse_xterm       -tcl
-autoservername    +folding           +multi_byte        +termguicolors
-balloon_eval      -footer            +multi_lang        +terminal
+balloon_eval_term +fork()            -mzscheme          +terminfo
-browse            +gettext           +netbeans_intg     +termresponse
++builtin_terms    -hangul_input      +num64             +textobjects
+byte_offset       +iconv             +packages          +textprop
+channel           +insert_expand     +path_extra        +timers
+cindent           +ipv6              -perl              +title
-clientserver      +job               +persistent_undo   -toolbar
+clipboard         +jumplist          +popupwin          +user_commands
+cmdline_compl     +keymap            +postscript        +vartabs
+cmdline_hist      +lambda            +printer           +vertsplit
+cmdline_info      +langmap           +profile           +virtualedit
+comments          +libcall           +python            +visual
+conceal           +linebreak         -python3           +visualextra
+cryptv            +lispindent        +quickfix          +viminfo
-cscope            +listcmds          +reltime           +vreplace
+cursorbind        +localmap          +rightleft         +wildignore
+cursorshape       -lua               -ruby              +wildmenu
+dialog_con        +menu              +scrollbind        +windows
+diff              +mksession         +signs             +writebackup
+digraphs          +modify_fname      +smartindent       -X11
-dnd               +mouse             -sound             -xfontset
-ebcdic            -mouseshape        +spell             -xim
+emacs_tags        +mouse_dec         +startuptime       -xpm
+eval              -mouse_gpm         +statusline        -xsmp
+ex_extra          -mouse_jsbterm     -sun_workshop      -xterm_clipboard
+extra_search      +mouse_netterm     +syntax            -xterm_save
   system vimrc file: "/opt/local/etc/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/opt/local/share/vim"
Compilation: /usr/bin/clang -c -I. -Iproto -DHAVE_CONFIG_H   -I/opt/local/include -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -DMACOS_X -DMACOS_X_DARWIN  -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -arch x86_64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       
Linking: /usr/bin/clang   -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -arch x86_64 -o vim        -lm  -lncurses -liconv -lintl -framework AppKit    -L/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -lintl -framework CoreFoundation -L/opt/local/Library/Frameworks/Py /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python       
arcticicestudio commented 3 years ago

Hi @ain 👋🏼

I've guess your .vim repository is what is used for Vim so I quickly checked the vimrc file. It looks like you've placed the colorscheme statement before vim-plug‘s plugin loading block. Therefore Vim can't find the theme because it is not yet available in the global scope. Can you please try to move the colorscheme below the block of vim-plug block?

The Nord Vim documentation about theme configurations and customizations already has a information box at the top that tries to notify the user to take the order to statements in the vimrc file into account, but I guess its a good idea to add these to the activation section and README in the repository too.

ain commented 3 years ago

Thanks for such a prompt feedback @arcticicestudio !

I did in fact follow the guidance and the best result I was able to get was this:

Screenshot 2020-12-08 at 10 56 39
ain commented 3 years ago

Necessary to add that I'm running Vim in tmux:

$ tmux -V
tmux 3.1c
arcticicestudio commented 3 years ago

It looks like you're missing the actual terminal emulator color theme. The information box at the top of the installation documentation provides some details, but in short this means you need to install/activate the Nord port for whatever terminal emulator you're running, e.g. iTerm2/Terminal.app on macOS, Tilix/GNOME Terminal on Linux or PuTTY/MinTTY on Windows.

ain commented 3 years ago

Excellent! That was indeed the case, installing Nord.terminal profile for Terminal.app and restarting it solved the issue!

Thanks again for the support!

Screenshot 2020-12-08 at 21 40 15
arcticicestudio commented 3 years ago

Great to see it works for you now 🎉 By the way, the ⍰ signs in the bar and some UI elements are caused by font rendering issues. You can install a so called “patched“ font that is especially compiled for terminals. One of the most popular project is NerdFonts which provides patched fonts for almost any well-known font family.