Somed-1 / my_vimrc

My .vimrc file and installation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My config for vim

About

This vimrc contains plugins for autocomplete, my favorite colorschemes, syntax highlighting, nerdtree, nerdcomenter, multiple cursors, useful key mappings

Instalation

Clone repo with git clone https://github.com/Somed-1/my_vimrc.git and move .vimrc file to your root directory
Install Plug manager vim-plug so you can install plugins.
Then you need to install Nodejs version above 16 and yarn gloabaly
Open .vimrc file and enter :PlugInsatll command
Coc Autocomplete extentions for:

  • Python: coc-pyright (:CocInstall coc-pyright)
  • C/C++: coc-clangd (:CocInstall coc-clangd)

    Don't forget to install clangd

  • HTML/CSS: coc-html, coc-css (:CocInstall coc-html coc-css)
  • JavaScript: coc-tsserver (:CocInstall coc-tsserver)
  • Json: coc-json (:CocInstall coc-json)

Cheat sheep

Horizontal movement

  • % - move around two closings ({}, [], (), html tags)
  • $ - end of line
  • _ - start of line (non blank)
  • 0 - start of line
  • f/t - move to character(forward)
  • F/T - move to character(backward)
  • h/l - move cursor n times

Vertical movement

  • % - move around two closings ({}, [], (), html tags)
  • {} - move by paragraphs (blank lines)
  • ctrl + d/u - move down/up half of page
  • : - move to line
  • j/k - move cursor n times
  • z z/t/b - move page based on cursor

Macrosses

  • @l - select []
  • @s - select ""
  • @t - select ()
  • @y - copy (gvim)
  • @p - paste (gvim)

Key mappings

  • - run python file

  • - turn on/off mouse

  • - increase font size (gvim)

  • shift + - decrease font size (gvim)

  • ctrl + arrows - change window size

  • ctrl + h/j/k/l - move around windows

Plugins

NERDtree

  • - open/close NERDtree (directory tree)
  • R - reload directory
  • cd - change curent directory
  • C - move to directory
  • u - back in directory
  • m - open menu
  • ? - open help

NERDcommenter

  • ctrl + _ - comment/uncomment line/lines

About

My .vimrc file and installation


Languages

Language:Vim Script 100.0%