Blog: 2023-06-13

From razwiki
Jump to navigation Jump to search

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}"