Blog: 2023-06-13: Difference between revisions

From razwiki
Jump to navigation Jump to search
(Created page with "Using vim as a terminal manager = Open vim with terminal = vim -c ':term ++curwin' This also hints at how to open the terminal "fullscreen": :term ++curwin = remap <C-w...")
 
No edit summary
 
Line 15: Line 15:
This is control space. Now to port over lines line the following from my ~/.tmux.conf:
This is control space. Now to port over lines line the following from my ~/.tmux.conf:


<code>
<pre>
bind H resize-pane -L 5
bind H resize-pane -L 5
bind J resize-pane -D 5
bind J resize-pane -D 5
Line 32: Line 32:
bind % split-window -h -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
</code>
</pre>

Latest revision as of 10:32, 13 June 2023

Using vim as a terminal manager

Open vim with terminal

vim -c ':term ++curwin'

This also hints at how to open the terminal "fullscreen":

:term ++curwin

remap <C-w> so that can be used to delete backwards word

set termwinkey=<C-@>

This is control space. Now to port over lines line the following from my ~/.tmux.conf:

bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5

bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind \; join-pane -t 1

bind \\ split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind = select-layout even-vertical
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"