虽然有gvim,但是我依然更喜欢控制台(可理解为博主的偏执已经发展到某个阶段)。

windows自带的控制台很糟糕,尤其是我正在用的win7竟然没有全屏功能。任何一个占领屏幕的图标显然是不可忍受的。

虽然我已经有了cygwin但是我依然希望使用原生环境的vim(偏执的持续发展)

上github搜搜,我们得到了cmder,其主页下载地址

cmder的注意点:

1.需要vc2015运行库支持

2.升级powershell到4.0

3.使用管理员权限执行后运行命令

  1. Set-ExecutionPolicy -ExecutionPolicy Bypass

Alt+Enter进入全屏,目标基本达到

之后是vim

使用,加路径不多说。

主要是乱码问题。

由于windows的代码页是cp936,所以必须在_vimrc中设定编码。

  1. "控制台模式下输入法无法输入部分汉字,虽然定义为cp936输入正常,但是太多插件是根据utf-8设计的,如果使用其他值会导致错误。此外cmder中的vim,中文光标位置不正确。
  2. set encoding=utf-8
  3. "控制台显示方式定义为cp936
  4. set termencoding=cp936
  5. "文件编码 无需定义
  6. "set fileencoding=utf-8
  7. "编码搜索次序,如果encoding为cp936,ucs-bom无效
  8. set fileencodings=ucs-bom,utf-8,cp936

我的vim版本:

  1. :version
  2. VIM - Vi IMproved 7.4 ( Aug , compiled Aug ::)
  3. MS-Windows -bit console version
  4. Included patches: -
  5. Compiled by Haroogan <Haroogan@gmail.com>
  6. Huge version without GUI. Features included (+) or not (-):
  7. +acl +comments +ex_extra +keymap +multi_byte_ime/dyn +reltime -tag_any_white +vreplace
  8. +arabic +conceal +extra_search +langmap +multi_lang +rightleft -tcl +wildignore
  9. +autocmd +cryptv +farsi +libcall -mzscheme +ruby/dyn -tgetent +wildmenu
  10. -balloon_eval +cscope +file_in_path +linebreak -netbeans_intg +scrollbind -termresponse +windows
  11. -browse +cursorbind +find_in_path +lispindent +path_extra +signs +textobjects +writebackup
  12. ++builtin_terms +cursorshape +float +listcmds +perl/dyn +smartindent +title -xfontset
  13. +byte_offset +dialog_con +folding +localmap +persistent_undo -sniff -toolbar -xim
  14. +cindent +diff -footer +lua/dyn -postscript +startuptime +user_commands -xterm_save
  15. +clientserver +digraphs +gettext/dyn +menu +printer +statusline +vertsplit -xpm_w32
  16. +clipboard -dnd -hangul_input +mksession +profile -sun_workshop +virtualedit
  17. +cmdline_compl -ebcdic +iconv/dyn +modify_fname +python/dyn +syntax +visual
  18. +cmdline_hist +emacs_tags +insert_expand +mouse +python3/dyn +tag_binary +visualextra
  19. +cmdline_info +eval +jumplist -mouseshape +quickfix +tag_old_static +viminfo
  20. system vimrc file: "$VIM\vimrc"
  21. user vimrc file: "$HOME\_vimrc"
  22. 2nd user vimrc file: "$HOME\vimfiles\vimrc"
  23. 3rd user vimrc file: "$VIM\_vimrc"
  24. user exrc file: "$HOME\_exrc"
  25. 2nd user exrc file: "$VIM\_exrc"
  26. Dependency: python27.dll, python34.dll, x64-msvcrt-ruby200.dll, lua52.dll, perl518.dll, libintl.dll, libiconv.dll, iconv.dll

完成,上图:

windows中vim以及cmder的使用的更多相关文章

  1. Windows下Git Bash中VIM打开文件中文乱码

    Windows下Git Bash中VIM打开文件中文乱码,解决方法是: 步骤一 admin@DESKTOP-O99620V MINGW64 /d/项目GGE/Hard_for_GGE (master) ...

  2. windows下vim 块模式问题

    VIM: gvim 使用 Ctrl+V 發表於 2005 年 10 月 27 日 由 Tsung vim 要做垂直選取的動作, 就要使用 "Ctrl + v", 但是 gvim 會 ...

  3. cygwin中vim的使用方法

    vim类似Windows中的记事本,功能非常强大. vim的使用技巧 1.vim text.txt text存在则打开,不存在则类似新建一个叫text的txt文件 2.退出 按esc切换到命令模式,然 ...

  4. 像Linux终端一样使用windows命令行【cmder】

    像Linux终端一样使用windows命令行[cmder] 下载cmder 我下载的是full版,下载之后是个压缩包,解压之后点击cmder.exe即可运行. 需要解决的几个问题 默认的是λ,当然还是 ...

  5. 解决windows下vim中文乱码

    解决windows下vim中文乱码 windows安装了vim8,也就是gvim后,打开带有中文的文档,显示中文是乱码. 毕竟有许多文档我是用utf-8编码的,所以解决的办法是设置一下编码为utf-8 ...

  6. macOS中Vim基本配置,颜色主题/语法/indent设置

    macOS中Vim基本配置 Vim的初始化配置 .vimrc 存放位置 macOS 环境下 vim 的初始化配置文件为 .vimrc , 通常有两个(系统版本和用户版本),一个位于 /usr/shar ...

  7. Centos开机自己主动挂载windows中的ntfs磁盘

    装了windows和centos双系统后,发如今centos中无法进入windows中的磁盘,更不要说查看磁盘里的文件了! 原来默认情况下.centos不支持Widows NTFS硬盘分区读写,要想把 ...

  8. Windows下Vim插件管理器Vundle的安装以及使用简介

    Vundle下载 从GitHub clone仓库 cd %USERPROFILE% git clone git@github.com:VundleVim/Vundle.vim.git %USERPRO ...

  9. Windows中使用TortoiseGit提交项目到GitLab配置

    下文来给各位介绍Windows中使用TortoiseGit提交项目到GitLab配置过程,下在全部图片希望对各位带来方便面. Gitlab默认的配置推荐使用shell命令行与server端进行交互,作 ...

随机推荐

  1. css relative

    一.relative和absolute相煎关系 relative限制absolute 1.限制left/top/right/bottom定位 如果父元素有relative,只能根据父元素进行定位 2. ...

  2. (第三场) H Diff-prime Pairs 【数论-素数线性筛法+YY】

    题目链接 题目描述 Eddy has solved lots of problem involving calculating the number of coprime pairs within s ...

  3. 【luogu P2762 太空飞行计划问题】 题解

    题目链接:https://www.luogu.org/problemnew/show/P2762 算是拍照那个题的加强下. 输入真的很毒瘤.(都这么说但好像我的过了?) #include <qu ...

  4. 【luogu P1865 A % B Problem】 题解

    题目链接:https://www.luogu.org/problemnew/show/P1865 其实就是埃拉托色尼筛素数模板... 好像每个数暴力枚举到sqrt()也可以...就算当我无聊练手罢 # ...

  5. 10474 - Where is the Marble?(模拟)

    传送门: UVa10474 - Where is the Marble? Raju and Meena love to play with Marbles. They have got a lot o ...

  6. plsql Developer11的工具栏没有了如何找回来

    以前都是用的plsql developer7,最常用的工具类如下: 这次下载了12,发现风格变了,经常用的执行.提交.回滚按钮都在会话菜单下了 如何找回工具栏呢,如下操作:

  7. TensorFlow安装环境的误区

    安装py一定要注意安装的版本,我一开始安装的3.7版本的,现在还没有支持,另外,看清楚自己电脑是32位还是64位的

  8. Nacicat for Oracle 绿色版 亲测可用

    参考: http://blog.csdn.net/u013107634/article/details/52741591 https://blog.csdn.net/zhengyikuangge/ar ...

  9. numpy的总结

    一:基础篇 1)数值 import numpy as np np.set_printoptions(linewidth=200,suppress=True) a = np.array([1,2,3,4 ...

  10. let's encrypt部署免费泛域名证书

    环境说明 [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) [root@localhos ...