Changeset 1923 for dotfiles/vim/kana
- Timestamp:
- 11/23/07 13:43:09 (14 months ago)
- Location:
- dotfiles/vim/kana
- Files:
-
- 1 added
- 3 modified
-
dot.vim/doc/textobj-user.txt (modified) (1 diff)
-
dot.vim/ftplugin/issue.vim (modified) (1 diff)
-
dot.vim/plugin/zapit.vim (added)
-
dot.vimrc (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dotfiles/vim/kana/dot.vim/doc/textobj-user.txt
r1732 r1923 34 34 'e' move to the end of the match. 35 35 36 Return value is not defined.36 Return value is same as |searchpos()|. 37 37 38 38 *textobj#user#select()* -
dotfiles/vim/kana/dot.vim/ftplugin/issue.vim
r517 r1923 21 21 " Key mappings "{{{1 22 22 23 nnoremap < LocalLeader>s :<C-u>call <SID>ShowStatus()<Return>23 nnoremap <buffer> <LocalLeader>s :<C-u>call <SID>ShowStatus()<Return> 24 24 25 25 26 nnoremap < LocalLeader>i :<C-u>call <SID>NewIssue()<Return>27 nnoremap < LocalLeader>n :<C-u>call <SID>NewNote()<Return>26 nnoremap <buffer> <LocalLeader>i :<C-u>call <SID>NewIssue()<Return> 27 nnoremap <buffer> <LocalLeader>n :<C-u>call <SID>NewNote()<Return> 28 28 29 29 -
dotfiles/vim/kana/dot.vimrc
r1732 r1923 154 154 set noequalalways 155 155 set formatoptions=tcroqnlM1 156 set formatlistpat& 157 let &formatlistpat .= '\|\s*[*+-]\s*' 156 158 set history=100 157 159 set hlsearch … … 177 179 let &statusline .= ' %-14.(%l,%c%V%) %P' 178 180 181 function! 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 216 endfunction "}}} 217 function! s:SID_PREFIX() 218 return matchstr(expand('<sfile>'), '<SNR>\d\+_') 219 endfunction 220 let &tabline = '%!' . s:SID_PREFIX() . 'MyTabLine()' 221 179 222 " To automatically detect the width and the height of the terminal, 180 223 " the followings must not be set. … … 225 268 " Alternate :cd which uses 'cdpath' for completion "{{{2 226 269 227 command! -complete=customlist,<SID>CommandComplete_cdpath -nargs=1 228 \ CD cd<args>270 command! -complete=customlist,<SID>CommandComplete_cdpath -nargs=1 CD 271 \ TabCD <args> 229 272 230 273 function! s:CommandComplete_cdpath(arglead, cmdline, cursorpos) … … 366 409 execute 'normal' v:count1 . a:motion 367 410 endfunction 411 412 413 414 415 " Per-tab current directory "{{{2 416 417 command! -nargs=1 TabCD 418 \ let t:cwd = <q-args> 419 \ | execute 'cd' t:cwd 420 421 autocmd MyAutoCmd TabEnter * 422 \ if !exists('t:cwd') 423 \ | let t:cwd = getcwd() 424 \ | endif 425 \ | execute 'cd' t:cwd 368 426 369 427 … … 1025 1083 1026 1084 " Make I/A available in characterwise-visual and linewise-visual. 1027 vnoremap I <C-v>I1028 vnoremap A <C-v>A1085 vnoremap <expr> I visualmode() == "\<C-v>" ? 'I' : "\<C-v>I" 1086 vnoremap <expr> A visualmode() == "\<C-v>" ? 'A' : "\<C-v>A" 1029 1087 1030 1088 … … 1112 1170 \ | call <SID>ExtendHighlight('PmenuSbar', 'Normal', 'cterm=reverse') 1113 1171 \ | 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 1114 1182 doautocmd MyAutoCmd ColorScheme because-colorscheme-has-been-set-above. 1115 1183 … … 1195 1263 autocmd MyAutoCmd FileType tex 1196 1264 \ call <SID>SetShortIndent() 1265 1266 1267 1268 1269 " vcscommit "{{{2 1270 " 'filetype' for the commit log buffer of vcscommand. 1271 1272 autocmd MyAutoCmd FileType vcscommit 1273 \ setlocal comments=sr:*,mb:\ ,ex:NOT_DEFINED 1197 1274 1198 1275 … … 1321 1398 1322 1399 " Plugins "{{{1 1323 " buffuzzy "{{{21324 1325 nmap <Leader>b <Plug>Buffuzzy1326 1327 " retained for the backward compatibility,1328 " but this should be prefixed by <Leader>.1329 nmap [Space]b <Plug>Buffuzzy1330 1331 1332 1333 1334 1400 " cygclip "{{{2 1335 1401 … … 1396 1462 1397 1463 1464 " zapit "{{{2 1465 1466 nnoremap <Leader>b :<C-u>ZapitBuf<Return> 1467 1468 " retained for the backward compatibility, 1469 " but this should be prefixed by <Leader>. 1470 nmap [Space]b <Leader>b 1471 1472 1473 1474 1398 1475 1399 1476
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)