Buchbinder, Barry (NIH/NIAID) [E] wrote:
Linda Walsh sent the following at Monday, June 29, 2009 2:12 AM
Any reason not to run the Win32-Gvim native client
Linda (or anyone who has an answer):
Do you have any suggestions for commands that should be put in _vimrc
so using cygwin is transparent? I am especially concerned with things
needed to execute commands (i.e., with "!").
Thanks for your advice. I've wanted to ask that for a long time.
---
I'll include my .vimrc and .gvimrc, but the really aren't anything special.
"
" usr.skeleton .vimrc usr.wheel 644
" vim script derived from <vim-distro>:vimrc_example.vim
"
set cpoptions-=B
set cpoptions+=Z+
if v:progname =~? "evim"
finish
endif
set backspace=indent,eol,start
set history=50
set ruler
set showcmd
set incsearch " do incremental searching
if &t_Co > 2 || has("gui_running") "highlight if > 2 colors or GUI
syntax on
" set hlsearch " Also switch on highlighting the last used search pattern.
endif
if has("autocmd")
filetype plugin indent on
autocmd FileType * setlocal textwidth=0
" Put these in an autocmd group, so that we can delete them easily.
augroup vimrcEx
au!
" uncomment next to autowrap at 76 for all text files(a pain coding)
autocmd FileType text setlocal textwidth=76
autocmd BufReadPost * "Reposition file to last
position
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
augroup END
endif
"highlight Comment ctermfg=Gray
"highlight Constant ctermfg=Gray
set autowrite
set backup
set backupdir=./.backups,~/.backups,/tmp
set backupext=.bak
set encoding=utf-8
set fo=2tcql
set incsearch
set keymap=accents
set patchmode=.orig " keep original copies of all files
set showmatch
set ignorecase
set smartcase
set smartindent
set sw=4
set tm=100 "10ms for timeous on multikeycodes
set tabstop=4
set ttyfast
syntax on
colo ron
" vim -b : edit binary using xxd-format!
augroup Binary
au!
au BufReadPre *.bin let &bin=1
au BufReadPost *.bin if &bin | %!xxd
au BufReadPost *.bin set ft=xxd | endif
au BufWritePre *.bin if &bin | %!xxd -r
au BufWritePre *.bin endif
au BufWritePost *.bin if &bin | %!xxd
au BufWritePost *.bin set nomod | endif
augroup END
"set spellsuggest=double
"set spelllang=en,en_us,fr
"spell on
"spellfile <spf filename>
"setlocal spell spelllang=en
"zw = comment out mistakes in spellfile
"let g:spell_clean_limit (in seconds) = 60 * 60 to ignore last hour "comments
"
" share clipboard with windows:
set clipboard+=unnamed
au BufRead,BufNewFile *.txt setfiletype txtfile
"so $VIMRUNTIME/mswin.vim
set guifont=Lucida_console:h9.5
set lines=42
set keymap=accents
set encoding=utf-8
set shiftwidth=4
set guioptions+=A
set guioptions-=t
"set guioptions=egmrLtT=default, adding A
set guioptions=AegmrLt
color linda
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple