Last active
May 20, 2021 08:52
-
-
Save aleksseven/18d80524003868586bbe4cdafca5584a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# add the repository | |
1. sudo add-apt-repository ppa:neovim-ppa/unstable | |
2. sudo apt-get update | |
3. sudo apt-get install neovim | |
4. Setup init.vim with "nvim" command. | |
5. Press : | |
6. After execute :call mkdir(stdpath('config'), 'p') | |
# this command create a directory to hold the init.vim file | |
7. Install vim-plug | |
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ | |
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' | |
# see https://github.com/junegunn/vim-plug | |
8. And then execute :exe 'edit '.stdpath('config').'/init.vim' (Optional) | |
#create an init.vim file | |
# Other methor for crete an init.vim file is nvim ~/.config/nvim/init.vim (Recommended) | |
9. Add plugins | |
nvim ~/.config/nvim/init.vim | |
# Example | |
call plug#begin('~/.config/nvim/plugged') " OR call plug#begin(stdpath('config') . '/plugged') | |
Plug 'junegunn/vim-easy-align' | |
Plug 'https://github.com/junegunn/vim-github-dashboard.git' | |
" Multiple Plug commands can be written in a single line using | separators | |
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' | |
" On-demand loading | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'tpope/vim-fireplace', { 'for': 'clojure' } | |
" Using a non-default branch | |
Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' } | |
" Using a tagged release; wildcard allowed (requires git 1.9.2 or above) | |
Plug 'fatih/vim-go', { 'tag': '*' } | |
" Plugin options | |
Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' } | |
" Plugin outside ~/.vim/plugged with post-update hook | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
" Unmanaged plugin (manually installed and updated) | |
Plug '~/my-prototype-plugin' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'Shougo/vimproc.vim', { 'do': 'make' } | |
Plug 'ycm-core/YouCompleteMe', { 'do': './install.py' } | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' } | |
call plug#end() | |
9. Finally run :PlugInstall | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment