From 32fc608650b5aa824d87182e0491e0d9f5da7efe Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sun, 13 Feb 2022 20:28:00 +0330 Subject: updates --- .vimrc | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 443c695..ca8cb50 100644 --- a/.vimrc +++ b/.vimrc @@ -140,7 +140,6 @@ Plug 'tpope/vim-vinegar' Plug 'tpope/vim-commentary' Plug 'tpope/vim-rhubarb' Plug 'rgrinberg/vim-ocaml' -Plug 'terryma/vim-multiple-cursors' Plug 'kshenoy/vim-signature' Plug 'Konfekt/vim-scratchpad' Plug 'rust-lang/rust.vim' @@ -205,7 +204,9 @@ Plug 'calincru/flex-bison-syntax' Plug 'tridactyl/vim-tridactyl' Plug 'hrother/offlineimaprc.vim' Plug 'lifepillar/pgsql.vim', {'for': ['sql','pqsl', 'pgsql']} +Plug 'HiPhish/info.vim' " Plug 'kana/vim-operator-user' +" Plug 'terryma/vim-multiple-cursors' " Plug 'haya14busa/vim-operator-flashy' " Plug 'terryma/vim-expand-region' " Plug 'romainl/vim-devdocs' @@ -1030,7 +1031,7 @@ function! s:compiler_explorer() set syntax=nasm 1 endfunction -" command! -complete=shellcmd -nargs=0 CompilerExplorer call s:compiler_explorer() +command! CompilerExplorer call s:compiler_explorer() vmap :CompilerExplorer "view the python docs for the word under cursor in a split window @@ -1043,7 +1044,7 @@ function! s:pythondoc() set syntax=man 1 endfunction -" command! -complete=shellcmd -nargs=0 PythonDoc call s:pythondoc() +command! PythonDoc call s:pythondoc() nnoremap h :PythonDoc vnoremap h :PythonDoc @@ -1442,6 +1443,11 @@ augroup ALELUA autocmd FileType lua let b:ale_linters = {'lua': ['luacheck']} autocmd FileType lua let b:ale_fixers = {'lua': ['lua-format']} augroup END +let g:ale_sh_shfmt_options = "-l -w" +augroup ALESH + autocmd! + autocmd FileType sh let b:ale_fixers = {'sh': ['shfmt']} +augroup END "latex let g:tex_flavor = 'latex' @@ -1582,6 +1588,28 @@ autocmd FileType vista,vista_kind nnoremap :call vista#fi " recutils let g:recutils_no_maps = 1 +" info +augroup VIMINFO + autocmd! + autocmd FileType info set number + autocmd FileType info nmap gu (InfoUp) + autocmd FileType info nmap gn (InfoNext) + autocmd FileType info nmap gp (InfoPrev) + autocmd FileType info nmap gm (InfoMenu) + autocmd FileType info nmap gf (InfoFollow) +augroup END +function! s:infovim() + let l:vword = expand("") + execute 'vert Info' l:vword +endfunction +command! InfoVimF1 call s:infovim() +nnoremap i :InfoVimF1 +vnoremap i :InfoVimF1 +function! s:vvman(one, two) + execute 'Vman' a:one a:two +endfunction +let g:Infofallback = function("s:vvman") + "this should be here at the end so nothing else could override it hi SpecialKey ctermbg=16 hi Pmenu ctermbg=233 -- cgit v1.2.3