虽然有gvim,但是我依然更喜欢控制台(可理解为博主的偏执已经发展到某个阶段)。
windows自带的控制台很糟糕,尤其是我正在用的win7竟然没有全屏功能。任何一个占领屏幕的图标显然是不可忍受的。
虽然我已经有了cygwin但是我依然希望使用原生环境的vim(偏执的持续发展)
cmder的注意点:
1.需要vc2015运行库支持
3.使用管理员权限执行后运行命令
Set-ExecutionPolicy -ExecutionPolicy Bypass
Alt+Enter进入全屏,目标基本达到
之后是vim
使用,加路径不多说。
主要是乱码问题。
由于windows的代码页是cp936,所以必须在_vimrc中设定编码。
"控制台模式下输入法无法输入部分汉字,虽然定义为cp936输入正常,但是太多插件是根据utf-8设计的,如果使用其他值会导致错误。此外cmder中的vim,中文光标位置不正确。 set encoding=utf-8 "控制台显示方式定义为cp936 set termencoding=cp936 "文件编码 无需定义 "set fileencoding=utf-8 "编码搜索次序,如果encoding为cp936,ucs-bom无效 set fileencodings=ucs-bom,utf-8,cp936
我的vim版本:
:version VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 25 2014 03:23:11) MS-Windows 64-bit console version Included patches: 1-417 Compiled by Haroogan <Haroogan@gmail.com> Huge version without GUI. Features included (+) or not (-): +acl +comments +ex_extra +keymap +multi_byte_ime/dyn +reltime -tag_any_white +vreplace +arabic +conceal +extra_search +langmap +multi_lang +rightleft -tcl +wildignore +autocmd +cryptv +farsi +libcall -mzscheme +ruby/dyn -tgetent +wildmenu -balloon_eval +cscope +file_in_path +linebreak -netbeans_intg +scrollbind -termresponse +windows -browse +cursorbind +find_in_path +lispindent +path_extra +signs +textobjects +writebackup ++builtin_terms +cursorshape +float +listcmds +perl/dyn +smartindent +title -xfontset +byte_offset +dialog_con +folding +localmap +persistent_undo -sniff -toolbar -xim +cindent +diff -footer +lua/dyn -postscript +startuptime +user_commands -xterm_save +clientserver +digraphs +gettext/dyn +menu +printer +statusline +vertsplit -xpm_w32 +clipboard -dnd -hangul_input +mksession +profile -sun_workshop +virtualedit +cmdline_compl -ebcdic +iconv/dyn +modify_fname +python/dyn +syntax +visual +cmdline_hist +emacs_tags +insert_expand +mouse +python3/dyn +tag_binary +visualextra +cmdline_info +eval +jumplist -mouseshape +quickfix +tag_old_static +viminfo 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" Dependency: python27.dll, python34.dll, x64-msvcrt-ruby200.dll, lua52.dll, perl518.dll, libintl.dll, libiconv.dll, iconv.dll
完成,上图: