Changeset 1923 for dotfiles/vim/kana

Show
Ignore:
Timestamp:
11/23/07 13:43:09 (14 months ago)
Author:
kana
Message:

dotfiles/vim/kana:
* Sync with my local repository (2007-11-23T13:42:52+09:00).

Location:
dotfiles/vim/kana
Files:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • dotfiles/vim/kana/dot.vim/doc/textobj-user.txt

    r1732 r1923  
    3434                'e'     move to the end of the match. 
    3535 
    36         Return value is not defined. 
     36        Return value is same as |searchpos()|. 
    3737 
    3838                                                *textobj#user#select()* 
  • dotfiles/vim/kana/dot.vim/ftplugin/issue.vim

    r517 r1923  
    2121" Key mappings  "{{{1 
    2222 
    23 nnoremap <LocalLeader>s  :<C-u>call <SID>ShowStatus()<Return> 
     23nnoremap <buffer> <LocalLeader>s  :<C-u>call <SID>ShowStatus()<Return> 
    2424 
    2525 
    26 nnoremap <LocalLeader>i  :<C-u>call <SID>NewIssue()<Return> 
    27 nnoremap <LocalLeader>n  :<C-u>call <SID>NewNote()<Return> 
     26nnoremap <buffer> <LocalLeader>i  :<C-u>call <SID>NewIssue()<Return> 
     27nnoremap <buffer> <LocalLeader>n  :<C-u>call <SID>NewNote()<Return> 
    2828 
    2929 
  • dotfiles/vim/kana/dot.vimrc

    r1732 r1923  
    154154set noequalalways 
    155155set formatoptions=tcroqnlM1 
     156set formatlistpat& 
     157let &formatlistpat .= '\|\s*[*+-]\s*' 
    156158set history=100 
    157159set hlsearch 
     
    177179let &statusline .= '  %-14.(%l,%c%V%) %P' 
    178180 
     181function! s:MyTabLine()  "{{{ 
     182  let s = '' 
     183 
     184  for i in range(1, tabpagenr('$')) 
     185    let curbufnr = tabpagebuflist(i)[tabpagewinnr(i) - 1] 
     186 
     187    let prefix = '' 
     188    if 1 < tabpagewinnr(i, '$') 
     189      let prefix .= tabpagewinnr(i, '$') 
     190    endif 
     191    if getbufvar(curbufnr, '&modified') 
     192      let prefix .= '+' 
     193    endif 
     194 
     195    let curbufname = bufname(curbufnr) 
     196    if  curbufname == '' 
     197      let curbufname = '[No Name]' 
     198    endif 
     199    if getbufvar(curbufnr, '&buftype') !=# 'help' 
     200      let curbufname = fnamemodify(curbufname, ':t') 
     201    else 
     202      let curbufname = '[help] ' . fnamemodify(curbufname, ':t:r') 
     203    endif 
     204 
     205    let s .= '%'.i.'T' 
     206    let s .= (prefix != '' ? '%#Title#'.prefix.' ' : '') 
     207    let s .= '%#' . (i == tabpagenr() ? 'TabLineSel' : 'TabLine') . '#' 
     208    let s .= curbufname 
     209    let s .= '%#TabLineFill#' 
     210    let s .= '  ' 
     211  endfor 
     212 
     213  let s .= '%#TabLineFill#%T' 
     214  let s .= '%=%#TabLine#%999Xx%X' 
     215  return s 
     216endfunction "}}} 
     217function! s:SID_PREFIX() 
     218 return matchstr(expand('<sfile>'), '<SNR>\d\+_') 
     219endfunction 
     220let &tabline = '%!' . s:SID_PREFIX() . 'MyTabLine()' 
     221 
    179222" To automatically detect the width and the height of the terminal, 
    180223" the followings must not be set. 
     
    225268" Alternate :cd which uses 'cdpath' for completion  "{{{2 
    226269 
    227 command! -complete=customlist,<SID>CommandComplete_cdpath -nargs=1 
    228        \ CD  cd <args> 
     270command! -complete=customlist,<SID>CommandComplete_cdpath -nargs=1 CD 
     271      \ TabCD <args> 
    229272 
    230273function! s:CommandComplete_cdpath(arglead, cmdline, cursorpos) 
     
    366409  execute 'normal' v:count1 . a:motion 
    367410endfunction 
     411 
     412 
     413 
     414 
     415" Per-tab current directory  "{{{2 
     416 
     417command! -nargs=1 TabCD 
     418      \   let t:cwd = <q-args> 
     419      \ | execute 'cd' t:cwd 
     420 
     421autocmd MyAutoCmd TabEnter * 
     422      \   if !exists('t:cwd') 
     423      \ |   let t:cwd = getcwd() 
     424      \ | endif 
     425      \ | execute 'cd' t:cwd 
    368426 
    369427 
     
    10251083 
    10261084" Make I/A available in characterwise-visual and linewise-visual. 
    1027 vnoremap I  <C-v>I 
    1028 vnoremap A  <C-v>A 
     1085vnoremap <expr> I  visualmode() == "\<C-v>" ? 'I' : "\<C-v>I" 
     1086vnoremap <expr> A  visualmode() == "\<C-v>" ? 'A' : "\<C-v>A" 
    10291087 
    10301088 
     
    11121170  \ | call <SID>ExtendHighlight('PmenuSbar', 'Normal', 'cterm=reverse') 
    11131171  \ | call <SID>ExtendHighlight('PmenuThumb', 'Search', '') 
     1172  \ 
     1173  \ | highlight TabLineSel 
     1174  \             term=bold,reverse 
     1175  \             cterm=bold,underline ctermfg=lightgray ctermbg=237 
     1176  \ | highlight TabLine 
     1177  \             term=reverse 
     1178  \             cterm=NONE           ctermfg=lightgray ctermbg=237 
     1179  \ | highlight TabLineFill 
     1180  \             term=reverse 
     1181  \             cterm=NONE           ctermfg=lightgray ctermbg=237 
    11141182doautocmd MyAutoCmd ColorScheme because-colorscheme-has-been-set-above. 
    11151183 
     
    11951263autocmd MyAutoCmd FileType tex 
    11961264  \ call <SID>SetShortIndent() 
     1265 
     1266 
     1267 
     1268 
     1269" vcscommit  "{{{2 
     1270" 'filetype' for the commit log buffer of vcscommand. 
     1271 
     1272autocmd MyAutoCmd FileType vcscommit 
     1273  \ setlocal comments=sr:*,mb:\ ,ex:NOT_DEFINED 
    11971274 
    11981275 
     
    13211398 
    13221399" Plugins  "{{{1 
    1323 " buffuzzy  "{{{2 
    1324  
    1325 nmap <Leader>b  <Plug>Buffuzzy 
    1326  
    1327 " retained for the backward compatibility, 
    1328 " but this should be prefixed by <Leader>. 
    1329 nmap [Space]b  <Plug>Buffuzzy 
    1330  
    1331  
    1332  
    1333  
    13341400" cygclip  "{{{2 
    13351401 
     
    13961462 
    13971463 
     1464" zapit  "{{{2 
     1465 
     1466nnoremap <Leader>b  :<C-u>ZapitBuf<Return> 
     1467 
     1468" retained for the backward compatibility, 
     1469" but this should be prefixed by <Leader>. 
     1470nmap [Space]b  <Leader>b 
     1471 
     1472 
     1473 
     1474 
    13981475 
    13991476