【发布时间】:2011-09-01 19:55:46
【问题描述】:
我的主目录中有一个 .vimrc 文件,我在其中放置了一些 vim 命令,但这些命令仅在 gVim 中有效,在 Vim 中无效。问题是什么? Vim 还有其他配置文件吗?
顺便说一下,这是我的 .vimrc 文件:
1 colorscheme desert
2 " To save, ctrl-s.
3 nmap <c-s> :w<CR>
4 imap <c-s> <Esc>:w<CR>a
5 " Set the boolean number option to true
6 set number
7 highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
8 " Set the shift width(for Python programmnig)"
9 set sw=4
10 "Convert all tabs to an equivalent spaces"
11 set expandtab
12 set softtabstop=4
13 retab
14 "Show cursor position in status bar"
15 set ruler
附言。我只是不能在 vim 中运行命令 Ctrl-s,我可以在 vim 中作为 gVim 运行其他命令。
【问题讨论】:
标签: vim