From 2df4e71442b0438aace754ff12e1fb9245969eff Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 5 Aug 2021 20:07:24 +0430 Subject: using vimplug now. --- .vimrc | 278 ++++++++++++++++++++++++++++++----------------------------- .zshrc | 2 +- tmux/date.sh | 3 +- 3 files changed, 144 insertions(+), 139 deletions(-) diff --git a/.vimrc b/.vimrc index 91daa00..adc8556 100644 --- a/.vimrc +++ b/.vimrc @@ -73,148 +73,149 @@ set viminfo='100,\"500,:50,%,n~/.viminfo highlight clear Search let g:is_posix = 1 -set rtp+=~/.vim/bundle/Vundle.vim +" set rtp+=~/.vim/bundle/Vundle.vim set rtp+=/usr/bin/fzf " set rtp+=/home/bloodstalker/extra/llvm-clang-4/build/bin/clangd " set rtp+=/usr/local/bin/pyls let g:polyglot_disabled = ['go.plugin','markdown.plugin'] -call vundle#begin() -Plugin 'vim-airline/vim-airline' -Plugin 'vim-airline/vim-airline-themes' -Plugin 'mbbill/undotree' -Plugin 'mhinz/vim-startify' -Plugin 'ctrlpvim/ctrlp.vim' -Plugin 'kh3phr3n/python-syntax' -Plugin 'VundleVim/Vundle.vim' -Plugin 'scrooloose/nerdtree' -Plugin 'sickill/vim-pasta' -Plugin 'adelarsq/vim-matchit' -Plugin 'makerj/vim-pdf' -Plugin 'Xuyuanp/nerdtree-git-plugin' -Plugin 'vim-ctrlspace/vim-ctrlspace' -Plugin 'mhinz/vim-signify' -Plugin 'octol/vim-cpp-enhanced-highlight' -Plugin 'vimwiki/vimwiki' -Plugin 'flazz/vim-colorschemes' -Plugin 'plasticboy/vim-markdown' -Plugin 'neomutt/neomutt.vim' -Plugin 'sngn/vim-i3blocks-syntax' -Plugin 'rhysd/vim-wasm' -Plugin 'nathanaelkane/vim-indent-guides' -Plugin 'tomlion/vim-solidity' -Plugin 'dense-analysis/ale' -Plugin 'ekalinin/Dockerfile.vim' -Plugin 'PotatoesMaster/i3-vim-syntax' -Plugin 'chrisbra/NrrwRgn' -Plugin 'kana/vim-arpeggio' -Plugin 'easymotion/vim-easymotion' -Plugin 'neovimhaskell/haskell-vim' -Plugin 'majutsushi/tagbar' -Plugin 'szw/vim-maximizer' -Plugin 'chrisbra/csv.vim' -Plugin 'Valloric/YouCompleteMe' -Plugin 'elzr/vim-json' -Plugin 'wellle/context.vim' -Plugin 'ludovicchabant/vim-gutentags' -Plugin 'skywind3000/gutentags_plus' -Plugin 'stephpy/vim-yaml' -Plugin 'unblevable/quick-scope' -Plugin 'SirVer/ultisnips' -Plugin 'honza/vim-snippets' -Plugin 'chrisbra/Recover.vim' -Plugin 'wellle/targets.vim' -Plugin 'rhysd/git-messenger.vim' -Plugin 'mhinz/vim-grepper' -Plugin 'junegunn/limelight.vim' -Plugin 'valloric/MatchTagAlways' -Plugin 'junegunn/vim-peekaboo' -Plugin 'tpope/vim-vinegar' -Plugin 'tpope/vim-commentary' -Plugin 'tpope/vim-rhubarb' -Plugin 'rgrinberg/vim-ocaml' -Plugin 'terryma/vim-multiple-cursors' -Plugin 'kshenoy/vim-signature' -Plugin 'Konfekt/vim-scratchpad' -Plugin 'rust-lang/rust.vim' -Plugin 'tpope/vim-repeat' -Plugin 'cespare/vim-toml' -Plugin 'maralla/vim-toml-enhance' -Plugin 'junegunn/fzf' -Plugin 'junegunn/fzf.vim' -Plugin 'chiel92/vim-autoformat' -Plugin 'vim-scripts/ZoomWin' -Plugin 'wakatime/vim-wakatime' -Plugin 'terryma/vim-expand-region' -Plugin 'tpope/vim-surround' -Plugin 'vim-scripts/DoxyGen-Syntax' -Plugin 'vim-scripts/DoxygenToolkit.vim' -Plugin 'fatih/vim-go' -Plugin 'tpope/vim-fugitive' -Plugin 'junegunn/goyo.vim' -Plugin 'amix/vim-zenroom2' -Plugin 'raimon49/requirements.txt.vim' -Plugin 'Shougo/vimproc.vim' -Plugin 'rhysd/vim-llvm' -Plugin 'haya14busa/is.vim' -Plugin 'haya14busa/vim-asterisk' -Plugin 'haya14busa/incsearch.vim' -Plugin 'haya14busa/vim-edgemotion' -Plugin 'lervag/vimtex' -Plugin 'vim-utils/vim-man' -Plugin 'ajh17/VimCompletesMe' -Plugin 'ryanoasis/vim-devicons' -Plugin 'godlygeek/tabular' -Plugin 'sheerun/vim-polyglot' -Plugin 'dbeniamine/cheat.sh-vim' -Plugin 'wlemuel/vim-tldr' -Plugin 'lifepillar/pgsql.vim' -Plugin 'congma/vim-compiler-checkbashisms' -Plugin 'hsanson/vim-openapi' -Plugin 'mattn/emmet-vim' -Plugin 'hail2u/vim-css3-syntax' -Plugin 'chrisbra/unicode.vim' -Plugin 'meatballs/vim-xonsh' -Plugin 'junegunn/gv.vim' -Plugin 'ap/vim-css-color' -Plugin 'christoomey/vim-tmux-navigator' -Plugin 'Shirk/vim-gas' -Plugin 'roxma/vim-tmux-clipboard' -Plugin 'wellle/visual-split.vim' -" Plugin 'tmux-plugins/vim-tmux' -" Plugin 'rhysd/vim-gfm-syntax' -" Plugin 'vim-utils/vim-troll-stopper' -" Plugin 'vim-pandoc/vim-pandoc' -" Plugin 'vim-pandoc/vim-pandoc-syntax' -" Plugin 'tmux-plugins/vim-tmux-focus-events' -" Plugin 'skammer/vim-css-color' -" Plugin 'jelera/vim-javascript-syntax' -" Plugin 'szymonmaszke/vimpyter' -" Plugin 'puremourning/vimspector' -" Plugin 'kana/vim-submode' -" Plugin 'jaxbot/semantic-highlight.vim' -" Plugin 'tpope/vim-capslock' -" Plugin 'nanotech/jellybeans.vim' -" Plugin 'tiagofumo/vim-nerdtree-syntax-highlight' -" Plugin 'mattn/webapi-vim' -" Plugin 'Townk/vim-autoclose' -" Plugin 'tpope/vim-speeddating' -" Plugin 'powerman/vim-plugin-AnsiEsc' -" Plugin 'xolox/vim-misc' -" Plugin 'liuchengxu/vista.vim' -" Plugin 'metakirby5/codi.vim' -" Plugin 'vim-scripts/tagexplorer.vim' -" Plugin 'MattesGroeger/vim-bookmarks' -" Plugin 'severin-lemaignan/vim-minimap' -" Plugin 'ervandew/supertab' -" Plugin 'Valloric/ListToggle' -" Plugin 'neomake/neomake' -" Plugin 'scrooloose/syntastic' -" Plugin 'Yggdroot/hiPairs' -" Plugin 'maxbrunsfeld/vim-yankstack' -" Plugin 'gcmt/wildfire.vim' -" Plugin 'luochen1990/rainbow' -call vundle#end() +" call plug#begin('~/.vim/plugged') +call plug#begin('~/.vim/bundle') +Plug 'vim-airline/vim-airline' +Plug 'vim-airline/vim-airline-themes' +Plug 'mbbill/undotree', {'on': 'UndotreeToggle'} +Plug 'mhinz/vim-startify' +Plug 'ctrlpvim/ctrlp.vim' +Plug 'kh3phr3n/python-syntax' +Plug 'VundleVim/Vundle.vim' +Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'} +Plug 'sickill/vim-pasta' +Plug 'adelarsq/vim-matchit' +Plug 'makerj/vim-pdf' +Plug 'Xuyuanp/nerdtree-git-plugin' +Plug 'vim-ctrlspace/vim-ctrlspace' +Plug 'mhinz/vim-signify' +Plug 'octol/vim-cpp-enhanced-highlight' +Plug 'vimwiki/vimwiki' +Plug 'flazz/vim-colorschemes' +Plug 'plasticboy/vim-markdown' +Plug 'neomutt/neomutt.vim' +Plug 'sngn/vim-i3blocks-syntax' +Plug 'rhysd/vim-wasm' +Plug 'nathanaelkane/vim-indent-guides' +Plug 'tomlion/vim-solidity' +Plug 'dense-analysis/ale' +Plug 'ekalinin/Dockerfile.vim' +Plug 'PotatoesMaster/i3-vim-syntax' +Plug 'chrisbra/NrrwRgn' +Plug 'kana/vim-arpeggio' +Plug 'easymotion/vim-easymotion' +Plug 'neovimhaskell/haskell-vim' +Plug 'majutsushi/tagbar' +Plug 'szw/vim-maximizer' +Plug 'chrisbra/csv.vim' +Plug 'Valloric/YouCompleteMe', { 'do': './install.py --all' } +Plug 'elzr/vim-json' +Plug 'wellle/context.vim' +Plug 'ludovicchabant/vim-gutentags' +Plug 'skywind3000/gutentags_plus' +Plug 'stephpy/vim-yaml' +Plug 'unblevable/quick-scope' +Plug 'SirVer/ultisnips' +Plug 'honza/vim-snippets' +Plug 'chrisbra/Recover.vim' +Plug 'wellle/targets.vim' +Plug 'rhysd/git-messenger.vim' +Plug 'mhinz/vim-grepper' +Plug 'junegunn/limelight.vim' +Plug 'valloric/MatchTagAlways', {'for':['html','xml','ejs']} +Plug 'junegunn/vim-peekaboo' +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' +Plug 'tpope/vim-repeat' +Plug 'cespare/vim-toml' +Plug 'maralla/vim-toml-enhance' +Plug 'junegunn/fzf' +Plug 'junegunn/fzf.vim' +Plug 'chiel92/vim-autoformat' +Plug 'vim-scripts/ZoomWin' +Plug 'wakatime/vim-wakatime' +Plug 'terryma/vim-expand-region' +Plug 'tpope/vim-surround' +Plug 'vim-scripts/DoxyGen-Syntax' +Plug 'vim-scripts/DoxygenToolkit.vim' +Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' } +Plug 'tpope/vim-fugitive' +Plug 'junegunn/goyo.vim' +Plug 'amix/vim-zenroom2' +Plug 'raimon49/requirements.txt.vim' +Plug 'Shougo/vimproc.vim' +Plug 'rhysd/vim-llvm' +Plug 'haya14busa/is.vim' +Plug 'haya14busa/vim-asterisk' +Plug 'haya14busa/incsearch.vim' +Plug 'haya14busa/vim-edgemotion' +Plug 'lervag/vimtex' +Plug 'vim-utils/vim-man' +Plug 'ajh17/VimCompletesMe' +Plug 'ryanoasis/vim-devicons' +Plug 'godlygeek/tabular' +Plug 'sheerun/vim-polyglot' +Plug 'dbeniamine/cheat.sh-vim' +Plug 'wlemuel/vim-tldr' +Plug 'congma/vim-compiler-checkbashisms' +Plug 'hsanson/vim-openapi' +Plug 'mattn/emmet-vim', {'for': ['html','css','xml','ejs']} +Plug 'hail2u/vim-css3-syntax' +Plug 'chrisbra/unicode.vim' +Plug 'meatballs/vim-xonsh' +Plug 'junegunn/gv.vim' +Plug 'ap/vim-css-color' +Plug 'christoomey/vim-tmux-navigator' +Plug 'Shirk/vim-gas' +Plug 'roxma/vim-tmux-clipboard' +Plug 'wellle/visual-split.vim' +" Plug 'lifepillar/pgsql.vim', {'for': ['sql','pqsl', 'pgsql']} +" Plug 'tmux-plugins/vim-tmux' +" Plug 'rhysd/vim-gfm-syntax' +" Plug 'vim-utils/vim-troll-stopper' +" Plug 'vim-pandoc/vim-pandoc' +" Plug 'vim-pandoc/vim-pandoc-syntax' +" Plug 'tmux-plugins/vim-tmux-focus-events' +" Plug 'skammer/vim-css-color' +" Plug 'jelera/vim-javascript-syntax' +" Plug 'szymonmaszke/vimpyter' +" Plug 'puremourning/vimspector' +" Plug 'kana/vim-submode' +" Plug 'jaxbot/semantic-highlight.vim' +" Plug 'tpope/vim-capslock' +" Plug 'nanotech/jellybeans.vim' +" Plug 'tiagofumo/vim-nerdtree-syntax-highlight' +" Plug 'mattn/webapi-vim' +" Plug 'Townk/vim-autoclose' +" Plug 'tpope/vim-speeddating' +" Plug 'powerman/vim-plugin-AnsiEsc' +" Plug 'xolox/vim-misc' +" Plug 'liuchengxu/vista.vim' +" Plug 'metakirby5/codi.vim' +" Plug 'vim-scripts/tagexplorer.vim' +" Plug 'MattesGroeger/vim-bookmarks' +" Plug 'severin-lemaignan/vim-minimap' +" Plug 'ervandew/supertab' +" Plug 'Valloric/ListToggle' +" Plug 'neomake/neomake' +" Plug 'scrooloose/syntastic' +" Plug 'Yggdroot/hiPairs' +" Plug 'maxbrunsfeld/vim-yankstack' +" Plug 'gcmt/wildfire.vim' +" Plug 'luochen1990/rainbow' +call plug#end() filetype plugin indent on " vim-markdown @@ -1089,8 +1090,11 @@ nnoremap jj :YcmCompleter GoTo nnoremap jt :YcmCompleter GoToType nnoremap gt :YcmCompleter GetType nnoremap gd :YcmCompleter GetDoc +nnoremap gc :YcmCompleter GoToDocumentOutline nnoremap rr :YcmCompleter RefactorRename nmap D (YCMHover) +nmap yfw (YCMFindSymbolInWorkspace) +nmap yfd (YCMFindSymbolInDocument) let g:ycm_collect_identifiers_from_tags_files = 1 let g:ycm_seed_identifiers_with_syntax = 1 diff --git a/.zshrc b/.zshrc index c9018ab..728a583 100644 --- a/.zshrc +++ b/.zshrc @@ -5,7 +5,7 @@ ZSH_THEME="devi" COMPLETION_WAITING_DOTS="true" -plugins=(git svn zsh-syntax-highlighting autojump virtualenv virtualenvwrapper cargo nvm npm docker rustup zsh-autosuggestions zsh-kubectl-prompt kubectl docker-compose vagrant) +plugins=(git zsh-syntax-highlighting autojump virtualenv virtualenvwrapper cargo nvm npm docker rustup zsh-autosuggestions zsh-kubectl-prompt kubectl docker-compose vagrant golang) export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/devi/.local/bin:/home/devi/bin" diff --git a/tmux/date.sh b/tmux/date.sh index c0f1bcf..4c26bbc 100755 --- a/tmux/date.sh +++ b/tmux/date.sh @@ -13,7 +13,8 @@ UTC_TIME_RESULT=$(date -u +"%H:%M") UTC_TIME="#[fg=colour255 bg=colour25]"$(echo GMT: $UTC_TIME_RESULT) # JDATE="#[fg=colour255 bg=colour29]"$(jdate | gawk '{print $2" "$3}') JDATE="#[fg=colour255 bg=colour29]"$(jdate | gawk '{print $2" "$3}') -WEATHER_INFO=$(curl "https://api.openweathermap.org/data/2.5/weather?q=Tehran&appid=a2fab6f29fbe16083cf382306c2abee4&units=metric"|jq ".main.temp") +OPENWEATHERMAP_TOKEN=$(cat /home/devi/scripts/tmux/openweathermap.json|jq -r ".token") +WEATHER_INFO=$(curl "https://api.openweathermap.org/data/2.5/weather?q=Tehran&appid=$OPENWEATHERMAP_TOKEN&units=metric"|jq ".main.temp") WEATHER="#[fg=colour255 bg=colour32]"$(echo $WEATHER_INFO" C") echo "#[fg=colour32 bg=colour16]$SEPARATOR_LEFT_BOLD$WEATHER#[fg=colour29 bg=colour32]$SEPARATOR_LEFT_BOLD$JDATE #[fg=colour31 bg=colour29]$SEPARATOR_LEFT_BOLD$DAY $SEPARATOR_LEFT_THIN $DATE $SEPARATOR_LEFT_THIN $TIME #[fg=colour25 bg=colour31]$SEPARATOR_LEFT_BOLD$UTC_TIME " -- cgit v1.2.3