|
143 | 143 |
|
144 | 144 | if filereadable(expand("~/.vim/bundle/vim-colors-solarized/colors/solarized.vim"))
|
145 | 145 | let g:solarized_termcolors=256
|
146 |
| - color solarized " Load a colorscheme |
147 |
| - endif |
148 | 146 | let g:solarized_termtrans=1
|
149 | 147 | let g:solarized_contrast="high"
|
150 | 148 | let g:solarized_visibility="high"
|
| 149 | + color solarized " Load a colorscheme |
| 150 | + endif |
| 151 | + |
151 | 152 | set tabpagemax=15 " Only show 15 tabs
|
152 | 153 | set showmode " Display the current mode
|
153 | 154 |
|
|
158 | 159 |
|
159 | 160 | highlight clear LineNr " Current line number row will have same background color in relative mode.
|
160 | 161 | " Things like vim-gitgutter will match LineNr highlight
|
161 |
| - "highlight clear CursorLineNr " Remove highlight color from current line number |
| 162 | + "highlight clear CursorLineNr " Remove highlight color from current line number |
162 | 163 |
|
163 | 164 | if has('cmdline_info')
|
164 | 165 | set ruler " Show the ruler
|
|
243 | 244 |
|
244 | 245 | " Easier moving in tabs and windows
|
245 | 246 | " The lines conflict with the default digraph mapping of <C-K>
|
246 |
| - " If you prefer that functionality, add let g:spf13_no_easyWindows = 1 |
247 |
| - " in your .vimrc.before.local file |
248 |
| - |
| 247 | + " If you prefer that functionality, add the following to your |
| 248 | + " .vimrc.before.local file: |
| 249 | + " let g:spf13_no_easyWindows = 1 |
249 | 250 | if !exists('g:spf13_no_easyWindows')
|
250 | 251 | map <C-J> <C-W>j<C-W>_
|
251 | 252 | map <C-K> <C-W>k<C-W>_
|
|
299 | 300 | nmap <leader>f8 :set foldlevel=8<CR>
|
300 | 301 | nmap <leader>f9 :set foldlevel=9<CR>
|
301 | 302 |
|
302 |
| - " Toggle search highlighting |
303 |
| - nmap <silent> <leader>/ :set invhlsearch<CR> |
| 303 | + " Most prefer to toggle search highlighting rather than clear the current |
| 304 | + " search results. To clear search highlighting rather than toggle it on |
| 305 | + " and off, add the following to your .vimrc.before.local file: |
| 306 | + " let g:spf13_clear_search_highlight = 1 |
| 307 | + if exists('g:spf13_clear_search_highlight') |
| 308 | + nmap <silent> <leader>/ :nohlsearch<CR> |
| 309 | + else |
| 310 | + nmap <silent> <leader>/ :set invhlsearch<CR> |
| 311 | + endif |
| 312 | + |
304 | 313 |
|
305 | 314 | " Find merge conflict markers
|
306 | 315 | map <leader>fc /\v^[<\|=>]{7}( .*\|$)<CR>
|
|
502 | 511 | "}
|
503 | 512 |
|
504 | 513 | " PythonMode {
|
505 |
| - " Disable if python support not present |
| 514 | + " Disable if python support not present |
506 | 515 | if !has('python')
|
507 | 516 | let g:pymode = 1
|
508 | 517 | endif
|
|
549 | 558 | endif
|
550 | 559 | let g:neocomplete#keyword_patterns['default'] = '\h\w*'
|
551 | 560 |
|
552 |
| - " Plugin key-mappings. |
553 |
| - |
554 |
| - " These two lines conflict with the default digraph mapping of <C-K> |
555 |
| - " If you prefer that functionality, add |
556 |
| - " let g:spf13_no_neosnippet_expand = 1 |
557 |
| - " in your .vimrc.before.local file |
558 |
| - |
559 |
| - if !exists('g:spf13_no_neosnippet_expand') |
560 |
| - imap <C-k> <Plug>(neosnippet_expand_or_jump) |
561 |
| - smap <C-k> <Plug>(neosnippet_expand_or_jump) |
562 |
| - endif |
| 561 | + " Plugin key-mappings { |
| 562 | + " These two lines conflict with the default digraph mapping of <C-K> |
| 563 | + " If you prefer that functionality, add the following to your |
| 564 | + " .vimrc.before.local file: |
| 565 | + " let g:spf13_no_neosnippet_expand = 1 |
| 566 | + if !exists('g:spf13_no_neosnippet_expand') |
| 567 | + imap <C-k> <Plug>(neosnippet_expand_or_jump) |
| 568 | + smap <C-k> <Plug>(neosnippet_expand_or_jump) |
| 569 | + endif |
563 | 570 |
|
564 |
| - inoremap <expr><C-g> neocomplete#undo_completion() |
565 |
| - inoremap <expr><C-l> neocomplete#complete_common_string() |
566 |
| - inoremap <expr><CR> neocomplete#complete_common_string() |
| 571 | + inoremap <expr><C-g> neocomplete#undo_completion() |
| 572 | + inoremap <expr><C-l> neocomplete#complete_common_string() |
| 573 | + inoremap <expr><CR> neocomplete#complete_common_string() |
567 | 574 |
|
568 |
| - " <TAB>: completion. |
569 |
| - inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" |
570 |
| - inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<TAB>" |
| 575 | + " <TAB>: completion. |
| 576 | + inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" |
| 577 | + inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<TAB>" |
571 | 578 |
|
572 |
| - " <CR>: close popup |
573 |
| - " <s-CR>: close popup and save indent. |
574 |
| - inoremap <expr><s-CR> pumvisible() ? neocomplete#close_popup()"\<CR>" : "\<CR>" |
575 |
| - inoremap <expr><CR> pumvisible() ? neocomplete#close_popup() : "\<CR>" |
| 579 | + " <CR>: close popup |
| 580 | + " <s-CR>: close popup and save indent. |
| 581 | + inoremap <expr><s-CR> pumvisible() ? neocomplete#close_popup()"\<CR>" : "\<CR>" |
| 582 | + inoremap <expr><CR> pumvisible() ? neocomplete#close_popup() : "\<CR>" |
576 | 583 |
|
577 |
| - " <C-h>, <BS>: close popup and delete backword char. |
578 |
| - inoremap <expr><BS> neocomplete#smart_close_popup()."\<C-h>" |
579 |
| - inoremap <expr><C-y> neocomplete#close_popup() |
| 584 | + " <C-h>, <BS>: close popup and delete backword char. |
| 585 | + inoremap <expr><BS> neocomplete#smart_close_popup()."\<C-h>" |
| 586 | + inoremap <expr><C-y> neocomplete#close_popup() |
| 587 | + " } |
580 | 588 |
|
581 | 589 | " Enable omni completion.
|
582 | 590 | autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
|
|
652 | 660 | endif
|
653 | 661 | let g:neocomplcache_keyword_patterns._ = '\h\w*'
|
654 | 662 |
|
655 |
| - " Plugin key-mappings. |
656 |
| - |
657 |
| - " These two lines conflict with the default digraph mapping of <C-K> |
658 |
| - " If you prefer that functionality, add |
659 |
| - " let g:spf13_no_neosnippet_expand = 1 |
660 |
| - " in your .vimrc.before.local file |
661 |
| - |
662 |
| - if !exists('g:spf13_no_neosnippet_expand') |
663 |
| - imap <C-k> <Plug>(neosnippet_expand_or_jump) |
664 |
| - smap <C-k> <Plug>(neosnippet_expand_or_jump) |
665 |
| - endif |
| 663 | + " Plugin key-mappings { |
| 664 | + " These two lines conflict with the default digraph mapping of <C-K> |
| 665 | + " If you prefer that functionality, add the following to your |
| 666 | + " .vimrc.before.local file: |
| 667 | + " let g:spf13_no_neosnippet_expand = 1 |
| 668 | + if !exists('g:spf13_no_neosnippet_expand') |
| 669 | + imap <C-k> <Plug>(neosnippet_expand_or_jump) |
| 670 | + smap <C-k> <Plug>(neosnippet_expand_or_jump) |
| 671 | + endif |
666 | 672 |
|
667 |
| - inoremap <expr><C-g> neocomplcache#undo_completion() |
668 |
| - inoremap <expr><C-l> neocomplcache#complete_common_string() |
669 |
| - inoremap <expr><CR> neocomplcache#complete_common_string() |
| 673 | + inoremap <expr><C-g> neocomplcache#undo_completion() |
| 674 | + inoremap <expr><C-l> neocomplcache#complete_common_string() |
| 675 | + inoremap <expr><CR> neocomplcache#complete_common_string() |
670 | 676 |
|
671 |
| - " <TAB>: completion. |
672 |
| - inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" |
673 |
| - inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<TAB>" |
| 677 | + " <TAB>: completion. |
| 678 | + inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" |
| 679 | + inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<TAB>" |
674 | 680 |
|
675 |
| - " <CR>: close popup |
676 |
| - " <s-CR>: close popup and save indent. |
677 |
| - inoremap <expr><s-CR> pumvisible() ? neocomplcache#close_popup()"\<CR>" : "\<CR>" |
678 |
| - inoremap <expr><CR> pumvisible() ? neocomplcache#close_popup() : "\<CR>" |
| 681 | + " <CR>: close popup |
| 682 | + " <s-CR>: close popup and save indent. |
| 683 | + inoremap <expr><s-CR> pumvisible() ? neocomplcache#close_popup()"\<CR>" : "\<CR>" |
| 684 | + inoremap <expr><CR> pumvisible() ? neocomplcache#close_popup() : "\<CR>" |
679 | 685 |
|
680 |
| - " <C-h>, <BS>: close popup and delete backword char. |
681 |
| - inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>" |
682 |
| - inoremap <expr><C-y> neocomplcache#close_popup() |
| 686 | + " <C-h>, <BS>: close popup and delete backword char. |
| 687 | + inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>" |
| 688 | + inoremap <expr><C-y> neocomplcache#close_popup() |
| 689 | + " } |
683 | 690 |
|
684 | 691 | " Enable omni completion.
|
685 | 692 | autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
|
|
747 | 754 | " airline {
|
748 | 755 | let g:airline_theme='powerlineish' " airline users use the powerline theme
|
749 | 756 | if !exists('g:airline_powerline_fonts')
|
750 |
| - let g:airline_left_sep='›' " Slightly fancier separator, instead of '>' |
751 |
| - let g:airline_right_sep='‹' " Slightly fancier separator, instead of '<' |
| 757 | + let g:airline_left_sep='›' " Slightly fancier separator, instead of '>' |
| 758 | + let g:airline_right_sep='‹' " Slightly fancier separator, instead of '<' |
752 | 759 | endif
|
753 | 760 | " }
|
754 | 761 |
|
|
0 commit comments