update
This commit is contained in:
parent
18084d5a9a
commit
9469780d10
4 changed files with 118 additions and 111 deletions
184
vimrc
184
vimrc
|
|
@ -136,10 +136,6 @@ Plug 'plasticboy/vim-markdown'
|
|||
let g:vim_markdown_toc_autofit = 1
|
||||
let g:vim_markdown_fenced_languages = ['bash=sh']
|
||||
"}}}
|
||||
" #vim-qlist {{{
|
||||
" Original: https://github.com/romainl/vim-qlist
|
||||
Plug 'studio-vx/vim-qlist'
|
||||
"}}}
|
||||
" #vim-repeat{{{
|
||||
" https://github.com/tpope/vim-repeat
|
||||
Plug 'tpope/vim-repeat'
|
||||
|
|
@ -169,11 +165,6 @@ Plug 'studio-vx/vim-qlist'
|
|||
" https://wakatime.com/vim
|
||||
Plug 'wakatime/vim-wakatime'
|
||||
|
||||
"}}}
|
||||
" #wal.vim {{{
|
||||
" https://github.com/dylanaraps/wal.vim
|
||||
Plug 'dylanaraps/wal.vim'
|
||||
|
||||
"}}}
|
||||
" development plugins
|
||||
if g:vimrc_load_dev_plugins"{{{
|
||||
|
|
@ -273,11 +264,6 @@ if g:vimrc_load_dev_plugins"{{{
|
|||
xmap ih <Plug>GitGutterTextObjectInnerVisual
|
||||
xmap ah <Plug>GitGutterTextObjectOuterVisual
|
||||
|
||||
"}}}
|
||||
" #gitv{{{
|
||||
" https://github.com/gregsexton/gitv
|
||||
Plug 'gregsexton/gitv'
|
||||
|
||||
"}}}
|
||||
" #html5{{{
|
||||
" https://github.com/othree/html5.vim
|
||||
|
|
@ -289,36 +275,6 @@ if g:vimrc_load_dev_plugins"{{{
|
|||
Plug 'mboughaba/i3config.vim'
|
||||
|
||||
"}}}
|
||||
" #inline_edit.vim {{{
|
||||
" https://github.com/AndrewRadev/inline_edit.vim
|
||||
Plug 'AndrewRadev/inline_edit.vim'
|
||||
|
||||
let g:inline_edit_patterns = [{
|
||||
\ 'main_filetype': '*html',
|
||||
\ 'sub_filetype': 'scss',
|
||||
\ 'indent_adjustment': 1,
|
||||
\ 'start': '<style\>[^>]*lang=.scss[^>]*>',
|
||||
\ 'end': '</style>'
|
||||
\ }]
|
||||
|
||||
let g:inline_edit_autowrite = 1
|
||||
let g:inline_edit_proxy_type = 'tempfile'
|
||||
let g:inline_edit_new_buffer_command ='tabedit'
|
||||
let g:inline_edit_modify_statusline = 0
|
||||
|
||||
nnoremap <space>ie :InlineEdit<cr>
|
||||
|
||||
"}}}
|
||||
" #livedown.vim {{{
|
||||
" https://github.com/shime/vim-livedown
|
||||
Plug 'shime/vim-livedown'
|
||||
|
||||
let g:livedown_port = 4343
|
||||
let g:livedown_command = '/home/ray/.npm-global/bin/livedown'
|
||||
let g:livedown_open = 0
|
||||
let g:livedown_browser = 'qutebrowser'
|
||||
nnoremap <space>md :LivedownToggle<CR>
|
||||
"}}}
|
||||
" #php.vim{{{
|
||||
" https://github.com/StanAngeloff/php.vim
|
||||
Plug 'StanAngeloff/php.vim'
|
||||
|
|
@ -348,49 +304,49 @@ if g:vimrc_load_dev_plugins"{{{
|
|||
|
||||
"}}}
|
||||
" #tagbar {{{
|
||||
Plug 'majutsushi/tagbar'
|
||||
|
||||
nnoremap <space>tb :TagbarOpen fj<CR>
|
||||
nnoremap <space>] :tag /[.#@]<c-r>=expand('<cword>')<cr><cr>
|
||||
let g:tagbar_autoclose = 1
|
||||
" let g:tagbar_autopreview = 1
|
||||
" let g:tagbar_previewwin_pos = ''
|
||||
|
||||
let g:tagbar_type_css = {
|
||||
\ 'ctagstype' : 'css',
|
||||
\ 'kinds' : [
|
||||
\ 'c:classes',
|
||||
\ 'i:ids',
|
||||
\ 't:tags',
|
||||
\ 'm:medias'
|
||||
\ ]
|
||||
\}
|
||||
|
||||
let g:tagbar_type_scss = {
|
||||
\ 'ctagstype' : 'scss',
|
||||
\ 'kinds' : [
|
||||
\ 'v:variables',
|
||||
\ 'c:classes',
|
||||
\ 'i:ids',
|
||||
\ 't:tags',
|
||||
\ 'd:medias',
|
||||
\ 'm:mixins',
|
||||
\ 'f:functions'
|
||||
\ ]
|
||||
\}
|
||||
|
||||
let g:tagbar_type_vue = {
|
||||
\ 'ctagstype' : 'vue',
|
||||
\ 'kinds' : [
|
||||
\ 'o:objects',
|
||||
\ 'f:functions',
|
||||
\ 'a:array',
|
||||
\ 's:string',
|
||||
\ 'b:boolean',
|
||||
\ 'n:number',
|
||||
\ 'v:variable'
|
||||
\ ]
|
||||
\ }
|
||||
" Plug 'majutsushi/tagbar'
|
||||
"
|
||||
" nnoremap <space>tb :TagbarOpen fj<CR>
|
||||
" nnoremap <space>] :tag /[.#@]<c-r>=expand('<cword>')<cr><cr>
|
||||
" let g:tagbar_autoclose = 1
|
||||
" " let g:tagbar_autopreview = 1
|
||||
" " let g:tagbar_previewwin_pos = ''
|
||||
"
|
||||
" let g:tagbar_type_css = {
|
||||
" \ 'ctagstype' : 'css',
|
||||
" \ 'kinds' : [
|
||||
" \ 'c:classes',
|
||||
" \ 'i:ids',
|
||||
" \ 't:tags',
|
||||
" \ 'm:medias'
|
||||
" \ ]
|
||||
" \}
|
||||
"
|
||||
" let g:tagbar_type_scss = {
|
||||
" \ 'ctagstype' : 'scss',
|
||||
" \ 'kinds' : [
|
||||
" \ 'v:variables',
|
||||
" \ 'c:classes',
|
||||
" \ 'i:ids',
|
||||
" \ 't:tags',
|
||||
" \ 'd:medias',
|
||||
" \ 'm:mixins',
|
||||
" \ 'f:functions'
|
||||
" \ ]
|
||||
" \}
|
||||
"
|
||||
" let g:tagbar_type_vue = {
|
||||
" \ 'ctagstype' : 'vue',
|
||||
" \ 'kinds' : [
|
||||
" \ 'o:objects',
|
||||
" \ 'f:functions',
|
||||
" \ 'a:array',
|
||||
" \ 's:string',
|
||||
" \ 'b:boolean',
|
||||
" \ 'n:number',
|
||||
" \ 'v:variable'
|
||||
" \ ]
|
||||
" \ }
|
||||
|
||||
"}}}
|
||||
" #ultisnips {{{
|
||||
|
|
@ -452,11 +408,6 @@ if g:vimrc_load_dev_plugins"{{{
|
|||
" https://github.com/tpope/vim-dispatch
|
||||
Plug 'tpope/vim-dispatch'
|
||||
|
||||
"}}}
|
||||
" #vim-fish{{{
|
||||
" https://github.com/dag/vim-fish
|
||||
Plug 'dag/vim-fish'
|
||||
|
||||
"}}}
|
||||
" #vim-gutentags {{{
|
||||
" https://github.com/ludovicchabant/vim-gutentags
|
||||
|
|
@ -573,7 +524,7 @@ if g:vimrc_load_dev_plugins"{{{
|
|||
" This fork does:
|
||||
" https://github.com/DArcMattr/wordpress.vim/tree/universal-ctags
|
||||
" Using studio-vx fork
|
||||
Plug 'studio-vx/wordpress.vim', { 'branch': 'universal-ctags' }
|
||||
" Plug 'studio-vx/wordpress.vim', { 'branch': 'universal-ctags' }
|
||||
|
||||
"}}}
|
||||
" #vim-git{{{
|
||||
|
|
@ -586,10 +537,21 @@ endif"}}} #dev plugins end
|
|||
|
||||
if has('nvim') " nvim only plugins
|
||||
" #colorV {{{
|
||||
" original:
|
||||
" https://github.com/gu-fan/colorv.vim
|
||||
Plug 'gu-fan/colorv.vim'
|
||||
"}}}
|
||||
" #vim-hexokinase {{{
|
||||
" https://github.com/RRethy/vim-hexokinase
|
||||
Plug 'RRethy/vim-hexokinase'
|
||||
let g:Hexokinase_virtualText = '██████'
|
||||
nnoremap <silent> <space>cc :HexokinaseToggle<CR>
|
||||
nnoremap <silent> <space>cr :HexokinaseRefresh<CR>
|
||||
"}}}
|
||||
" #ranger.vim {{{
|
||||
" https://github.com/francoiscabrol/ranger.vim
|
||||
Plug 'francoiscabrol/ranger.vim'
|
||||
let g:ranger_map_keys = 0
|
||||
"}}}
|
||||
|
||||
else " vim only plugins
|
||||
" #colorV {{{
|
||||
|
|
@ -599,6 +561,7 @@ else " vim only plugins
|
|||
" custom fork:
|
||||
" https://github.com/studio-vx/colorv.vim
|
||||
Plug 'studio-vx/colorv.vim'
|
||||
nnoremap <space>cc :call ToggleColorPreview()<CR>
|
||||
"}}}
|
||||
|
||||
end
|
||||
|
|
@ -612,7 +575,6 @@ end
|
|||
|
||||
nnoremap <space>cv :ColorV<CR>
|
||||
nnoremap <space>ce :ColorVEdit<CR>
|
||||
nnoremap <space>cc :call ToggleColorPreview()<CR>
|
||||
nnoremap <space>ci :ColorVInsert<CR>
|
||||
nnoremap <space>cp :ColorVPicker<CR>
|
||||
|
||||
|
|
@ -836,19 +798,29 @@ command! -nargs=* DD silent! call system(len(split(<q-args>, ' ')) == 0 ?
|
|||
\ s:stub . &ft . ' ' . <q-args> . "'" : s:stub . <q-args> . "'")
|
||||
|
||||
"}}}
|
||||
if !exists('*RangerExplorer') "{{{
|
||||
" use ranger as file manager
|
||||
function RangerExplorer() abort
|
||||
exec 'silent !ranger --choosefile=/tmp/vim_ranger_current_file ' . expand('%:p:h')
|
||||
if filereadable('/tmp/vim_ranger_current_file')
|
||||
exec 'edit ' . system('cat /tmp/vim_ranger_current_file')
|
||||
call system('rm /tmp/vim_ranger_current_file')
|
||||
endif
|
||||
redraw!
|
||||
endfun
|
||||
map <space>ra :call RangerExplorer()<CR>
|
||||
|
||||
if has('nvim')
|
||||
if !exists('*RangerExplorer') "{{{
|
||||
function RangerExplorer() abort
|
||||
exec 'silent Ranger'
|
||||
endfun
|
||||
nnoremap <space>ra :call RangerExplorer()<CR>
|
||||
endif
|
||||
else
|
||||
if !exists('*RangerExplorer') "{{{
|
||||
function RangerExplorer() abort
|
||||
exec 'silent !ranger --choosefile=/tmp/vim_ranger_current_file ' . expand('%:p:h')
|
||||
if filereadable('/tmp/vim_ranger_current_file')
|
||||
exec 'edit ' . system('cat /tmp/vim_ranger_current_file')
|
||||
call system('rm /tmp/vim_ranger_current_file')
|
||||
endif
|
||||
redraw!
|
||||
endfun
|
||||
nnoremap <space>ra :call RangerExplorer()<CR>
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
"}}}
|
||||
function! WinEnterColorColumn() abort"{{{
|
||||
if &buftype != ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue