Neovim config
Install dependencies:
- python[2,3]
- python[2,3]-pip
- python[2,3] -m pip install --user pynvim
- nodejs
- npm install -g neovim
- npm install -g typescript (optionally)
- [pkgmng] install xsel, ccls, powerline-fonts, nerd-fonts, fzf, ripgrep, universal-ctags-git, the_silver_searcher, fd, bat
More usefull standart key bindings for Vim
Go to file from import or required!!! - press under cursor - open file in the new tab - open file in the vertical split (cause I map It)
Recording in VIM!!!
<q-[char]> - start recording. In this case all you type will be saved in
register (with commands you do). E.g. or
<@ - [char]> - repeat this record. E.g. <@-p> or <@-q>
- turn off recording
Center screen on the current string
To upper/lower case. Mark frase and press You must do it in the visual mode - touppercase - tolowercase
SCROLL SCREEN - 1 string down - 1/2 screen down - 1 string up - 1/2 screen up
- create new window - windows navigation or :split - create window`s split, i.e. open same file on the another window
- delete whole string and start insert mode - delete word and start insert mode
- enter to the visual mode (select a character) - select whole string existing selection - repeat previous selection!!! - select current paragraph (function is a paragraph too!!!)
</> - search a string - go to next found word - go to previous found word <f-[char]> - forward finding a letter starts with [char] in the same string <F-[char]> - backward finding a letter in the same string <t-[char]> and <T-[char]> - the same action, but include [char] character <;> - go to the next/previous letter in the same string
<%> - go to pair character, i.e. (), {}, [] etc.
<*> - mark all words like word under cursor - go to the next comparison :noh - light out all marked words
- delete word <d-^> - delete from current to start of string <d-$> - delete from current to end of string <d-t-[char]> - delete from character under cursor to [char] (not include) <d-f-[char]> - same action but include [char] <y-t-[char]> and <y-f-[char]> - same but copy instead delete
Marks
<m-[char in low case]> - create you own local mark
<m-[char in up case]> - create you own GLOBAL mark
<-[char]> - go to the mark [char] <
-.> - go to the place that you edited last time
- go to the next Vim tab - go to the previous Vim tab
Actions with Vim REGISTERS!!!!! <"-[reg_name]-y> - copy data to the [reg_name] register [reg_name] - insert data from [reg_name] register in INSERT MODE <">[reg_name][pP] - insert data from [reg_name] register in EX MODE after[p]/before[P] cursor. For example: "ap :reg [reg_name] - show content of [reg_name] register
BUFFERS :ls - show all existing buffers :bdelete <buff_number> | <buff_name> - delete buffer
IMPORTANT!!!!! To support 256 colors in Vim you should set up variable in .bashrc: export TERM=xterm-256color