About: Change cursor shape in different modes   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

First make a script gnome-terminal-cursor-shape.sh #!/bin/sh DEFAULTPROF=`dconf read /org/gnome/terminal/legacy/profiles:/default` DEFAULTPROF=`echo "$DEFAULTPROF" | sed -e "s/^'/:/" -e "s/'$//"` dconf write /org/gnome/terminal/legacy/profiles:/$DEFAULTPROF/cursor-shape "'$1'" Make it executable & put it in /usr/local/bin Next, add this to .vimrc if has("autocmd") au InsertEnter * \ if v:insertmode == 'i' | \ silent execute "!gnome-terminal-cursor-shape.sh ibeam" | \ elseif v:insertmode == 'r' | \ silent execute "!gnome-terminal-cursor-shape.sh underline" | \ endif au InsertLeave * silent execute "!gnome-terminal-cursor-shape.sh block" au VimLeave * silent execute "!gnome-terminal-cursor-shape.sh block" endif

AttributesValues
rdfs:label
  • Change cursor shape in different modes
rdfs:comment
  • First make a script gnome-terminal-cursor-shape.sh #!/bin/sh DEFAULTPROF=`dconf read /org/gnome/terminal/legacy/profiles:/default` DEFAULTPROF=`echo "$DEFAULTPROF" | sed -e "s/^'/:/" -e "s/'$//"` dconf write /org/gnome/terminal/legacy/profiles:/$DEFAULTPROF/cursor-shape "'$1'" Make it executable & put it in /usr/local/bin Next, add this to .vimrc if has("autocmd") au InsertEnter * \ if v:insertmode == 'i' | \ silent execute "!gnome-terminal-cursor-shape.sh ibeam" | \ elseif v:insertmode == 'r' | \ silent execute "!gnome-terminal-cursor-shape.sh underline" | \ endif au InsertLeave * silent execute "!gnome-terminal-cursor-shape.sh block" au VimLeave * silent execute "!gnome-terminal-cursor-shape.sh block" endif
Version
  • 7(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1621(xsd:integer)
Category
  • Integration
Author
  • Weltensegler
Subpage
  • /200903
Complexity
  • basic
Created
  • 2009-03-28(xsd:date)
ID
  • 1622(xsd:integer)
NEXT
  • 1623(xsd:integer)
abstract
  • First make a script gnome-terminal-cursor-shape.sh #!/bin/sh DEFAULTPROF=`dconf read /org/gnome/terminal/legacy/profiles:/default` DEFAULTPROF=`echo "$DEFAULTPROF" | sed -e "s/^'/:/" -e "s/'$//"` dconf write /org/gnome/terminal/legacy/profiles:/$DEFAULTPROF/cursor-shape "'$1'" Make it executable & put it in /usr/local/bin Next, add this to .vimrc if has("autocmd") au InsertEnter * \ if v:insertmode == 'i' | \ silent execute "!gnome-terminal-cursor-shape.sh ibeam" | \ elseif v:insertmode == 'r' | \ silent execute "!gnome-terminal-cursor-shape.sh underline" | \ endif au InsertLeave * silent execute "!gnome-terminal-cursor-shape.sh block" au VimLeave * silent execute "!gnome-terminal-cursor-shape.sh block" endif If you use more than one profile in gnome-terminal, you might have to adapt this to your profiles.
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software