cocopax.blogg.se

Vim multiple cursors
Vim multiple cursors








vim multiple cursors

If you use more than one profile in gnome-terminal, you might have to adapt this to your profiles.įor the Gnome-Terminal (version ≥3.16) \ silent execute "!gnome-terminal-cursor-shape.sh underline" |Īu InsertLeave * silent execute "!gnome-terminal-cursor-shape.sh block"Īu VimLeave * silent execute "!gnome-terminal-cursor-shape.sh block" \ silent execute "!gnome-terminal-cursor-shape.sh ibeam" | Make it executable & put it in /usr/local/bin

vim multiple cursors

if has("autocmd")Īu InsertEnter * silent execute "!gconftool-2 -type string -set /apps/gnome-terminal/profiles/Default/cursor_shape ibeam"Īu InsertLeave * silent execute "!gconftool-2 -type string -set /apps/gnome-terminal/profiles/Default/cursor_shape block"Īu VimLeave * silent execute "!gconftool-2 -type string -set /apps/gnome-terminal/profiles/Default/cursor_shape ibeam"įirst make a script gnome-terminal-cursor-shape.shĭEFAULTPROF=`dconf read /org/gnome/terminal/legacy/profiles:/default`ĭEFAULTPROF=`echo "$DEFAULTPROF" | sed -e "s/^'/:/" -e "s/'$//"`ĭconf write /org/gnome/terminal/legacy/profiles:/$DEFAULTPROF/cursor-shape "'$1'" Upgrade your terminal and use the version above instead. This makes your cursor change in all open terminals. Set IBeam shape in insert mode, underline shape in replace mode and block shape in normal mode.įor the Gnome-Terminal (version 2.26) This works with multiple tabs and windows.įor VTE compatible terminals (urxvt, st, xterm, gnome-terminal 3.x, Konsole KDE5 and others) and wsltty let &t_SI = "\[6 q" NOTE: These do not work with the default terminal.įor Konsole in KDE4 let &t_SI = "\]50 CursorShape=1\x7" In theory, the escape sequence could be used for tmux in any terminal. " 6 -> solid vertical bar For iTerm2 on OS X let &t_SI = "\]50 CursorShape=1\x7"įor tmux running in iTerm2 on OS X let &t_SI = "\Ptmux \\]50 CursorShape=1\x7\\\" Let &t_EI.="\e[1 q" "EI = NORMAL mode (ELSE)

  • 8 For the Gnome-Terminal (version ≥3.16).
  • 6 For the Gnome-Terminal (version 2.26).
  • 5 For VTE compatible terminals (urxvt, st, xterm, gnome-terminal 3.x, Konsole KDE5 and others) and wsltty.









  • Vim multiple cursors