Add vim-imp. Fix tmux breaking when reloading vimrc. Fix java highlight

This commit is contained in:
Christian Nieves
2022-09-14 21:49:53 +00:00
parent 649d7e171b
commit 9470d585cf
6 changed files with 28 additions and 84 deletions

View File

@ -1,7 +1,5 @@
source /usr/share/vim/google/glug/bootstrap.vim
source /usr/share/vim/google/core.vim
source /google/data/ro/projects/vigor/vigor.vim
" source /usr/share/vim/google/google.vim
Plug 'vim-scripts/vcscommand.vim'
Plug 'sso://user/chmnchiang/google-comments'
@ -40,8 +38,7 @@ let g:blazevim_quickfix_autoopen = 1
Glug buganizer plugin[mappings]
Glug relatedfiles plugin[mappings]
Glug g4
Glug corpweb
Glug google-csimporter
"Glug google-csimporter
" Update the current file's build deps
Plug 'junegunn/fzf', { 'do': { -> fzf#install() }, 'commit': '3f75a83' }
@ -172,7 +169,7 @@ com! -nargs=? -complete=file Blame :call G4Blame(<f-args>)
" <c-u> removes the visual range because csearch doesn't support ranges.
" Removes newlines to allow the entire line search using V-LINE mode.
" vnoremap <leader>cs "ny:<c-u>FzfCs "<c-r>=substitute(@n, '\n', '', '')<cr>"<cr>
nnoremap <leader>csi :CsImporter<cr>
"
" nnoremap <leader>CS :FzfCs<Space> <C-r><C-w> <cr>
nnoremap <leader>cc :CritiqueUnresolvedComments<space><cr>

12
vim/.vim/prefs/imp.vim Normal file
View File

@ -0,0 +1,12 @@
source ~/.vim/prefs/google_comments.vim
set runtimepath+=/google/src/files/head/depot/google3/experimental/users/tstone/vim/vim-imp
set runtimepath+=/google/src/files/head/depot/google3/experimental/users/tstone/vim/imp-csearch
Glug! glaive
Glaive imp plugin[mappings] Suggest[default]=buffer,primp,csearch,prompt Report[default]=popupnotify
"
" nnoremap <leader>csi :CsImporter<cr>
nnoremap <leader>csi :ImpSuggest
" nnoremap <leader>ii :ImpSuggest
" nnoremap <leader>if :ImpFirst

View File

@ -1,53 +1,6 @@
" --------- MAPPINGS FOR QUICK CONFIG EDITS ---------
" mnemonic: (e)dit (v)imrc
nmap <leader>ev :tabedit $MYVIMRC<cr>
" mnemonic: (e)dit (t)mux.conf
nmap <leader>et :tabedit ~/.tmux.conf<cr>
" mnemonic: (e)dit (g)oogle.vim
nmap <leader>eg :tabedit ~/.vim/prefs/google.vim<cr>
" mnemonic: (e)dit (b)ash_profile
nmap <leader>eb :tabedit ~/.bash_profile<cr>
" mnemonic: (e)dit (f)tplugin
nmap <leader>ef :tabedit ~/.vim/after/ftplugin<cr>
" mnemonic: (e)dit (p)lugins
nmap <leader>ep :tabedit ~/.vim/prefs/plugins.vim<cr>
" mnemonic: (e)dit (c)onfigs * opens NERDTree on the prefs dir
nmap <leader>ec :tabedit ~/.vim/prefs/<cr>
" mnemonic: (e)dit (p)refs, (i)nit.vim
nmap <leader>epi :tabedit ~/.vim/prefs/init.vim<cr>
" mnemonic: (e)dit (p)refs, (l)eader.vim
nmap <leader>epl :tabedit ~/.vim/prefs/leader.vim<cr>
" mnemonic: (e)dit (p)refs, (c)oc.vim
nmap <leader>epc :tabedit ~/.vim/prefs/coc.vim<cr>
" mnemonic: (e)dit (p)refs, (m)appings.vim
nmap <leader>epm :tabedit ~/.vim/prefs/mappings.vim<cr>
" mnemonic: (e)dit (p)refs, (p)lug_prefs.vim
nmap <leader>epp :tabedit ~/.vim/prefs/plug_prefs.vim<cr>
" mnemonic: (e)dit (p)refs, (u)i.vim
nmap <leader>epu :tabedit ~/.vim/prefs/ui.vim<cr>
"
" mnemonic: (e)dit (p)refs, (g)olang.vim
nmap <leader>epg :tabedit ~/.vim/prefs/google.vim<cr>
" mnemonic: (e)dit (z)shrc
nmap <leader>ez :tabedit ~/.zshrc<cr>
"
" mnemonic: (i)nsert (l)ambda
imap <leader>il <C-K>l*
" HEX<->ASCII
" mnemonic: (h)ex (t)o (a)scii
vnoremap <leader>hta :<c-u>s/\%V\x\x/\=nr2char(printf("%d", "0x".submatch(0)))/g<cr><c-l>`<
@ -180,3 +133,4 @@ vnoremap <leader>c$ :call nerdcommenter#Comment(0,"ToEOL")<CR>
nmap <leader>yf :let @" = expand("%")<cr>
nmap <leader>ut :UndotreeToggle<cr>
nmap <leader>e :e %%

View File

@ -9,16 +9,6 @@ map <Esc>[B <Down>
map <Esc>[C <Right>
map <Esc>[D <Left>
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
tnoremap <C-H> <C-\><C-n><C-w>h
tnoremap <C-J> <C-\><C-n><C-w>j
tnoremap <C-K> <C-\><C-n><C-w>k
tnoremap <C-L> <C-\><C-n><C-w>l
" remove mapping to be used in nerdtree
inoremap <Nul> <C-n>
@ -37,10 +27,6 @@ vnoremap ; :
nnoremap J :tabprevious<CR>
nnoremap K :tabnext<CR>
" tab arrangement, Shift-H and Shift-L to move tabs
" nnoremap <silent> <lt> :execute 'silent! tabmove ' . (tabpagenr()-2)<CR>
" nnoremap <silent> > :execute 'silent! tabmove ' . (tabpagenr()+1)<CR>
"
" tab opening
nnoremap tt :tabedit<Space>
nnoremap td :tabclose<CR>

View File

@ -1,5 +1,7 @@
packadd termdebug
" packadd lspconfig
" MINE
Plug 'squk/vim-quantum'
Plug 'squk/java-syntax.vim'
" LSP
Plug 'hrsh7th/cmp-buffer'
@ -24,6 +26,7 @@ Plug 'sso://user/vintharas/telescope-codesearch.nvim'
Plug 'ntpeters/vim-better-whitespace' "auto-set tab/space size
Plug 'junegunn/fzf.vim'
Plug 'vim-airline/vim-airline' " ...
Plug 'vim-airline/vim-airline-themes'
Plug 'nathanaelkane/vim-indent-guides'
Plug 'Konfekt/vim-scratchpad'
Plug 'guns/xterm-color-table.vim'
@ -69,7 +72,6 @@ Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
" LANGUAGE PLUGINS
Plug 'udalov/kotlin-vim'
Plug 'hsanson/vim-android'
Plug 'squk/java-syntax.vim'
Plug 'OmniSharp/omnisharp-vim'
Plug 'whatyouhide/vim-tmux-syntax'
Plug 'chase/vim-ansible-yaml'
@ -115,7 +117,6 @@ Plug 'gosukiwi/vim-atom-dark'
Plug 'jacoborus/tender.vim'
Plug 'kristijanhusak/vim-hybrid-material'
Plug 'NLKNguyen/papercolor-theme'
Plug 'squk/vim-quantum'
Plug 'arcticicestudio/nord-vim'
Plug 'chase/focuspoint-vim'
Plug 'patstockwell/vim-monokai-tasty' " airline
@ -125,8 +126,3 @@ Plug 'kristiandupont/shades-of-teal'
Plug 'joshdick/onedark.vim'
Plug 'google/vim-colorscheme-primary'
Plug 'kyoz/purify', { 'rtp': 'vim' }
" Plug 'google/vim-maktaba'
" Plug 'google/vim-glaive'
"
" call glaive#Install()

View File

@ -18,7 +18,6 @@ let &t_AB="\e[48;5;%dm"
let &t_AF="\e[38;5;%dm"
syntax on
set laststatus=2
set cmdheight=1
set ttyfast
@ -109,9 +108,9 @@ lua << EOF
require("telescope_config")
EOF
source ~/.vim/prefs/cmp.vim
if filereadable(expand("~/use_google"))
source ~/.vim/prefs/google_comments.vim
source ~/.vim/prefs/cmp.vim
source ~/.vim/prefs/imp.vim
endif
filetype plugin on " redundant?