update everything
This commit is contained in:
parent
e842787d16
commit
9b2bd0b702
16 changed files with 224 additions and 114 deletions
32
.vimrc
32
.vimrc
|
|
@ -102,7 +102,6 @@ Plug 'lambdalisue/suda.vim'
|
|||
|
||||
" Plugins that I almost never use
|
||||
"Plug 'vim-scripts/DrawIt'
|
||||
"Plug 'tpope/vim-speeddating'
|
||||
"Plug 'vim-scripts/EasyGrep'
|
||||
Plug 'chrisbra/NrrwRgn'
|
||||
"Plug 'mattn/calendar-vim'
|
||||
|
|
@ -117,6 +116,8 @@ Plug 'kana/vim-textobj-user'
|
|||
" Plugins I wish I used more
|
||||
"Plug 'hsitz/VimOrganizer'
|
||||
Plug 'jceb/vim-orgmode'
|
||||
Plug 'tpope/vim-speeddating'
|
||||
|
||||
Plug 'tpope/vim-fugitive'
|
||||
Plug 'tpope/vim-unimpaired'
|
||||
Plug 'b4winckler/vim-angry'
|
||||
|
|
@ -134,6 +135,7 @@ Plug 'vim-airline/vim-airline'
|
|||
Plug 'vim-airline/vim-airline-themes'
|
||||
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
||||
Plug 'junegunn/fzf.vim'
|
||||
Plug 'airblade/vim-rooter'
|
||||
Plug 'bling/vim-bufferline'
|
||||
Plug 'majutsushi/tagbar'
|
||||
Plug 'SirVer/ultisnips'
|
||||
|
|
@ -202,6 +204,7 @@ Plug 'whonore/coquille', {'branch': 'pathogen-bundle', 'for': 'coq'}
|
|||
"Plug 'dhruvasagar/vim-zoom'
|
||||
Plug 'gabrielelana/vim-markdown'
|
||||
Plug 'lervag/vimtex'
|
||||
Plug 'Shougo/echodoc.vim'
|
||||
|
||||
|
||||
" Unclear
|
||||
|
|
@ -256,11 +259,9 @@ autocmd FileType python set tags+=$HOME/.vim/tags/python.ctags
|
|||
"autocmd FileType python call SuperTabSetCompletionType("<C-X><C-O>")
|
||||
|
||||
" Set filetype for VimOrganizer
|
||||
au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
|
||||
au BufEnter *.org call org#SetOrgFileType()
|
||||
"au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
|
||||
"au BufEnter *.org call org#SetOrgFileType()
|
||||
|
||||
"au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
|
||||
"au BufEnter *.org call org#SetOrgFileType()
|
||||
command! OrgCapture :call org#CaptureBuffer()
|
||||
command! OrgCaptureFile :call org#OpenCaptureFile()
|
||||
|
||||
|
|
@ -429,7 +430,7 @@ let g:UltiSnipsJumpBackwardTrigger="<Leader><s-,>"
|
|||
|
||||
" Markdown
|
||||
"let g:markdown_enable_folding = 1
|
||||
let g:markdown_enable_mappings = 0
|
||||
let g:markdown_enable_mappings = 1
|
||||
let g:markdown_enable_spell_checking = 0
|
||||
let g:markdown_enable_input_abbreviations = 0
|
||||
|
||||
|
|
@ -437,7 +438,12 @@ let g:markdown_enable_input_abbreviations = 0
|
|||
let g:CommandTMaxFiles = 1000
|
||||
let g:CommandTMaxDepth = 7
|
||||
|
||||
" * FZF
|
||||
" * vim-rooter
|
||||
let g:rooter_cd_cmd="lcd"
|
||||
let g:rooter_manual_only = 1
|
||||
set autochdir
|
||||
|
||||
" " * FZF
|
||||
let g:rg_command = '
|
||||
\ rg --column --line-number --no-heading --fixed-strings --ignore-case --no-ignore --hidden --follow --color "always"
|
||||
\ -g "!{.git,node_modules,vendor}/*" '
|
||||
|
|
@ -447,6 +453,8 @@ let g:rg_command = '
|
|||
command! -bang -nargs=* RipGrep call fzf#vim#grep(g:rg_command .shellescape(<q-args>), 1, <bang>0)
|
||||
command! -bang -nargs=* RipGrepCword call fzf#vim#grep(g:rg_command . "-q " . expand('<cword>'), 1, <bang>0)
|
||||
|
||||
command! -bang -nargs=* RgRoot call fzf#vim#grep("rg --column --line-number --no-heading --color=always --smart-case " . shellescape(<q-args>), 1, {"dir": FindRootDirectory()})
|
||||
|
||||
let g:fzf_buffers_jump = 1
|
||||
" Empty value to disable preview window altogether
|
||||
let g:fzf_preview_window = ''
|
||||
|
|
@ -493,6 +501,12 @@ let g:ctrlp_cmd = 'CtrlP'
|
|||
let g:ctrlp_working_path_mode = 'ra'
|
||||
let g:ctrlp_match_window = 'bottom,order:ttb,min:1,max:15'
|
||||
|
||||
" * Echodoc
|
||||
let g:echodoc_enable_at_startup = 1
|
||||
"let g:echodoc#type = 'floating'
|
||||
"let g:echodoc#type = 'floating'
|
||||
"highlight link EchoDocFloat Pmenu
|
||||
|
||||
" * Vim-Go
|
||||
let g:go_fmt_command = "goimports"
|
||||
"let g:go_auto_type_info = 1
|
||||
|
|
@ -794,7 +808,7 @@ nnoremap <Leader>fn :lnext<CR>
|
|||
nnoremap <Leader>fp :lprev<CR>
|
||||
"nnoremap <silent> <Leader>aa :<C-u>Denite -mode=normal -buffer-name=search-buffer grep<CR>
|
||||
nnoremap <silent> <Leader>ac :<C-u>Denite -resume -buffer-name=search-buffer grep<CR>
|
||||
nnoremap <silent> <Leader>aw :<C-u>DeniteCursorWord -buffer-name=search-buffer grep<CR>
|
||||
"nnoremap <silent> <Leader>aw :<C-u>DeniteCursorWord -buffer-name=search-buffer grep<CR>
|
||||
call denite#custom#map('insert', '<Enter>', '<C-o>')
|
||||
"call denite#custom#var('grep', 'command', ['rg'])
|
||||
"call denite#custom#var('grep', 'default_opts',
|
||||
|
|
@ -814,6 +828,8 @@ call denite#custom#var('grep', {
|
|||
\ })
|
||||
nnoremap <silent> <Leader>g :<C-u>Denite -buffer-name=search-buffer grep<CR>
|
||||
nnoremap <silent> <Leader>aa :<C-u>RipGrep!<CR>
|
||||
nnoremap <silent> <Leader>ag :<C-u>RgRoot!<CR>
|
||||
nnoremap <silent> <Leader>aw :<C-u>RgRoot! <C-r><C-w><CR>
|
||||
"nnoremap <C-l> :<C-u>Files! `git rev-parse --show-toplevel`<CR>
|
||||
nnoremap <C-k> :<C-u>GFiles<CR>
|
||||
" For C++ -- A is a great plugin which allows you to jump from the c file to the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue