From 8c4a6f932b129df4f9a63b7b2e2bcaea6f215866 Mon Sep 17 00:00:00 2001 From: Ibrahim Mkusa Date: Sun, 28 Jul 2024 23:05:45 -0400 Subject: Took snapshot of my main dotfiles --- vim/.vimrc.plugins.settings | 160 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 160 insertions(+) create mode 100644 vim/.vimrc.plugins.settings (limited to 'vim/.vimrc.plugins.settings') diff --git a/vim/.vimrc.plugins.settings b/vim/.vimrc.plugins.settings new file mode 100644 index 0000000..e70fb54 --- /dev/null +++ b/vim/.vimrc.plugins.settings @@ -0,0 +1,160 @@ +" Goyo +autocmd! User GoyoEnter Limelight +autocmd! User GoyoLeave Limelight! +" +" Limelight 1 go +map :Goyo :Limelight!! + +" fix airline +"let g:airline_powerline_fonts = 1 +set laststatus=2 + +""" Plugin configurations +" appearance +silent! colorscheme molokai + +" if running gui use different background like emacs +" set to dark for complete dark +" set to light for more light +if has('gui_running') + set background=dark +else + set background=dark +endif + +" gitgutter +let g:gitgutter_override_sign_column_highlight = 0 +set signcolumn=yes + +" airline +" use powerline patched font +let g:airline_powerline_fonts = 1 + +" just use :StripWhitespace +let g:better_whitespace_enabled = 0 + +" recognize all Markdown files +autocmd BufNewFile,BufReadPost *.md set filetype=markdown +let g:markdown_fenced_languages = ['c', 'cpp', 'csharp=cs', 'bash=sh', 'json'] + +" use solarized dark airline theme +let g:airline_theme='molokai' + + +""" easy motion +" f{char} to move to {char} +map fc (easymotion-bd-f) +nmap fc (easymotion-overwin-f) +" s{char}{char} to move to {char}{char} +nmap s (easymotion-overwin-f2) +" Move to line +map L (easymotion-bd-jk) +nmap L (easymotion-overwin-line) +" Move to word +map w (easymotion-bd-w) +nmap w (easymotion-overwin-w) + +" tagbar +nmap :TagbarToggle + +" undotree +nmap :UndotreeToggle + +" Nerd tree +map :NERDTreeToggle + +" UltiSnips config +" Trigger configuration. Do not use if you use +" https://github.com/Valloric/YouCompleteMe. +" was c-k, c-b, c-z +let g:UltiSnipsExpandTrigger="" +let g:UltiSnipsJumpForwardTrigger="" +let g:UltiSnipsJumpBackwardTrigger="" +" If you want :UltiSnipsEdit to split your window. +let g:UltiSnipsEditSplit="vertical" + +" youcompleteme +let g:ycm_global_ycm_extra_conf = '~/.ycm_global_ycm_extra_conf' +let g:ycm_confirm_extra_conf = 0 +" let g:ycm_server_python_interpreter = '/usr/bin/python2' + + +" vim-javascript +let g:javascript_plugin_jsdoc = 1 +let g:javascript_plugin_ngdoc = 1 +let g:javascript_plugin_flow = 1 + +" NumberToggle +let g:NumberToggleTrigger="" + +" vim-markdown +let g:vim_markdown_folding_disabled = 1 + +" vim-fswitch settings +nnoremap fsh :FSSplitLeft +nnoremap fsj :FSSplitBelow +nnoremap fsk :FSSplitAbove +nnoremap fsl :FSSplitRight +nnoremap h : FSSplitRight + +" tmuxline settings +"let g:tmuxline_preset = 'full' " nightly_fox, tmux + +" limelight settings +let g:limelight_conceal_ctermfg = 256 + +" ack +if executable('ag') + let g:ackprg = 'ag --nogroup --nocolor --column --smart-case' +elseif executable('ack-grep') + let g:ackprg="ack-grep -H --nocolor --nogroup --column" +elseif executable('ack') + let g:ackprg='ack ' +endif + +" vim-easy-align +" Start interactive EasyAlign in visual mode (e.g. vipga) +xmap ga (EasyAlign) +" Start interactive EasyAlign for a motion/text object (e.g. gaip) +nmap ga (EasyAlign) + +" CTrl-P +let g:ctrlp_match_window = 'bottom,order:ttb' +let g:ctrlp_switch_buffer = 0 +let g:ctrlp_working_path_mode = 0 +let g:ctrlp_user_command = 'ag %s -l --nocolor --hidden -g ""' + +" transparent vim +hi Normal ctermbg=none +hi NonText ctermbg=none + +" vim latex preview +let g:livepreview_previewer = 'zathura' +autocmd Filetype tex setl updatetime=1 + +" FZF shortcuts +" File searches +nnoremap f :Files +" Buffers list +nnoremap b :Files +" Silver searcher +nnoremap ag :Ag +" Rip grep +nnoremap rg :Rg +" Current File content only +nnoremap g :Gfiles? +" list files in the current git repository +nnoremap gf :Gfiles +" search through previous git commits +nnoremap gc :Commits +" switch branches real quick +nnoremap gb :Branches +" search through tags +nnoremap t :Tags +" history recent files +nnoremap h :History +" list and jump to marks in your vim session +nnoremap m :Marks + +" lervag/vimtex +let g:vimtex_view_method = 'zathura' -- cgit v1.2.3