vim에서 session을 사용하면, highlight (color set)을 못 읽어 옵니다...
글쓴이: readme / 작성시간: 금, 2012/12/07 - 2:42오전
아... 그림 올리려다가 본문을 날려먹었네요... ㅠㅠ...
제목 그대로 입니다...
그냥 열면 .vimrc에 있는 highlight를 잘 가져오는데,
"$vim -S session_file"로 열면 .vimrc에 있는 highlight설정을 못가지고 오네요...
세션을 써도 ~/.vimrc의 highlight color를 적용할수 있는 방법은 없을까요?
(분명히 syntax on, highlight color 설정은 정상으로 잘 되어있어요... Session 적용시에만 문제에요)
조언을 부탁드려요...
File attachments:
| 첨부 | 파일 크기 |
|---|---|
| 78.2 KB |
Forums:


일반적인 현상은 아닌 것 같습니다. 저는 잘
일반적인 현상은 아닌 것 같습니다.
저는 잘 되네요.
문제에 대해서 좀 더 자세히 기술해주세요.
os, version, file type 등등.
[~]$ vim --version VIM - Vi
[~]$ vim --version VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 23 2012 18:44:13) 포함된 패치: 1-712 Compiled by ArchLinux Big 버젼 GTK2 GUI. 기능 (+: 포함됨, -: 포함 안 됨): +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +float +folding -footer +fork() +gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +lua +menu +mksession +modify_fname +mouse +mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm +mouse_sgr -mouse_sysmouse +mouse_urxvt +mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg +path_extra +perl +persistent_undo +postscript +printer -profile +python -python3 +quickfix +reltime +rightleft +ruby +scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup +X11 -xfontset +xim +xsmp_interact +xterm_clipboard -xterm_save 시스템 vimrc 파일: "/etc/vimrc" 사용자 vimrc 파일: "$HOME/.vimrc" 사용자 exrc 파일: "$HOME/.exrc" 시스템 gvimrc 파일: "/etc/gvimrc" 사용자 gvimrc 파일: "$HOME/.gvimrc" 시스템 메뉴 파일: "$VIMRUNTIME/menu.vim" fall-back for $VIM: "/usr/share/vim" 컴파일: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/local/include -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 링크: gcc -L. -Wl,-O1,--sort-common,--as-needed,-z,relro -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 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXt -lX11 -lXdmcp -lSM -lICE -lm -lncurses -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 -L/usr/local/lib -L/usr/lib/perl5/core_perl/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc -L/usr/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -lruby -lpthread -lrt -ldl -lcrypt -lm -L/usr/lib하이라이트는 다음과 같이 설정해서 씁니다. 물론 .vimrc에 있죠
이런... 익명으로 글 올려버렸네요.; 작성자는
이런... 익명으로 글 올려버렸네요.; 작성자는 접니다;;;
아... 다시한번 (햇갈릴까봐)말씀 드리자면...
syntax color가 안 켜진다는게 아닙니다... 단지 vimrc의 highlight color가 적용안된다는것 뿐이에요...
그냥 colorschme 적용해서 대충 해결했네요
그냥 colorschme 적용해서 대충 해결했네요 ㅠ..
댓글 달기