diff --git a/README.md b/README.md index 32fd0df..9aa5d46 100644 --- a/README.md +++ b/README.md @@ -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 = "\]50;CursorShape=1\x7" | let &t_SR = "\]50;CursorShape=2\x7" | let &t_EI = "\]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 ![Screen shot](http://i.giphy.com/l2JInHtGIhatbiuRO.gif "Neovim+Konsole on ubuntu 14.04") + + +### 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 diff --git a/bin/nvim-konsole b/bin/nvim-konsole index afef555..4253339 100755 --- a/bin/nvim-konsole +++ b/bin/nvim-konsole @@ -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 = "\]50;CursorShape=1\x7" | let &t_SR = "\]50;CursorShape=2\x7" | let &t_EI = "\]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 diff --git a/konsole/nvim.profile b/konsole/nvim.profile index 1b7fb5f..673e6c0 100644 --- a/konsole/nvim.profile +++ b/konsole/nvim.profile @@ -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 diff --git a/share/icons/hicolor/128x128/apps/neovim-mark.png b/share/icons/hicolor/128x128/apps/neovim-mark.png index f33f843..63e3bcb 100644 Binary files a/share/icons/hicolor/128x128/apps/neovim-mark.png and b/share/icons/hicolor/128x128/apps/neovim-mark.png differ diff --git a/share/icons/hicolor/16x16/apps/neovim-mark.png b/share/icons/hicolor/16x16/apps/neovim-mark.png index ae88028..6bb3df0 100644 Binary files a/share/icons/hicolor/16x16/apps/neovim-mark.png and b/share/icons/hicolor/16x16/apps/neovim-mark.png differ diff --git a/share/icons/hicolor/256x256/apps/neovim-mark.png b/share/icons/hicolor/256x256/apps/neovim-mark.png index 73dc47e..fac386a 100644 Binary files a/share/icons/hicolor/256x256/apps/neovim-mark.png and b/share/icons/hicolor/256x256/apps/neovim-mark.png differ diff --git a/share/icons/hicolor/32x32/apps/neovim-mark.png b/share/icons/hicolor/32x32/apps/neovim-mark.png index 11df44a..6bb3df0 100644 Binary files a/share/icons/hicolor/32x32/apps/neovim-mark.png and b/share/icons/hicolor/32x32/apps/neovim-mark.png differ diff --git a/share/icons/hicolor/48x48/apps/neovim-mark.png b/share/icons/hicolor/48x48/apps/neovim-mark.png deleted file mode 100644 index ab4d254..0000000 Binary files a/share/icons/hicolor/48x48/apps/neovim-mark.png and /dev/null differ diff --git a/share/icons/hicolor/64x64/apps/neovim-mark.png b/share/icons/hicolor/64x64/apps/neovim-mark.png new file mode 100644 index 0000000..a5e435f Binary files /dev/null and b/share/icons/hicolor/64x64/apps/neovim-mark.png differ diff --git a/share/icons/hicolor/scalable/apps/neovim-mark.svg b/share/icons/hicolor/scalable/apps/neovim-mark.svg new file mode 100644 index 0000000..46c5eb8 --- /dev/null +++ b/share/icons/hicolor/scalable/apps/neovim-mark.svg @@ -0,0 +1,27 @@ + + + neovim-mark@2x + Created with Sketch (http://www.bohemiancoding.com/sketch) + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file