| 1 |
" An example for a gvimrc file. |
|---|
| 2 |
" The commands in this are executed when the GUI is started. |
|---|
| 3 |
" |
|---|
| 4 |
" Maintainer: Bram Moolenaar <Bram@vim.org> |
|---|
| 5 |
" Last change: 2001 Sep 02 |
|---|
| 6 |
" |
|---|
| 7 |
" To use it, copy it to |
|---|
| 8 |
" for Unix and OS/2: ~/.gvimrc |
|---|
| 9 |
" for Amiga: s:.gvimrc |
|---|
| 10 |
" for MS-DOS and Win32: $VIM\_gvimrc |
|---|
| 11 |
" for OpenVMS: sys$login:.gvimrc |
|---|
| 12 |
|
|---|
| 13 |
" Make external commands work through a pipe instead of a pseudo-tty |
|---|
| 14 |
"set noguipty |
|---|
| 15 |
|
|---|
| 16 |
" set the X11 font to use |
|---|
| 17 |
" set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1 |
|---|
| 18 |
|
|---|
| 19 |
set ch=2 " Make command line two lines high |
|---|
| 20 |
|
|---|
| 21 |
set mousehide " Hide the mouse when typing text |
|---|
| 22 |
|
|---|
| 23 |
" Make shift-insert work like in Xterm |
|---|
| 24 |
map <S-Insert> <MiddleMouse> |
|---|
| 25 |
map! <S-Insert> <MiddleMouse> |
|---|
| 26 |
|
|---|
| 27 |
" Only do this for Vim version 5.0 and later. |
|---|
| 28 |
if version >= 500 |
|---|
| 29 |
|
|---|
| 30 |
" I like highlighting strings inside C comments |
|---|
| 31 |
let c_comment_strings=1 |
|---|
| 32 |
|
|---|
| 33 |
" Switch on syntax highlighting if it wasn't on yet. |
|---|
| 34 |
if !exists("syntax_on") |
|---|
| 35 |
syntax on |
|---|
| 36 |
endif |
|---|
| 37 |
|
|---|
| 38 |
" Switch on search pattern highlighting. |
|---|
| 39 |
set hlsearch |
|---|
| 40 |
|
|---|
| 41 |
" For Win32 version, have "K" lookup the keyword in a help file |
|---|
| 42 |
"if has("win32") |
|---|
| 43 |
" let winhelpfile='windows.hlp' |
|---|
| 44 |
" map K :execute "!start winhlp32 -k <cword> " . winhelpfile <CR> |
|---|
| 45 |
"endif |
|---|
| 46 |
|
|---|
| 47 |
" Set nice colors |
|---|
| 48 |
" background for normal text is light grey |
|---|
| 49 |
" Text below the last line is darker grey |
|---|
| 50 |
" Cursor is green, Cyan when ":lmap" mappings are active |
|---|
| 51 |
" Constants are not underlined but have a slightly lighter background |
|---|
| 52 |
" highlight Normal guibg=grey90 |
|---|
| 53 |
" highlight Cursor guibg=Green guifg=NONE |
|---|
| 54 |
" highlight lCursor guibg=Cyan guifg=NONE |
|---|
| 55 |
" highlight NonText guibg=grey80 |
|---|
| 56 |
" highlight Constant gui=NONE guibg=grey95 |
|---|
| 57 |
" highlight Special gui=NONE guibg=grey95 |
|---|
| 58 |
|
|---|
| 59 |
endif |
|---|
| 60 |
|
|---|
| 61 |
winpos 50 100 |
|---|
| 62 |
set lines=50 |
|---|
| 63 |
set columns=80 |
|---|
| 64 |
|
|---|
| 65 |
inoremap <C-Tab> <Plug>Jumper |
|---|
| 66 |
|
|---|
| 67 |
" tabs! |
|---|
| 68 |
noremap <C-D-\> :tabprevious<CR> |
|---|
| 69 |
noremap <C-D-]> :tabnext<CR> |
|---|
| 70 |
|
|---|
| 71 |
inoremap <C-D-\> <Esc>:tabprevious<CR> |
|---|
| 72 |
inoremap <C-D-]> <Esc>:tabnext<CR> |
|---|
| 73 |
|
|---|
| 74 |
noremap <D-t> :tabnew<CR> |
|---|
| 75 |
inoremap <D-t> <Esc>:tabnew<CR> |
|---|
| 76 |
noremap <D-w> :close<CR> |
|---|
| 77 |
|
|---|
| 78 |
set visualbell |
|---|
| 79 |
|
|---|
| 80 |
nnoremap <special> <D-n> :!open -a gvim<CR><CR> |
|---|
| 81 |
|
|---|
| 82 |
inoremap <D-e> <Esc>:NERDTreeToggle<CR> |
|---|
| 83 |
noremap <D-e> :NERDTreeToggle<CR> |
|---|
| 84 |
inoremap <C-e> <Esc>:NERDTreeToggle<CR> |
|---|
| 85 |
noremap <C-e> :NERDTreeToggle<CR> |
|---|
| 86 |
|
|---|
| 87 |
let g:NERDTreeMapActivateNode = "<CR>" |
|---|