function! myspacevim#after() abort unmap unmap , endfunction " https://github.com/liuchengxu/space-vim/issues/356 " https://github.com/liuchengxu/vim-better-default/blob/d6239473fa22429564efdd72d7e4407c6b744718/plugin/default.vim#L103-L123 " Change cursor shape for iTerm2 on macOS { " bar in Insert mode " inside iTerm2 if $TERM_PROGRAM =~# 'iTerm' let &t_SI = "\]50;CursorShape=1\x7" let &t_SR = "\]50;CursorShape=2\x7" let &t_EI = "\]50;CursorShape=0\x7" endif " inside tmux if exists('$TMUX') let &t_SI = "\Ptmux;\\]50;CursorShape=1\x7\\\" let &t_SR = "\Ptmux;\\]50;CursorShape=2\x7\\\" let &t_EI = "\Ptmux;\\]50;CursorShape=0\x7\\\" endif " inside neovim if has('nvim') let $NVIM_TUI_ENABLE_CURSOR_SHAPE=2 endif " }