-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(bugfix) fix #5, set cursor shape to vertical bar on leaving vim
why: to distinguish between command and normal modes of vi mode in powershell how: using VimLeave event and guicursor option misc: see :help guicursor links: - neovim/neovim#4867 - microsoft/terminal#4335 tags: cursor,cursor-shape fixes #5
- Loading branch information
1 parent
d5217df
commit b283ad7
Showing
3 changed files
with
50 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
" also see augroups.vim | ||
" cursor ----- {{{ | ||
" Cursor in terminal | ||
" https//vim.fandom.com/wiki/Configuring_the_cursor | ||
" 1 or 0 -> blinking block | ||
" 2 solid block | ||
" 3 -> blinking underscore | ||
" 4 solid underscore | ||
" Recent versions of xterm (282 or above) also support | ||
" 5 -> blinking vertical bar | ||
" 6 -> solid vertical bar | ||
if &term =~ '^xterm' | ||
" normal mode || | ||
" .= means shorthand for appending : see help .= | ||
let &t_EI .= "\<Esc>[1 q" | ||
" replace mode _ | ||
let &t_SR .= "\e[4 q" | ||
" insert mode | | ||
let &t_SI .= "\<Esc>[6 q" | ||
endif | ||
" | ||
" }}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,21 @@ | ||
let mapleader = "\<Space>" | ||
|
||
source $LOCALAPPDATA/nvim/general/augroups.vim | ||
|
||
source $LOCALAPPDATA/nvim/plugs/plugins.vim | ||
source $LOCALAPPDATA/nvim/plugs/coc.vim | ||
source $LOCALAPPDATA/nvim/plugs/lightline_v1.vim | ||
source $LOCALAPPDATA/nvim/plugs/telescope_plug.vim | ||
source $LOCALAPPDATA/nvim/plugs/firenvim.vim | ||
source $LOCALAPPDATA/nvim/plugs/markdown.vim | ||
|
||
source $LOCALAPPDATA/nvim/general/cursor.vim | ||
source $LOCALAPPDATA/nvim/general/general.vim | ||
source $LOCALAPPDATA/nvim/general/leader.vim | ||
source $LOCALAPPDATA/nvim/general/keybindings.vim | ||
|
||
source $LOCALAPPDATA/nvim/languages/languages.vim | ||
"set path+=** | ||
hi Normal ctermbg=none guibg=none | ||
"wrap backspace | ||
set backspace=indent,eol,start | ||
hi Comment gui=italic cterm=italic | ||
hi htmlArg gui=italic cterm=italic | ||
" cursor ----- {{{ | ||
" Cursor in terminal | ||
" https//vim.fandom.com/wiki/Configuring_the_cursor | ||
" 1 or 0 -> blinking block | ||
" 2 solid block | ||
" 3 -> blinking underscore | ||
" 4 solid underscore | ||
" Recent versions of xterm (282 or above) also support | ||
" 5 -> blinking vertical bar | ||
" 6 -> solid vertical bar | ||
if &term =~ '^xterm' | ||
" normal mode || | ||
let &t_EI .= "\<Esc>[1 q" | ||
" replace mode _ | ||
let &t_SR.="\e[4 q" | ||
" insert mode | | ||
let &t_SI .= "\<Esc>[6 q" | ||
endif | ||
" | ||
" }}} | ||
|
||
|