Skip to content

Instantly share code, notes, and snippets.

@zgfif
Last active November 11, 2024 21:12
Show Gist options
  • Save zgfif/f660436cf64428f72d8733f74b7ffb4b to your computer and use it in GitHub Desktop.
Save zgfif/f660436cf64428f72d8733f74b7ffb4b to your computer and use it in GitHub Desktop.
neovim configuration for Windows 11
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>
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