vim - Encoding issue when changing vimrc file default location -
i'm using vim on windows, , in order "change" vimrc
file location have following line in _vimrc
file in home directory:
source $home\.vim\.vimrc
i thought worked fine way when tried changing symbol plugin (tagbar) fancy 1 this:
let g:tagbar_iconchars = ['▸', '▾']
the plugin symbol didn't show glyph <br>
character instead. noticed same problem appeared when attempting change symbol in several other plugins (vimfiler, airline, etc) , found out if changed symbols in _vimrc
file rather in new .vimrc
file issue fixed.
is there encoding being set source
command in _vimrc
file triggering problem? thought "changing" vimrc
file location way did fine, there other problems method?
in pre-7.4 vim, cleanest way source "real" vimrc
default user-level vimrc
($home/_vimrc
(windows) or $home/.vimrc
(unix)) place in $home/vimfiles/
(windows) or $home/.vim/
(unix) , use line line in default user-level vimrc
:
runtime vimrc
since 7.4, vim automatically tries source $home/.vimrc
and $home/.vim/vimrc
so, if work machines running 7.4, can safely stop doing trying do.
also, on windows, canonical location config $home/vimfiles
, not $home/.vim
.
Comments
Post a Comment