" An example for a gvimrc file. " The commands in this are executed when the GUI is started. " " Maintainer: Bram Moolenaar " Last change: 1999 Feb 02 " " To use it, copy it to " for Unix and OS/2: ~/.gvimrc " for Amiga: s:.gvimrc " for MS-DOS an$VIM\_gvimrc " Make external commands work through a pipe instead of a pseudo-tty "set noguipty " set the X11 font to use " set guifont=-cronyx-courier-bold-r-normal-*-14-*-*-*-*-*-utf8-r " Make command line two lines high set ch=4 " Make shift-insert work like in Xterm map map! " Only do this for Vim version 5.0 and later. "if version >= 500 " I like highlighting strings inside C comments let c_comment_strings=1 " Switch on syntax highlighting. syntax on " Switch on search pattern highlighting. set hlsearch " For Win32 version, have "K" lookup the keyword in a help file "if has("win32") " let winhelpfile='windows.hlp' " map K :execute "!start winhlp32 -k " . winhelpfile "endif " Hide the mouse pointer while typing set mousehide let white=0 let notebook=0 hi clear " set guifont=-*-courier-medium-r-normal-*-14-*-*-*-*-*-utf8-1 " set guifont=-*-fixed-*-*-*-*-15-*-*-*-*-*-utf8-* " set guifont=-*-courier-medium-r-normal-*-12-*-*-*-*-*-iso10646-1 "set guifont=Lucida Console 13 set guifont=Courier\ New\ 11 "set guifontwide=-*-courier-medium-r-normal-*-14-*-*-*-*-*-iso10646-1 colorscheme darkblue set statusline=%=%f\ \"%F\"\ %m%R\ [%4l(%3p%%):%3c-(0x%2B),%Y] set laststatus=2 set display=lastline set noequalalways set guioptions=aigmrvF set mousehide set showmatch set nowarn set nonu set ai set viminfo='20,f1,\"1000,%,n~/.viminfo " Folding set foldtext=/\\(\\S.*\\)/\+\\d\ \\f\ lines:\ \\1/ set foldmethod=indent set foldcolumn=2 set shiftwidth=4 map :res imap :res map :res imap :res command! -nargs=1 -complete=help Man !gnome-help-browser man: map :Man imap :Man map :w imap :w map :browse confirm e imap :browse confirm e map :browse confirm new imap :browse confirm new imap :w map :res imap :res map :res +20 imap :res +20 imap zCi imap zOi map zC map zO map zc set showbreak=\ \ \ \ \ \ \ \ set ts=4 set cino=(0 set encoding=utf-8 " ============================================================== IDE func Make() ccl make! 10wincmd j res cw 12 endfunc func! Ctag() let s=expand("") exe "ptag " . s endfunc func! Create_IDE_Menu() amenu &IDE.&MakeF9 :call Make() amenu &IDE.&To\ Errors\ WindowS-F9 :10wincmd j amenu &IDE.&Close\ Errors\ WindowC-F9 :ccl amenu &IDE.-Sep1- : amenu &IDE.&Open\ in\ New\ WindowS-F3 :call Ide_Open() amenu &IDE.Open\ (&dialog)F3 :browse confirm e amenu &IDE.Open\ &New\ (dialog)C-F3 :browse confirm new amenu &IDE.-Sep2- : amenu &IDE.&Generate\ TagsM-F10 :make ctags amenu &IDE.&First\ TagC-F10 :call Ctag() amenu &IDE.&Next\ TagS-F10 :ptnext amenu &IDE.&Prev\ TagSM-F10 :ptp endfunc func! IDE_start() call Create_IDE_Menu() so $HOME/.vim/plugin/explorer.vim 35vsplit +Explore setl nonu wincmd l " Move cursor in to right window endfunc func! Ide_Open() new res wincmd h endfunc imap :call Make() map :call Make() imap :ccl map :ccl imap :10wincmd j map :10wincmd j imap :make ctags map :make ctags imap :call Ctag() map :call Ctag() imap :ptnext map :ptnext imap :ptp map :ptp map :call Ide_Open() imap :call Ide_Open set swb=split command IDE :call IDE_start()