1 " Bundle ------------------------------------------------------------------ {{{
2 " Sun Sep 21 00:46:43 CST 2014
3 " refer https://github.com/connermcd/dotfiles.git
4 " and https://bitbucket.org/sjl/dotfiles
8 set rtp+=~/.vim/bundle/Vundle.vim
11 Plugin 'gmarik/Vundle.vim'
12 Bundle 'vim-scripts/FuzzyFinder'
13 Bundle 'vim-scripts/L9'
14 Bundle 'Valloric/YouCompleteMe'
15 Bundle 'octol/vim-cpp-enhanced-highlight'
16 Bundle 'bling/vim-airline'
17 Bundle 'payneseu/nerdtree'
18 Bundle 'Townk/vim-autoclose'
19 Bundle 'majutsushi/tagbar'
20 Bundle 'vim-scripts/tcd.vim'
21 Bundle 'vim-scripts/cmdline-completion'
22 Bundle 'vim-scripts/vcscommand.vim'
23 Bundle 'Lokaltog/vim-easymotion'
24 "Bundle 'vim-scripts/YankRing.vim'
25 Bundle 'vim-scripts/gtags.vim'
26 Bundle 'kshenoy/vim-signature'
27 Bundle 'nathanaelkane/vim-indent-guides'
29 Bundle 'payneseu/mark-2.8.4'
30 "Bundle 'derekwyatt/vim-fswitch'
31 Bundle 'sjl/gundo.vim'
32 Bundle 'tpope/vim-markdown'
33 "Bundle 'vim-scripts/BreakPts'
34 "Bundle 'vim-scripts/genutils'
35 "Bundle 'vim-scripts/Marks-Browser'
36 Bundle 'MattesGroeger/vim-bookmarks'
37 "Bundle 'tpope/vim-repeat'
38 "Bundle 'kien/ctrlp.vim'
39 "disable since some conflicting mapping
40 Bundle 'vim-latex/vim-latex'
43 filetype plugin indent on
46 " Basic options ----------------------------------------------------------- {{{
62 set diffopt=filler,vertical
65 set listchars=tab:▸\ ,eol:¬,extends:❯,precedes:❮
73 set completeopt=longest,menuone
75 "set wildmode=list:longest
77 set wildignore=*.o,*.obj,*~,*.swp,*.DS_Store,*.git,*.svn,*.hg
82 set nostartofline " don't jump to first character when paging
85 "set textwidth, formatoptions for chinese
92 set macmeta "" Macvim only
95 set guifont=Sauce\ Code\ Powerline\ Light:h11
96 highlight Cursor guifg=white guibg=green
97 set guicursor=a:blinkon0
103 colorscheme molokai22
104 " http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTinkbdoZ8eNR1X2UobLTeww1jFrvfJxTMfKSq-L%2B%40mail.gmail.com&forum_name=tmux-users
105 "https://gist.github.com/andyfowler/1195581
107 let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\"
108 let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\"
110 let &t_SI = "\<Esc>]50;CursorShape=1\x7"
111 let &t_EI = "\<Esc>]50;CursorShape=0\x7"
117 " Mappings ---------------------------------------------------------------- {{{
120 " Normal mode ------------------------------------------------------------- {{{
127 nmap <Leader>w :w<CR>
128 nmap <Leader>q :q<CR>
129 nmap <Leader>e :e<Space>
130 nmap <Leader>W :w !sudo tee %<CR>
131 nmap <Leader>h :vertical help<Space>
132 nmap <Leader>t :tabedit %<Space>
133 "nmap <Leader>x :x<CR>
140 nnoremap <Leader>v <C-W>v
141 nnoremap <Leader>s <C-W>s
149 nnoremap <C-D> <C-D>zz
150 nnoremap <C-U> <C-U>zz
152 "nnoremap <SPACE> <C-F>
153 nnoremap <S-SPACE> <C-B>
157 "nmap <A-TAB> :bn<CR>
158 " map <A-TAB> Alt+TAB
159 "noremap <A-S-TAB> "input C-V then input key sequence to
160 "http://vim.wikia.com/wiki/Make_Shift-Tab_work
161 "nnoremap <ESC><TAB> :bn<CR>
162 nnoremap <ESC><TAB> :tabnext<CR>
163 "nnoremap
\e\19 :bp<CR>
164 nnoremap
\e\19 :tabprevious<CR>
165 "nmap <A-S-TAB> :bp<CR>
166 "nmap <A-SPACE> :b#<CR>
167 "nmap <Leader>d :bd<CR>
168 "" keymappig for register operations
169 nnoremap <Leader>r :registers<CR>
170 "noremap <Leader>x :<C-p>
176 nmap <A-=> :resize<CR>:vertical resize<CR>
177 nmap
\e= :resize<CR>:vertical resize<CR>
190 noremap <Leader>z zmzvzz
191 nmap \\ :nohlsearch<CR>
193 " Insert mode ------------------------------------------------------------- {{{
195 inoremap <C-U> <C-G>u<C-U>
196 inoremap <C-a> <Home>
199 inoremap <C-b> <S-Left>
200 inoremap <C-f> <S-Right>
201 imap <A-d> <S-Right><C-w>
203 " Command mode ------------------------------------------------------- {{{
205 cnoremap <C-A> <Home>
207 cnoremap <C-B> <Left>
208 cnoremap <C-F> <Right>
212 if has("gui_running")
213 " only for Macvim <D-Left> D is Command key
217 cnoremap <A-b> <S-Left>
218 cnoremap <A-f> <S-Right>
219 cnoremap <A-d> <S-Right><S-Right><S-Left><C-w>
221 cnoremap
\eb <S-Left>
222 cnoremap
\ef <S-Right>
223 cnoremap
\ed <S-Right><S-Right><S-Left><C-w>
225 " delet a word left of cursor
228 " Visual mode ------------------------------------------------------------- {{{
229 "" key mapping for visul mode
238 vnoremap <Leader>p "*p
239 "search for visually selectecd text
240 vnoremap // y/<C-R>"<CR>
244 " Plugins Configuration --------------------------------------------------- {{{
245 " Fuzzy Finder ------------------------------------------------------------ {{{
246 let g:fuf_modesDisable = []
247 let g:fuf_mrufile_maxItem = 400
248 let g:fuf_mrucmd_maxItem = 400
249 let g:fuf_file_exclude = '\v\~$|\.(DS_Store|o|exe|dll|bak|orig|swp|pyc)$|(^|[/\\])\.(hg|git|bzr|svn)($|[/\\])'
250 let g:fuf_buffertag_ctagsPath = '/usr/local/bin/ctags'
251 let g:fuf_enumeratingLimit = 30
252 nnoremap <silent> sj :FufBuffer<CR>
253 nnoremap <silent> sk :FufFileWithCurrentBufferDir<CR>
254 nnoremap <silent> sK :FufFileWithFullCwd<CR>
255 nnoremap <silent> s<C-k> :FufFile<CR>
256 "nnoremap <silent> sl :FufCoverageFileChange<CR>
257 "nnoremap <silent> sL :FufCoverageFileChange<CR>
258 "nnoremap <silent> s<C-l> :FufCoverageFileRegister<CR>
259 nnoremap <silent> sd :FufDirWithCurrentBufferDir<CR>
260 nnoremap <silent> sD :FufDirWithFullCwd<CR>
261 nnoremap <silent> s<C-d> :FufDir<CR>
262 nnoremap <silent> sn :FufMruFile<CR>
263 nnoremap <silent> sN :FufMruFileInCwd<CR>
264 nnoremap <silent> sm :FufMruCmd<CR>
265 "nnoremap <silent> su :FufBookmarkFile<CR>
266 nnoremap <silent> s<C-u> :FufBookmarkFileAdd<CR>
267 "vnoremap <silent> s<C-u> :FufBookmarkFileAddAsSelectedText<CR>
268 nnoremap <silent> si :FufBookmarkDir<CR>
269 nnoremap <silent> s<C-i> :FufBookmarkDirAdd<CR>
270 nnoremap <silent> sT :FufTag<CR>
271 nnoremap <silent> st :FufTag!<CR>
272 nnoremap <silent> s<C-]> :FufTagWithCursorWord!<CR>
273 nnoremap <silent> s, :FufBufferTag<CR>
274 nnoremap <silent> s< :FufBufferTag!<CR>
275 "vnoremap <silent> s, :FufBufferTagWithSelectedText!<CR>
276 "vnoremap <silent> s< :FufBufferTagWithSelectedText<CR>
277 nnoremap <silent> s} :FufBufferTagWithCursorWord!<CR>
278 nnoremap <silent> sl :FufBufferTagAll<CR>
279 "nnoremap <silent> s. :FufBufferTagAll<CR>
280 nnoremap <silent> s> :FufBufferTagAll!<CR>
281 "vnoremap <silent> s. :FufBufferTagAllWithSelectedText!<CR>
282 "vnoremap <silent> s> :FufBufferTagAllWithSelectedText<CR>
283 "nnoremap <silent> s] :FufBufferTagAllWithCursorWord!<CR>
284 nnoremap <silent> sG :FufTaggedFile<CR>
285 nnoremap <silent> sg :FufTaggedFile!<CR>
286 "nnoremap <silent> so :FufJumpList<CR>
287 "nnoremap <silent> sp :FufChangeList<CR>
288 "nnoremap <silent> sq :FufQuickfix<CR>
289 "nnoremap <silent> sy :FufLine<CR>
290 " nnoremap <silent> sh :FufHelp<CR>
291 "nnoremap <silent> se :FufEditDataFile<CR>
292 nnoremap <silent> sr :FufRenewCache<CR>
294 " YouCompleteMe ----------------------------------------------------------- {{{
295 "syntax on, must before the YCM,
297 "let g:ycm_collect_identifiers_from_tags_files = 1
298 "let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
299 let g:ycm_auto_trigger = 1
300 let g:ycm_seed_identifiers_with_syntax = 1
301 let g:ycm_show_diagnostics_ui = 0
302 let g:ycm_enable_diagnostic_signs = 0
303 set completeopt-=preview " disable preview windows for completion
304 let g:ycm_confirm_extra_conf = 0
305 " delete default mapping for <leader>d
306 let g:ycm_key_detailed_diagnostics = ''
309 " Airline ----------------------------------------------------------------- {{{
310 "if has("gui_running")
312 let g:airline_mode_map = {
326 let g:airline_theme = 'badwolf'
328 "if has("gui_running")
329 let g:airline_powerline_fonts=1
330 let g:airline_left_sep = ''
331 let g:airline_left_alt_sep = ''
332 let g:airline_right_sep = ''
333 let g:airline_right_alt_sep = ''
335 " let g:airline#extensions#tabline#show_buffers = 1
336 let g:airline#extensions#tabline#show_buffers = 0
337 let g:airline#extensions#tabline#enabled = 1
338 let g:airline#extensions#tabline#left_sep = ''
339 let g:airline#extensions#tabline#left_alt_sep =''
340 let g:airline#extensions#tagbar#enabled = 1
342 " let g:airline_powerline_fonts=1
343 " let g:airline_left_sep = ''
344 "" let g:airline_left_alt_sep = ''
345 " let g:airline_right_sep = ''
346 "" let g:airline_right_alt_sep = ''
348 " let g:airline#extensions#tabline#show_buffers = 0
349 " let g:airline#extensions#tabline#enabled = 1
350 " let g:airline#extensions#tabline#left_sep = ''
351 "" let g:airline#extensions#tabline#left_alt_sep =''
352 " let g:airline#extensions#tagbar#enabled = 1
355 " let g:airline_section_a = 'N'
356 let g:airline_section_b = '%f%m'
357 let g:airline_section_c = ''
358 let g:airline_section_x = '[%-.50{CurDir()}]'
359 let g:airline_section_y = '%y'
360 let g:airline_section_z = '%c, %l/%L %p%%'
361 let g:airline_section_warning = '' " (syntastic, whitespace)
364 set statusline=\ %<%F%m%=[%-.50{CurDir()}]\ %y\ %c,\ %l/%L\ \ %p%%\
366 let curdir = substitute(getcwd(), $HOME, "~", "g")
372 " NerdTree ---------------------------------------------------------------- {{{
373 nmap <Leader>n :NERDTreeToggle<CR>
374 nmap <Leader>N :NERDTreeFind<CR>
376 " AutoClose --------------------------------------------------------------- {{{
377 let g:AutoCloseProtectedRegions = ["Dialog", "ThoughBubble"]
379 " TagBar ------------------------------------------------------------------ {{{
380 noremap <Leader>f :TagbarToggle<CR><C-w>l
381 let Tlist_Ctags_Cmd="/usr/local/bin/ctags"
383 " Tcd --------------------------------------------------------------------- {{{
386 " cmdline-completion ------------------------------------------------------ {{{
387 "http://foocoder.com/blog/mei-ri-vimcha-jian-suo-jin-xian-shi-vim-indent-guides.html/
388 cmap <C-J> <Plug>CmdlineCompletionBackward
389 cmap <C-K> <Plug>CmdlineCompletionForward
391 " VSCCommand -------------------------------------------------------------- {{{
392 "" ============== VCSCommand.vim =====================
393 "let VCSCommandSVKExec='disabled no such executable'
394 let VCSCommandDeleteOnHide=1
395 let VCSCommandDisableMappings=1
396 "let VCSCommandEnableBufferSetup=1
397 "nmap <Leader>sd :VCSVimDiff<CR>
399 autocmd User VCSBufferCreated silent! nmap <unique> <buffer> q :bwipeout<cr> | setlocal nomodifiable
401 nmap <Leader>dg :diffget<CR>
403 " YankRing ---------------------------------------------------------------- {{{
404 let g:yankring_min_element_length = 2
406 let g:yankring_replace_n_pkey = '<A->>'
407 let g:yankring_replace_n_nkey = '<A-<>'
408 let g:yankring_history_dir = "$HOME/.vim/temp/"
410 " Gtags ------------------------------------------------------------------- {{{
411 if has("gui_running")
412 noremap <A-.> :Gtags<CR>
413 noremap <A-r> :Gtags -r<CR>
414 noremap <A-o> :Gtags -s<CR>
415 noremap <A-g> :Gtags -g<CR>
417 noremap
\e. :Gtags<CR>
418 noremap
\er :Gtags -r<CR>
419 " noremap j :Gtags -s<CR>
420 noremap
\eg :Gtags -g<CR>
423 " Marks ------------------------------------------------------------------- {{{
424 nmap \h <Plug>MarkSet
425 "nmap * <Plug>MarkSearchNext
426 "nmap # <Plug>MarkSearchPrev
428 " Gundo ------------------------------------------------------------------- {{{
429 " nnoremap <F5> :GundoToggle<CR>
431 " Bookmarks --------------------------------------------------------------- {{{
433 let g:bookmark_save_per_working_dir = 1
434 let g:bookmark_auto_close = 1
435 let g:bookmark_auto_save = 1
436 " unmap the default mapping in plugins
437 nmap <Plug>DisableBookmarkToggle <Plug>BookmarkToggle
438 nmap <Plug>DisableBookmarkAnnotate <Plug>BookmarkAnnotate
439 nmap <Plug>DisableBookmarkShowAll <Plug>BookmarkShowAll
440 nmap <Plug>DisableBookmarkNext <Plug>BookmarkNext
441 nmap <Plug>DisableBookmarkPrev <Plug>BookmarkPrev
442 nmap <Plug>DisableBookmarkClear <Plug>BookmarkClear
443 nmap <Plug>DisableBookmarkClearAll <Plug>BookmarkClearAll
445 nmap mm <Plug>BookmarkToggle
446 " nmap ,i <Plug>BookmarkAnnotate
447 nmap \m <Plug>BookmarkShowAll
448 let g:bookmark_center = 1
449 let g:bookmark_auto_close = 1
450 "let g:bookmark_highlight_lines = 1
451 " nmap ,j <Plug>BookmarkNext
452 " nmap ,k <Plug>BookmarkPrev
453 " nmap ,c <Plug>BookmarkClear
454 " nmap ,x <Plug>BookmarkClearAll
456 " EasyMotion -------------------------------------------------------------- {{{
457 map en <Plug>(easymotion-sn)
458 map ej <Plug>(easymotion-j)
459 map ek <Plug>(easymotion-k)
460 map eb <Plug>(easymotion-b)
461 map ew <Plug>(easymotion-w)
462 map ee <Plug>(easymotion-w)
463 map el <Plug>(easymotion-lineforward)
464 map eh <Plug>(easymotion-linebackward)
466 "map <SPACE>n <Plug>(easymotion-sn)
467 "map <SPACE>j <Plug>(easymotion-j)
468 "map <SPACE>k <Plug>(easymotion-k)
469 "map <SPACE>b <Plug>(easymotion-b)
470 "map <SPACE>w <Plug>(easymotion-w)
471 "map <SPACE>e <Plug>(easymotion-w)
472 "map <SPACE>l <Plug>(easymotion-lineforward)
473 "map <SPACE>h <Plug>(easymotion-linebackward)
476 " vim-latex --------------------------------------------------------------- {{{
477 "set grepprg=grep\ -nH\ $*
478 "let g:tex_flavor='latex'
480 "autocmd BufEnter *.tex set sw=2
481 "disable default mapping
482 imap #$ <Plug>IMAP_JumpForward
483 nmap #$ <Plug>IMAP_JumpForward
484 vmap #$ <Plug>IMAP_JumpForward
485 vmap #$ <Plug>IMAP_DeleteAndJumpForward
486 let g:Imap_FreezeImap=1
489 " FileType ---------------------------------------------------------------- {{{
490 autocmd BufNewFile,BufRead *.log set filetype=logecc
491 autocmd BufNewFile,BufRead *.log.[0-9] set filetype=logecc
492 autocmd BufNewFile,BufRead *tmux.conf set filetype=tmux
493 autocmd BufNewFile,BufRead SConstruct set filetype=python
494 autocmd BufNewFile,BufRead SConscript* set filetype=python
495 autocmd BufNewFile,BufReadPost *.md set filetype=markdown
496 autocmd BufNewFile,BufRead *.c set filetype=cpp
498 " http://vim.wikia.com/wiki/Update_the_diff_view_automatically
499 autocmd InsertLeave,BufWritePost,CursorHold * if &diff == 1 | diffupdate | endif
500 " setlocal nomodifiable for svn diff
501 autocmd BufWinEnter *.svn-base setlocal nomodifiable
503 autocmd WinEnter * nnoremap <buffer> gj @=(&diff)?']czz':'gj'<CR> |
504 \ nnoremap <buffer> gk @=(&diff)?'[czz':'gk'<CR>
506 autocmd FileType qf nnoremap <buffer> <silent> q :q<CR> | setlocal nowrap | setlocal nocursorline
507 autocmd FileType help nnoremap <buffer> <silent> q :q<CR> | vertical resize 85;
508 autocmd FileType c,cpp setlocal foldmethod=syntax |
509 \ let b:AutoClosePairs = AutoClose#DefaultPairsModified("\"", "{}") |
510 \ inoremap <buffer> { {<CR>}<ESC>kA<CR>|
511 \ nnoremap <buffer> <silent> <C-]> :let word=expand("<cword>")<CR>:wincmd o<cr>:vsp<CR>:exec("tag ". word)<cr>zzzr:wincmd w<cr>
512 autocmd FileType python setlocal foldmethod=indent
514 autocmd FileType xml setlocal foldmethod=syntax |
515 \ let g:xml_syntax_folding=1
516 autocmd FileType vim setlocal foldmethod=marker |
517 \ setlocal formatoptions-=c formatoptions-=r formatoptions-=o |
518 \ let b:AutoClosePairs = AutoClose#DefaultPairsModified("", "{} \"")
520 autocmd FileType perl setlocal foldmethod=syntax |
521 \ let b:AutoClosePairs = AutoClose#DefaultPairsModified("\"", "{}") |
522 \ inoremap <buffer> { {<CR>}<ESC>kA<CR>
524 autocmd Filetype markdown setlocal textwidth=80
526 autocmd CmdwinEnter * map <buffer> q :q<CR>
529 " Functions --------------------------------------------------------------- {{{
530 " DiffOrig ---------------------------------------------------------------- {{{
531 " refert vimrc_example.vim
532 " Convenient command to see the difference between the current buffer and the
533 " file it was loaded from, thus the changes you made.
534 " Only define it when not defined already.
535 if !exists(":DiffOrig")
536 command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
537 \ | wincmd p | diffthis
540 " Fold Quickfix ----------------------------------------------------------- {{{
541 "http://vim.wikia.com/wiki/Show_only_lines_in_quickfix_list_for_current_buffer
542 if ! exists('g:foldmisses_context')
543 let g:foldmisses_context = 0
546 " Add manual fold from line1 to line2, inclusive.
547 function! s:Fold(line1, line2)
549 execute a:line1.','.a:line2.'fold'
553 " Return list of line numbers for current buffer found in quickfix list.
554 function! s:GetHitLineNumbers(list)
557 if d.valid && d.bufnr == bufnr('')
558 call add(result, d.lnum)
564 function! s:FoldMisses(list, context)
565 setlocal foldmethod=manual
567 let extra = a:context == 99999 ? g:foldmisses_context : a:context
569 for lnum in s:GetHitLineNumbers(a:list)
570 " let start = last==0 ? 1 : last+extra
571 let start = last==0 ? 1 : last+1+extra
572 call s:Fold(start, lnum-1-extra)
575 call s:Fold(last+1+extra, line('$'))
576 " call s:Fold(last+extra, line('$'))
579 ":[N]FoldMisses [N] Show only the lines (and surrounding [N] lines
580 ":[N]FoldLMisses [N] of context) in the current buffer that appear
581 " in the quickfix / location list.
582 " Missed, error-free lines are folded away.
583 command! -bar -count=99999 FoldMisses call s:FoldMisses(getqflist(), <count>)
584 command! -bar -count=99999 FoldLMisses call s:FoldMisses(getloclist(0), <count>)
586 " ToggleList -------------------------------------------------------------- {{{
587 "http://vim.wikia.com/wiki/Toggle_to_open_or_close_the_quickfix_window
588 function! GetBufferList()
595 function! ToggleList(bufname, pfx)
596 let buflist = GetBufferList()
597 for bufnum in map(filter(split(buflist, '\n'), 'v:val =~ "'.a:bufname.'"'), 'str2nr(matchstr(v:val, "\\d\\+"))')
598 if bufwinnr(bufnum) != -1
603 if a:pfx == 'l' && len(getloclist(0)) == 0
605 echo "Location List is Empty."
615 nmap <silent> \l :call ToggleList("Location List", 'l')<CR>
616 nmap <silent> \q :call ToggleList("Quickfix List", 'c')<CR>
618 " DiffToggle -------------------------------------------------------------- {{{
619 "if !exists(":DiffToggle")
622 function! DiffToggle()
624 diffoff | wincmd l | :q
626 exec ":VCSVimDiff" | wincmd h
629 nnoremap \d :call DiffToggle()<CR>
630 "noremap <Leader>d @=(&diff)?':diffoff':":VCSVimDiff"<CR><CR>
635 "nnoremap <silent> <Space> @=(foldlevel('.')?'za':"\<Space>")<CR>
636 nnoremap <silent> <cr> @=(foldlevel('.')?'za':"\<Space>")<CR>
637 "noremap <Leader>d @=(&diff)?':diffoff':":VCSVimDiff"<CR><CR>
639 " https://bitbucket.org/sjl/dotfiles/src/tip/vim/vimrc
640 " Make sure Vim returns to the same line when you reopen a file.
645 \ if line("'\"") > 0 && line("'\"") <= line("$") |
646 \ execute 'normal! g`"zvzz' |
650 iabbrev -... <C-R>=repeat('-', 80 - col(".") - 4 ) . " {{{"
654 " to show the key sequence when pressing some key,
660 " some prefix for mapping
667 nnoremap <C-N> :cn<CR>zzzv
668 nnoremap <C-P> :cp<CR>zzzv
669 "http://dougblack.io/words/a-good-vimrc.html
672 "nnoremap <silent> <C-]> :let word=expand("<cword>")<CR>:vsp<CR>:wincmd w<cr>:exec("tag ". word)<cr>
673 "nnoremap <silent> <C-]> :let word=expand("<cword>")<CR>:wincmd o<cr>:vsp<CR>:exec("tag ". word)<cr>zz:wincmd w<cr>
674 " command in normal mode, and visual mode
677 " gn select search and in visual mode
678 " confirm when using :q to quit the last tab page,
679 "Alias q if\ winnr('$')>1||tabpagenr('$')>1||confirm('Really\ quit?',\ "&OK\\n&Cancel")==1|quit|endif
683 " color of current line
685 nnoremap <Leader>m :marks abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ<CR>:normal '
687 "let g:ctrlp_extensions = ['tag', 'buffertag', 'quickfix', 'dir', 'rtscript',
688 " \ 'undo', 'line', 'changes', 'mixed', 'bookmarkdir']