I am compiling VIM in Ubuntu 20.04. I tried compiling it according to this doc. However, I can not get it to read the system file /etc/vim. It also does not read ~./vimrc and does not read ~/.vim/ (contains colors, pack, plugins, etc) and does not read ~/.vimrc. Where do I set these settings so it compiles with these?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub,.
You are receiving this because you are subscribed to this thread.![]()
Thank you for the reply. It does look like what you posted. I was able to get it to read the system wide file /etc/vim/vimrc with export VIM=/etc/vim/.
However, I have 2 issues now:
E484: Can't open file /etc/vim/syntax/syntax.vim. This file does not exist on my system. Should it with ver 9? I was prev using ver 8. It comes from" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
if has("syntax")
syntax on
endif
~/.vimrc but my vim session is not loading that I can see. I am missing my themes/color and auto indentions.VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Sep 27 2023 09:13:13)
Included patches: 1-1943
Compiled by one@work
Huge version without GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_urxvt -tag_any_white
+arabic +find_in_path +mouse_xterm -tcl
+autocmd +float +multi_byte +termguicolors
+autochdir +folding +multi_lang +terminal
-autoservername -footer -mzscheme +terminfo
-balloon_eval +fork() +netbeans_intg +termresponse
+balloon_eval_term -gettext +num64 +textobjects
-browse -hangul_input +packages +textprop
++builtin_terms +iconv +path_extra +timers
+byte_offset +insert_expand -perl +title
+channel +ipv6 +persistent_undo -toolbar
+cindent +job +popupwin +user_commands
-clientserver +jumplist +postscript +vartabs
-clipboard +keymap +printer +vertsplit
+cmdline_compl +lambda +profile +vim9script
+cmdline_hist +langmap -python +viminfo
+cmdline_info +libcall -python3 +virtualedit
+comments +linebreak +quickfix +visual
+conceal +lispindent +reltime +visualextra
+cryptv +listcmds +rightleft +vreplace
+cscope +localmap -ruby +wildignore
+cursorbind -lua +scrollbind +wildmenu
+cursorshape +menu +signs +windows
+dialog_con +mksession +smartindent +writebackup
+diff +modify_fname -sodium -X11
+digraphs +mouse -sound -xfontset
-dnd -mouseshape +spell -xim
-ebcdic +mouse_dec +startuptime -xpm
+emacs_tags -mouse_gpm +statusline -xsmp
+eval -mouse_jsbterm -sun_workshop -xterm_clipboard
+ex_extra +mouse_netterm +syntax -xterm_save
+extra_search +mouse_sgr +tag_binary
-farsi -mouse_sysmouse -tag_old_static
system vimrc file: "$VIM/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: "/usr/local/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -fno-strength-reduce -Wal
—
Reply to this email directly, view it on GitHub,.
You are receiving this because you commented.![]()
check what is $VIMRUNTIME is set when running vim: :echo $VIMRUNTIME
Also just to be sure, you did use :make install? Else you would need to set the $VIMRUNTIME environment variable
—
Reply to this email directly, view it on GitHub,.
You are receiving this because you commented.![]()
:echo $VIMRUNTIME shows as /usr/local/share/vim/vim90
Here is my command history on I compiled and installed it:
34187 ./configure --prefix=/usr
34188 make distclean
34189 ./configure --prefix=/usr --enable-gui=gtk
34190 make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim MAKE="make -e"
34191 sudo make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim MAKE="make -e"
34192 make install
34193 sudo make install
—
Reply to this email directly, view it on GitHub,.
You are receiving this because you commented.![]()