vim-tmux-setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
vim-tmux-setup [2024/02/19 19:32] – created steve.wangvim-tmux-setup [2024/02/25 18:51] (current) – [Configuration] steve.wang
Line 4: Line 4:
 ===== About The Two Programs ==== ===== About The Two Programs ====
  
-Vim is a editor. [[https://www.vim.org/|Click here to learn more about it]]+Vim is a editor. [[https://www.vim.org/|Click here to learn more about it]]
 TMUX is a terminal multiplexer. We will use it to send code between terminal windows. [[https://github.com/tmux/tmux/wiki|Click here to learn more about it]] TMUX is a terminal multiplexer. We will use it to send code between terminal windows. [[https://github.com/tmux/tmux/wiki|Click here to learn more about it]]
  
Line 26: Line 27:
 {{ :vim-clean-install-screenshot.png?800 |}} {{ :vim-clean-install-screenshot.png?800 |}}
 To quit vim press these buttons. Do not type the plusses "+" but type the rest. No capital letters. To quit vim press these buttons. Do not type the plusses "+" but type the rest. No capital letters.
-CTRL/CMD + c + : + ! + q+CTRL+ c + : + ! + q
  
 More usage instructions about VIM will be given later. More usage instructions about VIM will be given later.
Line 48: Line 49:
 A useful tool to automatically configure TMUX and VIM to work correctly for Konduktiva can be found on the Konduktiva Github. A useful tool to automatically configure TMUX and VIM to work correctly for Konduktiva can be found on the Konduktiva Github.
  
-DISCLAIMER: The tool will create a vimrc(vim configuration) if it does not find one in your system and in the correct location. If it does find a vimrc file, it will bind shortcuts for vim to the buttons F3, F8,, F9, F11, <SPACE + ;>, <SPACE+ ->, if it does not find anything mapped to them. These configuration will be added to the very end of the vimrc file so they can be easily removed. The tool will also create a tslime.vim file in your plugins folder inside your vim folder if it does not detect one. The code could potentially have issue and may make breaking changes. If you choose to use the code, the author of the code is in no way responsible for anything caused by the code.+DISCLAIMER: The tool will create a vimrc(vim configuration) file if it does not find one in your system and in the correct location. If it does find a vimrc file, it will bind shortcuts for vim to the buttons F3, F8,, F9, F11, <SPACE + ;>, <SPACE+ ->, if it does not find anything bound to them. These configuration will be added to the very end of the vimrc file so they can be easily removed. The tool will also create a tslime.vim file in your plugins folder inside your vim folder if it does not detect one. The code could potentially have issue and may make breaking changes. If you choose to use the code, the author of the code is in no way responsible for anything caused by the code.
  
 [[https://github.com/renickbell/konduktiva/blob/main/auto-configure-vim-tmux.js|If you have read the disclaimer, here is the download to the code]] [[https://github.com/renickbell/konduktiva/blob/main/auto-configure-vim-tmux.js|If you have read the disclaimer, here is the download to the code]]
  
-After downloading the code, open a terminal window and navigate to the directory where you have installed the code. [[Here is a simple resource for navigating the terminal|https://gist.github.com/bradtraversy/cc180de0edee05075a6139e42d5f28ce#file-system-navigation]]. After you have navigated using the terminal to the right place, run this:+After downloading the code, open a terminal window and navigate to the directory where you have installed the code. [[https://gist.github.com/bradtraversy/cc180de0edee05075a6139e42d5f28ce#file-system-navigation|Here is a simple resource for navigating the terminal]]. After you have navigated using the terminal to the right place, run this:
 <code> <code>
 node auto-configure-vim-tmux.js node auto-configure-vim-tmux.js
Line 69: Line 70:
  
 Here is some basic knowledge about vim: Here is some basic knowledge about vim:
-Press i to enter insert mode to start typing+Press i to enter insert mode to start typing (insert mode) 
 +Press escape to get out of insert mode. 
 + 
 +Type vimtutor to learn more about vim. 
 + 
 +==== TMUX ==== 
 + 
 +Useful TMUX shortcuts: 
 +<csv> 
 +Keys, action, 
 +CTRL + B + C, new pane, 
 +CTRL + B + J, last pane 
 +CTRL + B + K, next pane 
 +</csv> 
 + 
 +Learn more about tmux [[https://github.com/tmux/tmux/wiki/Getting-Started|here]] 
 + 
 +===== Working With Konduktiva ===== 
 + 
 +What I like to do is have two terminals side by side in half screen. Then, the two terminal windows will have TMUX running in them. My VIM editor will be on one side and nodejs with Konduktiva running in it will be on the right. Like so: 
 +{{ :vim-and-tmux-konduktiva-interface.png?800 |}} 
 + 
 +I can send things to Konduktiva from vim by pressing the enter key: 
 +<html> 
 +<img style="width: 80%; height: auto" src='http://konduktiva.org/lib/exe/fetch.php?media=using-tmux-vim-konduktiva-interface.gif'/> 
 +</html> 
 + 
 +[[first_steps|Click here to start learning about Konduktiva]]
  • vim-tmux-setup.1708399929.txt.gz
  • Last modified: 2024/02/19 19:32
  • by steve.wang