{"id":20493748,"url":"https://github.com/guanyingc/vim_tmux","last_synced_at":"2025-04-13T17:21:16.606Z","repository":{"id":112620277,"uuid":"67914509","full_name":"guanyingc/VIM_TMUX","owner":"guanyingc","description":"VIM, TMUX, Configuration","archived":false,"fork":false,"pushed_at":"2024-03-28T15:37:34.000Z","size":42653,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T08:11:16.800Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guanyingc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-11T06:38:10.000Z","updated_at":"2024-06-07T09:42:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"febcd9fc-d528-484a-a289-d948b39445d4","html_url":"https://github.com/guanyingc/VIM_TMUX","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guanyingc%2FVIM_TMUX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guanyingc%2FVIM_TMUX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guanyingc%2FVIM_TMUX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guanyingc%2FVIM_TMUX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guanyingc","download_url":"https://codeload.github.com/guanyingc/VIM_TMUX/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248750830,"owners_count":21155791,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T17:36:35.937Z","updated_at":"2025-04-13T17:21:16.583Z","avatar_url":"https://github.com/guanyingc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Solarized Color Scheme For Terminal / iTerm2, Vim, Tmux and SecureCrt\n### Table of Contents\n* [Examples](#examples)\n* [Clone this Repository](#clone-this-repository)\n* [Terminal, Vim, Tmux and SecureCrt for Ubuntu](#terminal-vim-tmux-and-securecrt-for-ubuntu)\n   * [Configuration for Gnome Terminal](#configuration-for-gnome-terminal)\n   * [Configuration for Vim](#configuration-for-vim)\n   * [Configuration for Tmux](#configuration-for-tmux)\n   * [Configuration for SecureCrt](#configuration-for-securecrt)\n* [iTerm2, Vim, Tmux and Securecrt for Mac](#iterm2-vim-tmux-and-securecrt-for-mac)\n   * [Configuration for iTerm2](#configuration-for-iterm2)\n   * [Configuration for Vim](#configuration-for-vim-1)\n   * [Configuration for Tmux](#configuration-for-tmux-1)\n   * [Configuration for SecureCrt](#configuration-for-securecrt-1)\n* [Some Notes on the Plug-ins of Vim](#some-notes-on-the-plug-ins-of-vim)\n\n### Examples\n- Gnome Terminal\n  \u003cp align=\"center\"\u003e\n   \u003cimg src=\"examples/example.png\" width=\"800\")/\u003e\n  \u003c/p\u003e     \n\n- SecureCrt\n  \u003cp align=\"center\"\u003e\n    \u003cimg src=\"examples/example_crt.png\" width=\"800\"/\u003e\n  \u003c/p\u003e     \n- iTerm2\n  \u003cp align=\"center\"\u003e\n    \u003cimg src=\"examples/example_iterm2.png\" width=\"800\"/\u003e\n  \u003c/p\u003e     \n\n### Clone this Repository\n```\ngit clone https://github.com/GoYchen/VIM_TMUX.git ~/VIM_TMUX\n```\n\n### Terminal, Vim, Tmux and SecureCrt for Ubuntu\n#### Configuration for Gnome Terminal \n0. Install Colors and Dircolors following [Anthony25/gnome-terminal-colors-solarized](https://github.com/Anthony25/gnome-terminal-colors-solarized). \n    ```\n    $ sudo apt-get install dconf-cli\n    $ git clone https://github.com/Anthony25/gnome-terminal-colors-solarized.git\n    $ cd gnome-terminal-colors-solarized\n    $ ./install.sh\n    ```\n0. After installation, add the following codes in `.bashrc`\n    ```\n    if [ -f ~/.dir_colors/dircolors ]\n        then eval `dircolors ~/.dir_colors/dircolors`\n    fi\n    ```\n- If you cannot install Dircolors in server, [a quick solution](http://askubuntu.com/questions/466198/how-do-i-change-the-color-for-directories-with-ls-in-the-console) is to add   \n  `LS_COLORS=$LS_COLORS:'di=0;35:' ; export LS_COLORS` in `.bashrc`\n\n#### Configuration for Vim  \n0. Install Vundle to manage the plug-ins\n    ```\n    git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim\n    ```\n0. Copy vimrc to `~/.vimrc`\n    ```\n    # Please remember to backup your own `.vimrc` before overwrite it.\n    cd ~/VIM_TMUX\n    cp vimrc ~/.vimrc\n    ```\n0. Install the plugins\n    ```\n    vim ~/.vimrc\n    :PluginInstall\n    ```\n0. Add the following code in `.vimrc` to correctly display color in Gnome Terminal Vim (already done for you)\n    ```\n    let g:solarized_termcolors=16 \n    set t_Co=16  \n    set background=dark\n    let g:solarized_visibility = \"high\"\n    let g:solarized_contrast = \"high\"\n    colorscheme solarized\n    ```\nNow, you can use Vim to edit edit your files with Solarized Color scheme. However, the color does not display correctly when you run Vim inside Tmux.\n\n#### Configuration for Tmux\n0. Copy `tmux.conf` to `~/.tmux.conf`\n0. Add `export TERM='screen-256color` in `.bashrc` \n0. Add `source .bashrc` in `.bash_profile` (Tmux source `.bash_profile` when starting up)\n\n#### Configuration for SecureCrt\n0. Install SecureCrt\n0. Set Terminal Emulation: in `Options -\u003e Global Options -\u003e Default Session -\u003e Edit Default Settings -\u003e Terminal -\u003e Emulation`, choose `Xterm` and `ANSI Color` under `Emulation options`.\n0. Set color scheme to [solarized dark](https://gist.github.com/schmrlng/737c4a1672442bd15b60): open file `~/.vandyke/SecureCRT/Config/Global.ini` and replace the corresponding code patch with the following:\n     ```\n     B:\"ANSI Color RGB\"=00000040\n      07 36 42 00 dc 32 2f 00 85 99 00 00 b5 89 00 00 26 8b d2 00 d3 36 82 00 2a a1 98 00 ee e8 d5 00\n      00 2b 38 00 cb 4b 16 00 58 6e 75 00 65 7b 83 00 83 94 96 00 6c 71 c4 00 93 a1 a1 00 fd f6 e3 00\n     ```\n\n### iTerm2, Vim, Tmux and Securecrt for Mac\n#### Configuration for iTerm2\n0. Reference: [iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + Powerlevel9k - (macOS)](https://gist.github.com/kevin-smets/8568070)\n0. Install iTerm2: `brew cask install iterm2`\n0. Install `Oh My Zsh`    \n    ```\n    sh -c \"$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)\" \n    ```\n    After installation, open `~/.zshrc` and set `ZSH_THEME=\"af-magic\"`.\n0. Install Powerline fonts (Meslo Font)\n    - Download Meslo font from the [github link](https://github.com/powerline/fonts/blob/master/Meslo%20Slashed/Meslo%20LG%20M%20Regular%20for%20Powerline.ttf) and install it.   \n    - Set this font in iTerm2 (15px is okay) : `(iTerm -\u003e Preferences -\u003e Profiles -\u003e Text -\u003e Change Font)`\n0. Set Terminal Emulation: in `Preferences -\u003e Profiles -\u003e Terminal`, under `\"Terminal Emulation\"` you have `\"Report Terminal Type:\"` set to `xterm-256color.`\n0. Restart iTerm2 for all changes to take effect.\n\n#### Configuration for Vim\nThe same as [Vim Configuration for Ubuntu](#configuration-for-vim).\n\n#### Configuration for Tmux\n0. Copy `tmux.conf_mac` to `~/.tmux.conf`\n\n#### Configuration for SecureCrt\n0. Install SecureCrt\n0. Set Terminal Emulation: in `Options -\u003e Global Options -\u003e Default Session -\u003e Edit Default Settings -\u003e Terminal -\u003e Emulation`, choose `Xterm` and `ANSI Color` under `Emulation options`.\n0. Set color scheme to [solarized dark](https://gist.github.com/schmrlng/737c4a1672442bd15b60): open file `~/Library/Application Support/VanDyke/SecureCRT/Config/Global.ini` and replace the corresponding code patch with the following:\n\n     ```\n     B:\"ANSI Color RGB\"=00000040\n      07 36 42 00 dc 32 2f 00 85 99 00 00 b5 89 00 00 26 8b d2 00 d3 36 82 00 2a a1 98 00 ee e8 d5 00\n      00 2b 38 00 cb 4b 16 00 58 6e 75 00 65 7b 83 00 83 94 96 00 6c 71 c4 00 93 a1 a1 00 fd f6 e3 00\n     ```\n##\n### Some Notes on the Plug-ins of Vim\n0. [The NERD tree : A tree explorer plugin for navigating the filesystem](http://www.vim.org/scripts/script.php?script_id=1658).  \nThe NERD tree allows you to explore your filesystem and to open files and directories. It presents the filesystem to you in the form of a tree which you manipulate with the keyboard and/or mouse. It also allows you to perform simple filesystem operations.\n    ```\n    # We use \u003cF3\u003e to toggle the tree explorer\n    nmap \u003cF3\u003e :NERDTreeToggle\u003ccr\u003e\n    ```\n0. [Tagbar : Display tags of the current file ordered by scope](http://www.vim.org/scripts/script.php?script_id=3465)  \nTagbar is a Vim plugin that provides an easy way to browse the tags of the current file and get an overview of its structure. It does this by creating a sidebar that displays the ctags-generated tags of the current file, ordered by their scope. This means that for example methods in C++ are displayed under the class they are defined in.\n    ```\n    # We use \u003cF4\u003e to toggle the tree explorer\n    nmap \u003cF4\u003e :TagbarToggle\u003cCR\u003e\n    ```\n\n0. [The CtrlP Plugin](https://github.com/ctrlpvim/ctrlp.vim)  \nFull path fuzzy file, buffer, mru, tag, ... finder for Vim.\nYou can run the follow command to invoke it\n    ```\n    \u003cctrl\u003e+p\n    ```\n0. [The Vim-fugitive Plugin](https://github.com/tpope/vim-fugitive)  \nfugitive.vim may very well be the best Git wrapper of all time.\n\n\n0. The SnipMate Plugin  \nSnipMate aims to provide support for textual snippets, similar to TextMate or other Vim plugins like UltiSnips. \nTo install SnipMat plugin, you have to install some dependence\n    ````\n    \" Plugin for snipmate\n    Plugin 'MarcWeber/vim-addon-mw-utils'\n    Plugin 'tomtom/tlib_vim'\n    Plugin 'garbas/vim-snipmate'\n    Plugin 'honza/vim-snippets' \" Optional\n    ````\n\nHope you enjoy programming with Vim and Tmux. \n\n**Last Updated: April 23, 2017**\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguanyingc%2Fvim_tmux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguanyingc%2Fvim_tmux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguanyingc%2Fvim_tmux/lists"}