How do you search for a literal string without regex interpretation?
/\Vexact.string
Prefix with \V for very nomagic mode where almost all characters are treated literally.
/\Vexact.string
Prefix with \V for very nomagic mode where almost all characters are treated literally.
:TSInstall python javascript
nvim-treesitter provides improved syntax highlighting, indentation, and code navigation using Tree-sitter parsers.
:PlugInstall
After adding Plug 'author/plugin' to your vimrc between call plug#begin() and call plug#end(), run :PlugInstall to install.
require('which-key').setup()
which-key.
require('lspconfig').pyright.setup{}
Use nvim-lspconfig to configure language servers.
require('gitsigns').setup()
gitsigns.
require('lazy').setup(plugins)
lazy.
:Rg pattern
Use :Rg pattern from fzf.
gcc to toggle line
Comment.
:Git or :G
vim-fugitive provides Git integration.
:10,20w newfile.txt
Use :10,20w newfile.
:%!sort
Use :%!command to filter the entire buffer through a shell command.
:CocInstall coc-json coc-tsserver
coc.
:verbose map <key>
Use :verbose map to see the mapping definition and the file/line where it was set.
<C-r>/ or q/
Press q/ to open search history in a window.
:set tabstop?
Append ? to any option name to query its value.
:redir @a | silent messages | redir END
Use :redir to capture command output.
:!ls
Use :! followed by any shell command.
:g/pattern/p
Use :g/pattern/p to print all matching lines.
:10,20d
Specify a line range before a command.