Last active
November 11, 2024 21:12
-
-
Save zgfif/f660436cf64428f72d8733f74b7ffb4b to your computer and use it in GitHub Desktop.
neovim configuration for Windows 11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set number | |
set relativenumber | |
call plug#begin('~/.vim/plugged') | |
Plug 'morhetz/gruvbox' | |
Plug 'vim-airline/vim-airline' | |
Plug 'preservim/nerdtree' | |
Plug 'ryanoasis/vim-devicons' | |
call plug#end() | |
colorscheme gruvbox | |
" Add shortcut ctrl + n - performs :NERDTree | |
nnoremap <C-n> :NERDTree<CR> | |
" Add shortcut ctrl + t - performs :NERDTreeToggle | |
nnoremap <C-t> :NERDTreeToggle<CR> | |
" Add \n hotkey to focus on NERDTree | |
nnoremap <leader>n :NERDTreeFocus<CR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Create file init.vim C:\Users\pasha\AppData\Local\nvim\init.vim | |
2. add commands to init.vim | |
3. run neovim | |
4. run :PlugInstall | |
Aditional commands | |
Reload the file or restart Vim, then you can, | |
:PlugInstall to install the plugins | |
:PlugUpdate to install or update the plugins | |
:PlugDiff to review the changes from the last update | |
:PlugClean to remove plugins no longer in the list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment