This commit is contained in:
ManjaroOne666 2018-11-02 20:25:06 +00:00
commit d3be8a2c55
3 changed files with 46 additions and 13 deletions

34
vimrc
View file

@ -266,23 +266,29 @@ xmap ih <Plug>GitGutterTextObjectInnerVisual
xmap ah <Plug>GitGutterTextObjectOuterVisual
"}}}
" Use the silver searcher ag command instead of grep{{{
" ctrlp {{{
" :h ctrlp-commands
" :h ctrlp-extensions
let g:ctrlp_extensions = ['tag', 'buffertag', 'quickfix', 'undo']
if executable('ag')
" Use ag over grep
set grepprg=ag\ --nogroup\ --nocolor\ --ignore\ node_modules
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
" ag is fast enough that CtrlP doesn't need to cache
let g:ctrlp_use_caching = 0
endif
" Use ag over grep
if executable('ag')
set grepprg=ag\ --nogroup\ --nocolor\ --ignore\ node_modules
endif
"}}}
"vim-wiki
"vim-wiki{{{
let g:vimwiki_list = [{'path': '~/vimwiki/', 'path_html': '~/vimwiki_html/'}]
"}}}
" emmet
" emmet {{{
let g:user_emmet_leader_key=',,'
let g:user_emmet_settings = {
\ 'indentation': ' ',
@ -349,10 +355,6 @@ endfunction
set completefunc=CompleteSnippets
"}}}
" Netrw{{{
@ -430,7 +432,7 @@ nnoremap <space>cc :call ToggleColorPreview()<CR>
nnoremap <space>ci :ColorVInsert<CR>
nnoremap <space>cp :ColorVPicker<CR>
function! ToggleColorPreview() abort
function! ToggleColorPreview() abort "{{{
if !exists('w:colorv_is_previewing')
let w:colorv_is_previewing = 0
endif
@ -441,7 +443,8 @@ function! ToggleColorPreview() abort
execute 'ColorVClear'
let w:colorv_is_previewing = 0
endif
endfunction
endfunction "}}}
"}}}
" vim-instant-markdown{{{
@ -892,6 +895,11 @@ set wildmenu
set wildmode=longest:full,full
set wildignore+=/node_modules/,dist/
" Use ag over grep
if executable('ag')
set grepprg=ag\ --nogroup\ --nocolor\ --ignore\ node_modules
endif
set hidden
set number relativenumber