[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[文字编辑] 免费开源的文本编辑工具 Vim 9.1

软件名称:Vim
最新版本:9.1
体积大小:10.5 MB
更新日期:2024-01-02
使用环境:Windows/DOS/Unix/Amiga/OS/Macintosh/Others
软件性质:免费开源软件/英文
官方主页:http://www.vim.org/index.php

英语水平不够好的朋友,可以使用在线工具(https://fanyi.baidu.com/?fr=allproduct)进行翻译。

After fifteen months of work: a brand new Vim release! This is a stable version. There are many bug fixes and updated runtime files. The only new feature worth mentioning is support for floating point. Upgrading from a previous version is highly recommended: a few crashing bugs and several security issues were fixed. For the details see the announcement. Or go directly to the download page. (Bram Moolenaar)

What Is Vim?

Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems.

Vim is often called a "programmer's editor," and so useful for programming that many consider it an entire IDE. It's not just for programmers, though. Vim is perfect for all kinds of text editing, from composing email to editing configuration files.

Despite what the above comic suggests, Vim can be configured to work in a very simple (Notepad-like) way, called evim or Easy Vim.

What Vim Is Not?

Vim isn't an editor designed to hold its users' hands. It is a tool, the use of which must be learned.

Vim isn't a word processor. Although it can display text with various forms of highlighting and formatting, it isn't there to provide WYSIWYG editing of typeset documents. (It is great for editing TeX, though.)
我帮忙写的代码不需要付钱。如果一定要给,请在微信群或QQ群发给大家吧。
【微信公众号、微信群、QQ群】http://bbs.bathome.net/thread-3473-1-1.html
【支持批处理之家,加入VIP会员!】http://bbs.bathome.net/thread-67716-1-1.html

vim也来了...支持一下...最好能贴下如何配置自己的vimrc嘛...
for /f "delims=" %%a in ('%0') do (echo %%a)

TOP

Vim是个十分强大的文本编辑器,经历了漫长岁月的洗礼,在多如牛毛的文本编辑器中仍然保持着旺盛的生命力,拥有一批骨灰级的忠实用户——出生于1988年的它,年龄恐怕比很多论坛用户都还大吧?

  几次打开Vim,却又屡次不得其门,连TotalCommander这样的BT级别的软件都基本搞定了,却还是有点不太适应Vim的操作方式,真是好事多磨啊,看来得好好学一下了。

  上传一本pdf格式的《Vim7.2中文版用户手册》,与大家一起分享。
尺有所短寸有所长,学好批处理没商量;
考虑问题复杂化,解决问题简洁化。

心在天山,身老沧州。

TOP

回复 3楼 的帖子

的确是这样啊。。。但如果掌握了对程序员一类的人来说效率能提升不少.
for /f "delims=" %%a in ('%0') do (echo %%a)

TOP

原帖由 BBCC 于 2009-3-3 19:12 发表
vim也来了...支持一下...最好能贴下如何配置自己的vimrc嘛...

  帖一个网上Vim高手配置的_vimrc文件配置(出处:http://fayaa.com/code/view/5/):
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
set diffexpr=MyDiff()
function MyDiff()
  let opt = '-a --binary '
  if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
  if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
  let arg1 = v:fname_in
  if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
  let arg2 = v:fname_new
  if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
  let arg3 = v:fname_out
  if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
  if &sh =~ '\<cmd'
    silent execute '!""C:\Program Files\Vim\vim71\diff" ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . '"'
  else
    silent execute '!C:\Program" Files\Vim\vim71\diff" ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3
  endif
endfunction

set cursorline
set shiftwidth=4
set sts=4
set tabstop=4
set expandtab
set nonu
set nobackup
set guioptions-=T
set guioptions-=m
set guifont=Consolas:h12
"set guifont=Bitstream_Vera_Sans_Mono:h10
"set guifont=Lucida_Console:h10
set langmenu=none
language messages en_us
let $LANG='zh'
"set fileencodings=utf-8,GBK
set fileencoding=utf8
set encoding=utf8
set tenc=utf8
set ut=200

"colorscheme desert
colorscheme wombat

map <leader><leader> \be
map <leader>Enter \vt
map C-Enter C-Tab

let g:Tlist_Use_Right_Window=1
let g:Tlist_Auto_Open=1
let g:Tlist_Show_One_File=1
let g:Tlist_Compact_Format=1
let g:Tlist_Enable_Fold_Column=0
let g:treeExplVertical=1
let g:treeExplWinSize=30
let mapleader = '\'

set iskeyword+=.

set ambiwidth=double
set ignorecase smartcase
set so=7
au GUIEnter * simalt ~x

python << EOF
import time
import vim
def SetBreakpoint():
    nLine = int( vim.eval( 'line(".")'))
    strLine = vim.current.line
    i = 0
    strWhite = ""
    while strLine == ' ' or strLine == "\t":
        i += 1
        strWhite += strLine
    vim.current.buffer.append(
       "%(space)spdb.set_trace() %(mark)s Breakpoint %(mark)s" %
         {'space':strWhite, 'mark': '#' * 30}, nLine - 1)
    for strLine in vim.current.buffer:
        if strLine == "import pdb":
            break
        else:
            vim.current.buffer.append( 'import pdb', 0)
            vim.command( 'normal j1')
            break
vim.command( 'map <C-F7> :py SetBreakpoint()<cr>')

def RemoveBreakpoints():
    nCurrentLine = int( vim.eval( 'line(".")'))
    nLines = []
    nLine = 1
    for strLine in vim.current.buffer:
        if strLine == 'import pdb' or strLine.lstrip()[:15] == 'pdb.set_trace()':
            nLines.append( nLine)
        nLine += 1
    nLines.reverse()
    for nLine in nLines:
        vim.command( 'normal %dG' % nLine)
        vim.command( 'normal dd')
        if nLine < nCurrentLine:
            nCurrentLine -= 1
    vim.command( 'normal %dG' % nCurrentLine)
vim.command( 'map <C-F8> :py RemoveBreakpoints()<cr>')
vim.command( 'map <C-D> :!python %<cr>')
EOF

"Set some bindings up for 'compile' of python
"au BufNewFile,BufRead *.py :set makeprg=python\ %
"au BufNewFile,BufRead *.py :set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%m
"au BufNewFile,BufRead *.py nmap <buffer> <F8> :up!<cr>:make<cr>
"au BufNewFile,BufRead *.py vmap <buffer> <F8> :<c-u>up!<cr>:make<cr>
"au BufNewFile,BufRead *.py nmap <buffer> <F12> :cl<cr>


  再上传一个这位高手已经配置好了的Vim 7.1(出处:http://www.2maomao.com/blog/vim-7-pack-configured/,下载地址:http://www.2maomao.com/files/Vim.7z
插件列表
  1. a.vim : 同目录cpp/c与对应的.h文件之间切换,根据文件名
  2. bufexplorer.vim : 用来切换buffer,修改过,改动了启动方式
  3. comments.vim : 注释插件,在正常模式cm即可注释一行,v模式选中之后cm注释很多行,cu取消
  4. matchit.vim : 对映大中小括号,#if等等等之间用%跳转
  5. supertab.vim : 插入模式Tab补齐,Ctrl+N毕竟比较烦
  6. tabswitch.vim : 我写的,使用以后可以ctrl+hjkl,在窗口之间跳转,用Ctrl+Tab可以切换buffer
  7. taglist.vim : 显示多个tag的方式,修改过,现在针对一个文件显示比较简洁
  8. vtreeexplorer.vim : 显示文件系统树
复制代码
针对性的vimrc文件设置:
  1. set cursorline " 当前光标所在行会有阴影
  2. "tab转空格的一坨设置
  3. set shiftwidth=4
  4. set sts=4
  5. set tabstop=4
  6. set expandtab
  7. set nonu " 不要行号
  8. set nobackup " 不要备份
  9. set guioptions-=T " 不要工具条
  10. set guifont=Bitstream_Vera_Sans_Mono:h10 " Bitstream字体
  11. set ut=200 " 更新时间200毫秒,针对taglist插件
  12. let mapleader = '\' " leader用反斜杠\
  13. map <leader><leader> \be " 双反斜杠\\即可打开bufexplorer
  14. map C-Enter C-Tab " Ctrl+Enter也可以切换buffer
  15. "Taglist插件的一坨设置
  16. let g:Tlist_Use_Right_Window=1
  17. let g:Tlist_Auto_Open=1
  18. let g:Tlist_Show_One_File=1
  19. let g:Tlist_Compact_Format=1
  20. let g:Tlist_Enable_Fold_Column=0
  21. "Tree explorer的一坨设置
  22. let g:treeExplVertical=1
  23. let g:treeExplWinSize=30
  24. "gvim打开以后最大化
  25. au GUIEnter * simalt ~x
  26. "smartcase,这样搜索时默认不区分大小写,只有搜索关键字中出现一个大字母时才区分大小写
  27. set ignorecase smartcase
  28. "光标在窗口上下边界时距离边界7行即开始滚屏
  29. set so=7
复制代码
尺有所短寸有所长,学好批处理没商量;
考虑问题复杂化,解决问题简洁化。

心在天山,身老沧州。

TOP

谢谢楼主的分享啊!!!

TOP

谢谢分享
这个编辑器适合初学者用吗?

TOP

这个编辑器听说很强大,但界面实在是不敢恭维。。。。。。

TOP

这个是给极客用的 嘿嘿

TOP

听说确实不错的!   对程序员
有创新,多创新;无创新,多模仿;无模仿,多坚持

TOP

升级到7.3喽
我帮忙写的代码不需要付钱。如果一定要给,请在微信群或QQ群发给大家吧。
【微信公众号、微信群、QQ群】http://bbs.bathome.net/thread-3473-1-1.html
【支持批处理之家,加入VIP会员!】http://bbs.bathome.net/thread-67716-1-1.html

TOP

升级到7.3喽
Batcher 发表于 2012-3-10 19:13



    管理员,您OUT了,好像最新的是7.6~~~
快来升级吧。

TOP

gvim73_46.exe
ftp://ftp.vim.org/pub/vim/pc/gvim73_46.exe

TOP

回复 14# 我来了


    顶楼已更新,感谢提醒。

TOP

这个现在还有人用吗?

TOP

返回列表