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

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

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

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

cmder的注意点:

1.需要vc2015运行库支持

2.升级powershell到4.0

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 ( Aug , compiled Aug ::)
MS-Windows -bit console version
Included patches: -
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

完成,上图:

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. Spring ApplicationListener配合-D实现参数初始化

    ApplicationListener是SpringBoot的监听器,提供了四种事件: ApplicationStartedEvent :spring boot启动开始时执行的事件 Applicati ...

  2. U盘空间释放

    U盘做成启动盘后,怎么释放空间,恢复到原来的容量.这里有个帖子,我觉得很方便,不用安装什么东西,简单直接. http://blog.sina.com.cn/s/blog_68f6e8a901014cv ...

  3. android 学习笔记 杂记1

    getIntent().getExtras().get("intent"); 这个intent是数据包装的参数. 比如: Intent intent = new Intent(th ...

  4. 史上最简单的 SpringCloud 教程 | 第一篇: 服务的注册与发现Eureka(Finchley版本)

    转载请标明出处: 原文首发于:https://www.fangzhipeng.com/springcloud/2018/08/30/sc-f1-eureka/ 本文出自方志朋的博客 一.spring ...

  5. 关于math.random()的问题

    今天在写一个关于随机数的小程序时,在程序执行时,发现随机数不能执行随机,随机结果始终为1. 下面贴上一开始错误的代码 int i = (int)Math.random()*3+1; 无论运行多少次,结 ...

  6. meclipse6.5破解

    package com.test.ssh.common;   import java.text.DecimalFormat; import java.text.NumberFormat; import ...

  7. ABAP术语-Function Library

    Function Library 原文:http://www.cnblogs.com/qiangsheng/archive/2008/02/14/1068642.html Central reposi ...

  8. nignx 配置服务集群

    前言:这里只是简单介绍Nginx简单APP Server集群的搭建和设置发向代理. 后续有时间我会陆续加上Nginx的基础知识.三种负载均衡的策略设置.实现算法的介绍.(最后如果有测试环境,再模拟Ng ...

  9. Struts2拦截器说明

    有关于Struts2的拦截器的原理 在此共设置了两个拦截器,firstInterception.SecondInterception package struts2_inteception; publ ...

  10. Linux分享笔记:系统状态检测命令小结

    作为一名合格的运维人员,要能很好地了解Linux服务器,要能熟练查看Linux系统的运行状态.以下是常用到的Linux系统状态检测命令. 1. ifconfig:用于获取网卡配置与网络状态等信息.通常 ...