* Fix cursorshape and true color support
* added some docs
@@ -13,11 +13,32 @@ etc..
|
||||
|
||||
Then main reason to choose Konsole terminal emulator is its true-color support and its configurable keybinding mechanism
|
||||
|
||||
True color support for nvim is enabled by default.
|
||||
This repo also contains desktop configuration files and resized icons required for linux desktop environments
|
||||
|
||||
Cursor shape will change according to the mode.
|
||||
## About true color support and cursor shape.
|
||||
|
||||
Also, Desktop configuration files and resized icons are also included
|
||||
### True color support
|
||||
|
||||
Before [ this ]( https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 ) breaking change,
|
||||
Truecolor support was working by setting `NVIM_TUI_ENABLE_TRUE_COLOR` environment variable.
|
||||
|
||||
Now , it changed to `set termguicolors` vim command.
|
||||
|
||||
### Cursor shape
|
||||
|
||||
Before [ this ]( https://github.com/neovim/neovim/wiki/Following-HEAD#20160210 ) breaking change,
|
||||
Cursor shape change was working by
|
||||
* Setting `NVIM_TUI_ENABLE_CURSOR_SHAPE` environment variable and,
|
||||
* executing vim command `let &t_SI = "\<Esc>]50;CursorShape=1\x7" | let &t_SR = "\<Esc>]50;CursorShape=2\x7" | let &t_EI = "\<Esc>]50;CursorShape=0\x7"` inside vim.
|
||||
|
||||
Now, it is changed to following vim command
|
||||
* `set guicursor=n-c:block,i-ci-ve:ver40,r-cr-v:hor20,o:hor50,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor,sm:block-blinkwait175-blinkoff150-blinkon175`
|
||||
|
||||
Neovim uses some environment variables such as `VTE_VERSTION` to detect vte based terminal such as gnome-termnal, `KONSOLE_*` environment variables to detect konsole terminal
|
||||
|
||||
Since konsole is not compatible with [ DECSCUSR ]( http://vt100.net/docs/vt510-rm/DECSCUSR ) sequences, nvim talks to konsole in a different way.
|
||||
|
||||
if we are running nvim-konsole from gnome-termnal , `unset VTE_VERSTION` is required for proper working of cursor shape. It is done by default by `nvim-konsole` script
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -44,3 +65,8 @@ Then we can fix this in the following way
|
||||
|
||||
### Screen shot
|
||||

|
||||
|
||||
|
||||
### Related links
|
||||
* My Neovim config files ( https://github.com/harish2704/dotFiles/blob/master/home/.config/nvim/init.vim )
|
||||
* A fully configurable file manager called [ SpaceFM ]( http://ignorantguru.github.io/spacefm/ ). Those who like Vim will also like this
|
||||
|
||||
@@ -6,14 +6,6 @@ appDir="$(dirname $thisFile)/..";
|
||||
# Disable Ctrl-S
|
||||
stty stop '' -ixoff
|
||||
|
||||
# Env varibles are not used becaues, they are embeded in konsole profile
|
||||
# export TERM=Konsole-256color
|
||||
export INPUTRC="${appDir}/inputrc_nvim"
|
||||
# export NVIM_TUI_ENABLE_TRUE_COLOR=1
|
||||
# export NVIM_TUI_ENABLE_CURSOR_SHAPE=1
|
||||
|
||||
# For CursorShape management in Konsole
|
||||
cursorShapeCmd='let &t_SI = "\<Esc>]50;CursorShape=1\x7" | let &t_SR = "\<Esc>]50;CursorShape=2\x7" | let &t_EI = "\<Esc>]50;CursorShape=0\x7"';
|
||||
|
||||
konsole --nofork --dograb --hide-tabbar --hide-menubar --profile nvim -e /usr/bin/nvim --cmd "$cursorShapeCmd" $@;
|
||||
unset VTE_VERSION;
|
||||
konsole --nofork --dograb --hide-tabbar --hide-menubar --profile nvim -e /usr/bin/nvim "$@" &
|
||||
# konsole --profile nvim
|
||||
|
||||
@@ -9,7 +9,6 @@ CustomCursorColor=0,255,0
|
||||
UseCustomCursorColor=true
|
||||
|
||||
[General]
|
||||
Environment=TERM=konsole-256color,NVIM_TUI_ENABLE_TRUE_COLOR=1,NVIM_TUI_ENABLE_CURSOR_SHAPE=1,
|
||||
Icon=neovim-mark
|
||||
LocalTabTitleFormat=%w
|
||||
Name=nvim
|
||||
|
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 278 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 278 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 278 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 278 KiB |
|
Before Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 278 KiB |
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="602px" height="734px" viewBox="0 0 602 734" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
|
||||
<title>neovim-mark@2x</title>
|
||||
<description>Created with Sketch (http://www.bohemiancoding.com/sketch)</description>
|
||||
<defs>
|
||||
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
|
||||
<stop stop-color="#16B0ED" stop-opacity="0.800235524" offset="0%"></stop>
|
||||
<stop stop-color="#0F59B2" stop-opacity="0.83700023" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-2">
|
||||
<stop stop-color="#7DB643" offset="0%"></stop>
|
||||
<stop stop-color="#367533" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-3">
|
||||
<stop stop-color="#88C649" stop-opacity="0.8" offset="0%"></stop>
|
||||
<stop stop-color="#439240" stop-opacity="0.84" offset="100%"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
|
||||
<g id="mark-copy" sketch:type="MSLayerGroup" transform="translate(2.000000, 3.000000)">
|
||||
<path d="M0,155.5704 L155,-1 L154.999997,727 L0,572.237919 L0,155.5704 Z" id="Left---green" fill="url(#linearGradient-1)" sketch:type="MSShapeGroup"></path>
|
||||
<path d="M443.060403,156.982405 L600,-1 L596.818792,727 L442,572.219941 L443.060403,156.982405 Z" id="Right---blue" fill="url(#linearGradient-2)" sketch:type="MSShapeGroup" transform="translate(521.000000, 363.500000) scale(-1, 1) translate(-521.000000, -363.500000) "></path>
|
||||
<path d="M154.986294,0 L558,615.189696 L445.224605,728 L42,114.172017 L154.986294,0 Z" id="Cross---blue" fill="url(#linearGradient-3)" sketch:type="MSShapeGroup"></path>
|
||||
<path d="M155,283.83232 L154.786754,308 L31,124.710606 L42.4619486,113 L155,283.83232 Z" id="Shadow" fill-opacity="0.13" fill="#000000" sketch:type="MSShapeGroup"></path>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.2 KiB |