I have a .vimrc file in my home directory in which I have put some vim commands but those commands only work in gVim and not in Vim. What is the problem? Is there another config file for Vim?
By the way, here is my .vimrc file:
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
PS. I only cannot run the command Ctrl-s in the vim and I am able to run other commands in vim as gVim.