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
Many screen tweaks including screen-256color termcap, white caption and hardstatus...
[profile.git]
/
.vimrc
diff --git
a/.vimrc
b/.vimrc
index
d2aa0c5
..
62bd8d7
100644
(file)
--- a/
.vimrc
+++ b/
.vimrc
@@
-101,6
+101,9
@@
se t_WS=
\e
[8;%p1%d;%p2%dt
" Highlight search results.
se hlsearch
" Highlight search results.
se hlsearch
+" Set graphical window title.
+se titlestring=%{Show_TitleString()}
+
" Syntax highlighting. New versions will use syn enable instead.
if version < 600
syn on
" Syntax highlighting. New versions will use syn enable instead.
if version < 600
syn on
@@
-174,6
+177,16
@@
fun! Show_Paste()
endif
endfun
endif
endfun
+" Show the window title.
+fun! Show_TitleString()
+ if bufname("") == ""
+ let ts1='Vim'
+ else
+ let ts1=printf("%s [%2d:%s]", expand('%t'), bufnr(""), expand('%f'))
+ endif
+ return printf("%s (%s) %s", ts1, getcwd(), v:servername)
+endfun
+
" Show the status line.
fun! Show_StatusLine()
call Iain_Vars()
" Show the status line.
fun! Show_StatusLine()
call Iain_Vars()
@@
-205,13
+218,17
@@
au BufLeave * if &ft == "make" | call MakeMode_unmap() | endif
" Entering Make mode.
fun! MakeMode_map()
" Entering Make mode.
fun! MakeMode_map()
- set list
+ call Iain_Vars()
+ let b:iainlist=1
+ call Cycle_List()
+ set ts=8
set noexpandtab
endfun
" Leaving Make mode.
fun! MakeMode_unmap()
set noexpandtab
endfun
" Leaving Make mode.
fun! MakeMode_unmap()
- set nolist
+ call Cycle_List()
+ set ts=2
set expandtab
endfun
set expandtab
endfun
@@
-220,7
+237,7
@@
call Show_StatusLine()
" Function to create mappings with either a hardcoded \ or <Leader>.
fun! Mapping(keysequence,mapping)
" Function to create mappings with either a hardcoded \ or <Leader>.
fun! Mapping(keysequence,mapping)
- if version
>=
"600"
+ if version
<
"600"
exec "map \\" . a:keysequence . " " . a:mapping
else
exec "map <Leader>" . a:keysequence . " " . a:mapping
exec "map \\" . a:keysequence . " " . a:mapping
else
exec "map <Leader>" . a:keysequence . " " . a:mapping
@@
-298,9
+315,6
@@
if &diff
let &columns = 164
endif
let &columns = 164
endif
-" Numbers in blue.
-highlight LineNr term=underline cterm=bold guifg=blue ctermfg=blue
-
" Remember that we are opening the quickfix window.
au BufWinEnter quickfix let g:quickfixing=1
au BufUnload * if &ft == "qf" | let g:quickfixing=0 | endif
" Remember that we are opening the quickfix window.
au BufWinEnter quickfix let g:quickfixing=1
au BufUnload * if &ft == "qf" | let g:quickfixing=0 | endif
@@
-441,4
+455,8
@@
se numberwidth=5
" Add "previous tab" mapping as gb.
map gb :tabPrev<CR>
" Add "previous tab" mapping as gb.
map gb :tabPrev<CR>
+
+" Perforce.
+let g:p4EnableMenu=1
+let g:p4Presets='P4CONFIG'
endif
endif