git://git.iain.cx/iain
/
profile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Vim fixes.
[profile.git]
/
.vimrc
diff --git
a/.vimrc
b/.vimrc
index
9f8f25a
..
9cc96fd
100644
(file)
--- a/
.vimrc
+++ b/
.vimrc
@@
-75,8
+75,10
@@
if ! has("gui_running")
se bg=dark
endif
se bg=dark
endif
-" Allow mouse use in a terminal.
-se mouse=nvir
+" Allow mouse use in a terminal but only if it can work.
+if has("xterm_clipboard")
+ se mouse=nvir
+endif
" Update more quickly. For use with sign highlighting as polling for
" CursorMove makes redrawing slow.
" Update more quickly. For use with sign highlighting as polling for
" CursorMove makes redrawing slow.
@@
-113,8
+115,9
@@
if ! exists("g:oldcols")
let g:oldcols=&columns
endif
let g:oldcols=&columns
endif
-" More GUI options. Add icon, tearoffs and toolbar.
-se go+=itT
+" More GUI options. Add icon and tearoffs.
+se go+=i
+se go+=t
" Allow dynamic window resize even if we aren't in an xterm.
se t_WS=
\e
[8;%p1%d;%p2%dt
" Allow dynamic window resize even if we aren't in an xterm.
se t_WS=
\e
[8;%p1%d;%p2%dt
@@
-130,10
+133,6
@@
if version < "600"
syn on
endif
syn on
endif
-" Use a discernably different colour to highlight the cursor which shows
-" matching brackets. Our regular cursor is green so use blue instead of cyan.
-hi MatchParen ctermbg=blue
-
" Catch typos.
command! W :w
command! Wq :wq
" Catch typos.
command! W :w
command! Wq :wq
@@
-395,9
+394,6
@@
endfun
" Show numbers by default.
au Display VimEnter * call Number(0)
" Show numbers by default.
au Display VimEnter * call Number(0)
-
-" Resize after startup.
-au Display VimEnter * call Startup_Resize()
endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
endif
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@@
-815,7
+811,7
@@
endfun
" Find out if any buffer was modified.
fun! <SID>TabModified(buflist)
let l:i = 0
" Find out if any buffer was modified.
fun! <SID>TabModified(buflist)
let l:i = 0
- while i < len(a:buflist)
+ while
l:
i < len(a:buflist)
if getbufvar(a:buflist[l:i], "&modified") == 1
return "+"
endif
if getbufvar(a:buflist[l:i], "&modified") == 1
return "+"
endif
@@
-902,3
+898,8
@@
se go+=e
let g:p4EnableMenu=1
let g:p4Presets='P4CONFIG'
endif
let g:p4EnableMenu=1
let g:p4Presets='P4CONFIG'
endif
+
+if version >= "500"
+" Resize after startup.
+au Display VimEnter * call Startup_Resize()
+endif