免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5618 | 回复: 19
打印 上一主题 下一主题

[桌面系统] 还是VIM的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-04-25 12:50 |只看该作者 |倒序浏览
启动到GNOME正常使用VIM
直接启动到字符界面后用VIM打开文件后光标不能移动提示:“E388: can't find definition”怎样处理这个问题啊(我是编译安装的VIM-6。2)?

论坛徽章:
0
2 [报告]
发表于 2004-04-25 14:48 |只看该作者

还是VIM的问题

通过SSH连上去VIM使用正常。

论坛徽章:
0
3 [报告]
发表于 2004-04-25 19:39 |只看该作者

还是VIM的问题

UP

论坛徽章:
0
4 [报告]
发表于 2004-04-26 07:41 |只看该作者

还是VIM的问题

up

论坛徽章:
0
5 [报告]
发表于 2004-04-26 08:18 |只看该作者

还是VIM的问题

好像是gnome-terminal 的keymap有问题。你的~/.vimrc的内容是什么

论坛徽章:
0
6 [报告]
发表于 2004-04-26 08:25 |只看该作者

还是VIM的问题

原帖由 "llzqq" 发表:
启动到GNOME正常使用VIM
直接启动到字符界面后用VIM打开文件后光标不能移动提示:“E388: can't find definition”怎样处理这个问题啊(我是编译安装的VIM-6。2)?


你的文件里有汉字,对吧?
我的也是这样。
不过多按几次a就OK了。嘿嘿
psaux 该用户已被删除
7 [报告]
发表于 2004-04-26 13:05 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
8 [报告]
发表于 2004-04-26 14:39 |只看该作者

还是VIM的问题

[quote]原帖由 "sakulagi"]好像是gnome-terminal 的keymap有问题。你的~/.vimrc的内容是什么[/quote 发表:


来晚了, .vimrc的内容如下:


  1. " An example for a vimrc file.
  2. "
  3. " Maintainer:   Bram Moolenaar <Bram@vim.org>;
  4. " Last change:  2002 Sep 19
  5. "
  6. " To use it, copy it to
  7. "     for Unix and OS/2:  ~/.vimrc
  8. "             for Amiga:  s:.vimrc
  9. "  for MS-DOS and Win32:  $VIM\_vimrc
  10. "           for OpenVMS:  sys$login:.vimrc

  11. " When started as "evim", evim.vim will already have done these settings.
  12. if v:progname =~? "evim"
  13.   finish
  14. endif

  15. " Use Vim settings, rather then Vi settings (much better!).
  16. " This must be first, because it changes other options as a side effect.
  17. set nocompatible

  18. " allow backspacing over everything in insert mode
  19. set backspace=indent,eol,start

  20. if has("vms")
  21.   set nobackup          " do not keep a backup file, use versions instead
  22. else
  23.   set nobackup          " keep a backup file
  24. endif
  25. set history=50          " keep 50 lines of command line history
  26. set ruler               " show the cursor position all the time
  27. set showcmd             " display incomplete commands
  28. set incsearch           " do incremental searching

  29. " For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
  30. let &guioptions = substitute(&guioptions, "t", "", "g")

  31. " Don't use Ex mode, use Q for formatting
  32. map Q gq

  33. " This is an alternative that also works in block mode, but the deleted
  34. " text is lost and it only works for putting the current register.
  35. "vnoremap p "_dp

  36. " Switch syntax highlighting on, when the terminal has colors
  37. " Also switch on highlighting the last used search pattern.
  38. if &t_Co >; 2 || has("gui_running")
  39.   syntax on
  40.   set hlsearch
  41. endif

  42. " Only do this part when compiled with support for autocommands.
  43. if has("autocmd")

  44.   " Enable file type detection.
  45.   " Use the default filetype settings, so that mail gets 'tw' set to 72,
  46.   " 'cindent' is on in C files, etc.
  47.   " Also load indent files, to automatically do language-dependent indenting.
  48.   filetype plugin indent on

  49.   " Put these in an autocmd group, so that we can delete them easily.
  50.   augroup vimrcEx
  51.   au!

  52.   " For all text files set 'textwidth' to 78 characters.
  53.   autocmd FileType text setlocal textwidth=78

  54.   " When editing a file, always jump to the last known cursor position.
  55.   " Don't do it when the position is invalid or when inside an event handler
  56.   " (happens when dropping a file on gvim).
  57.   autocmd BufReadPost *
  58.     \ if line("'\"") >; 0 && line("'\"") <= line("$") |
  59.     \   exe "normal g`\"" |
  60.     \ endif

  61.   augroup END

  62. else

  63.   set autoindent                " always set autoindenting on

  64. endif " has("autocmd")
复制代码

论坛徽章:
0
9 [报告]
发表于 2004-04-26 14:51 |只看该作者

还是VIM的问题

export TERM=xterm再试验一下,

论坛徽章:
0
10 [报告]
发表于 2004-04-26 15:03 |只看该作者

还是VIM的问题

另外试验一下先把你~/.vimrc改个名字看看问题是不是还存在。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP