ibook
Ctrlk
  • README
  • cheatsheet
  • vim
    • nvim
    • install
    • color
    • plugins
    • tricky
    • viml
    • windows
    • troubleshooting
  • devops
  • jenkins
  • virtualization
  • ai
  • osx
  • linux
  • programming
  • tools
  • quotes
  • english
Powered by GitBook
On this page

vim

  • check where vim executable package

  • check vimdoc with keyword

  • cursor and cursor shape

  • vimrc examples

reference:

  • mhinz/vim-galore | Vim 从入门到精通

  • * Vim help files

  • mhinz/vim-galore

  • Bram Moolenaar

  • vim:tip

  • Best Vim Tips

  • Search for visually selected text

  • Mastering Vim Grammar

  • Syntax highlighting is extremely slow when scrolling up in recent version (v8.0.1599) #2712

  • Slow vim in huge projects

  • Setting up Vim for YAML editing

check where vim executable package

check vimdoc with keyword

  • or

cursor and cursor shape

[!NOTE|label:references:]

  • cursor shape

    • mode settings:

      • t_SI = INSERT mode : let &t_SI.="\e[5 q"

      • t_SR = REPLACE mode : let &t_SR.="\e[4 q"

      • t_EI = NORMAL mode (ELSE) : let &t_EI.="\e[1 q"

    • cursor settings:

      • 1 -> blinking block

      • 2 -> solid block

      • 3 -> blinking underscore

      • 4 -> solid underscore

      • 5 -> blinking vertical bar

      • 6 -> solid vertical bar

  • andyfowler/.vimrc

  • Change cursor shape in different modes

  • Vim change block cursor when in insert mode

  • Configuring the cursor

  • :help guicorsor

  • * iMarslo : redirect message into file

  • revert cursor shape when exit vim/nvim

guicursor

guicursor

cursorcolumn

[!NOTE|label:references:]

  • Setting Vim cursorline colors?

vimrc examples

  • reiter/.vim-files/vimrc

  • lilydjwg/dotvim |依云 - lilydjwg

  • Yggdroot/dotvim

Previousshell:folderNextnvim

Last updated 5 months ago

:echo v:progpath
:helpgrep <keyword>

" i.e.
:helpgrep slow
:echo $VIM
autocmd VimLeave * silent !echo -ne "\e[6 q"
$ /Applications/MacVim.app/Contents/bin/mvim -u NONE \
                                             -c 'redir > ~/Desktop/guicursor.txt' \
                                             -c 'echo &guicursor' \
                                             -c 'redir END' \
                                             -c 'q'
$ cat ~/Desktop/guicursor.txt
n-v-c:block-Cursor/lCursor,ve:ver35-Cursor,o:hor50-Cursor,i-ci:ver25-Cursor/lCursor,r-cr:hor20-Cursor/lCursor,sm:block-Cursor-blinkwait175-blinkoff150-blinkon175

# after modified
$ /Applications/MacVim.app/Contents/bin/mvim -c 'redir! > ~/Desktop/guicursor.txt' \
                                             -c 'echo &guicursor' \
                                             -c 'redir END' \
                                             -c 'q'
$ cat ~/Desktop/guicursor.txt
a:hor10-Cursor-blinkon0,i-r-c-ci-cr-o:hor10-iCursor-blinkon0,n:hor10-Cursor-blinkwait700-blinkon400-blinkoff250,v-ve:block-Cursor
set cursorcolumn
autocmd InsertEnter * highlight CursorColumn ctermfg=White ctermbg=Yellow cterm=bold guifg=white guibg=yellow gui=bold
autocmd InsertLeave * highlight CursorColumn ctermfg=Black ctermbg=Yellow cterm=bold guifg=Black guibg=yellow gui=NONE

" or simplely via
set cursorcolumn
highlight CursorColumn ctermfg=White ctermbg=gray cterm=bold guifg=white guibg=gray gui=bold