On 17 Apr 2006, Yakov Lerner wrote: > On 4/17/06, Anthony Campbell <[EMAIL PROTECTED]> wrote: > > I've just had to reinstall vim after a crash of X on my Debian system > > (Sid) > > > > Vim reads its .vimrc file correctly but gvim does not read .gvimrc. > > Instead it seems to be reading some other configuration file with > > different mappings and the wrong font. I cannot source my gvimrc file, > > even with an absolute path namea. And gvim -U /home/ac/.gvimrc also > > doesn't bring it up. > > > > Can anyone suggest what is happening here? > > Vim6 or vim7 ? Can you attach the problematic .gvimrc ? > What does :scriptnames show ? > > Yakov
This is 6.4. :map shows a lot of things I don't recognize, for example: <Plug>PotwikiPrev & <SNR>10_PrevWord <Plug>PotwikiNext & <SNR>10_NextWord <Plug>PotwikiEdit & <SNR>10_Edit <Plug>PotwikiReload & <SNR>10_Reload <Plug>PotwikiClose & <SNR>10_Close <Plug>PotwikiFollow & <SNR>10_Follow <Plug>PotwikiCR & <SNR>10_CR <Plug>PotwikiIndex & <SNR>10_Index Where does this come from? :sriptnames shows the correct /home/ac/.gvimrc This is the .gvimrc; it is the same file I was using previously. ------------------------ winpos 90 20 "turn off Alt for menus (use mouse) set winaltkeys=no "set smartcase to make vim search according to case se smartcase "set status bar to show file you are editing " se laststatus=2 "set show matching brackets " se showmatch "set cursor for Command, Visual, Normal " set gcr=n-c-v-o:nCursor " set cursor not to blink in Insert only " or to start blinking after some msecs. set gcr=i:ver30-blinkwait5000 " set gcr=i:ver30-blinkon0 " set gcr=i:blinkwaiti50000 "hide mouse when typing text set mousehide set guioptions-=T set shm+=I "syntax on "turn off Alt for menus (use mouse) set winaltkeys=no "set smartcase to make vim search according to case se smartcase "set status bar to show file you are editing " se laststatus=2 "set show matching brackets " se showmatch "set cursor for Command, Visual, Normal " set gcr=n-c-v-o:nCursor " set cursor not to blink in Insert only " or to start blinking after some msecs. " set gcr=i:ver30-blinkwait9000 " set gcr=i:ver30-blinkon0 " set gcr=i:blinkwait20000 "hide mouse when typing text set mousehide "turn off Alt for menus (use mouse) set winaltkeys=no " set guicursor=i:ver40-iCursor,r:hor35-rCursor,n:block-nCursor,v:hor75-vCursor,a:blinkwait5000 "set guifont=Monospace\ Bold\ 12 set guifont=Bitstream\ Vera\ Sans\ Mono\ \Bold "colorscheme peachpuff colorscheme desert " hi Cursor guibg=red " hi iCursor guibg=cyan " hi rCursor guibg=yellow " hi vCursor guibg=blue " hi nCursor guibg=green " make backspace work in X set <BS>= "keep some lines around cursor set scrolloff=3 "set BACKSPACE to delete continuously in Insert mode se bs=2 "set autoindent on se ai "set smartcase to make vim search according to case se smartcase "set status bar to show file you are editing se laststatus=2 "set show matching brackets se showmatch "set directory for swap files se dir=~/.swp "set ruler set ruler "MAPPINGS: "search stuff " This turns off search highlighting after <CR> nnoremap <silent> <CR> :nohlsearch<CR> "turning stuff off and on "set nohlsearch set incsearch "Change preceding word to uppercase in Insert mode map! <C-F> <Esc>gUiw`]a "Make alt-o insert new line in Insert imap <M-o> A<CR> "ct to count file cab ct !wc -w "ls to ls cab ls !ls "map ctrl-P to produce <p> " map <C-p> <p><ESC> imap <C-p> <p> "alt-s to save file map <M-s> :w<CR> imap <M-s> :w<CR> "alt-S to save file and exit map <M-S> :wq<CR> imap <M-S> :wq<CR> "alt-q to quit if saved map <M-q> :q<CR> imap <M-q> :q<CR> "alt-Q to quit unconditionally map <M-Q> ZQ imap <M-Q> ZQ "alt-f to format para (cursor within para) noremap <M-f> gqip inoremap <M-f> gqip "alt-F to format para (cursor outside para) noremap <M-F> gqap inoremap <M-F> gqap "alt-d to delete line imap <M-d> dd map <M-d> dd "alt-u to undelete map <M-u> u imap <M-u> u "F11 to insert date map <F11> mx:r!setdate<CR><BS> imap <F11> :r!setdate<CR><BS> "alt-p to insert text from another window map <M-p> "*p imap <M-p> "*p "Find in insert imap <M-/> / "Next find imap <M-n> n map <M-n> n " Alt-e to end of line in Insert mode imap ? <End> "F12 to bring up my help file map <F12> :split ~/.helpvim.txt<CR> imap <F12> :split ~/.helpvim.txt<CR> "Shift-F12 to close the help file map <S-F12> :close<CR> imap <S-F12> :close<CR> "Highlighting stuff map <F3> \hcli map <F4> \hcls -- Anthony Campbell - [EMAIL PROTECTED] Microsoft-free zone - Using Linux Gnu-Debian http://www.acampbell.org.uk (blog, book reviews, on-line books and sceptical articles)