Created
August 12, 2020 15:34
-
-
Save mosuka/47f4eb44d0e62c21a5b1e083b6b30d61 to your computer and use it in GitHub Desktop.
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
" - For Neovim: stdpath('data') . '/plugged' | |
" - Avoid using standard Vim directory names like 'plugin' | |
call plug#begin('~/.vim/plugged') | |
" Make sure you use single quotes | |
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align | |
Plug 'junegunn/vim-easy-align' | |
" Any valid git URL is allowed | |
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-master 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' } | |
Plug 'preservim/nerdtree' | |
Plug 'tpope/vim-fugitive' | |
" Async Language Server Protocol plugin for vim8 and neovim | |
Plug 'prabirshrestha/vim-lsp' | |
Plug 'mattn/vim-lsp-settings' | |
Plug 'prabirshrestha/asyncomplete.vim' | |
Plug 'prabirshrestha/asyncomplete-lsp.vim' | |
Plug 'mattn/vim-lsp-icons' | |
Plug 'hrsh7th/vim-vsnip' | |
Plug 'hrsh7th/vim-vsnip-integ' | |
" Initialize plugin system | |
call plug#end() | |
set termwinsize=10x0 | |
set encoding=utf-8 | |
set fileencodings=iso-2022-jp,euc-jp,sjis,utf-8 | |
set fileformats=unix,dos,mac | |
syntax enable | |
set smartindent | |
set clipboard+=unnamed | |
if has('persistent_undo') | |
let undo_path = expand('~/.vim/undo') | |
exe 'set undodir=' .. undo_path | |
set undofile | |
endif | |
set hlsearch | |
set incsearch | |
set wildmenu | |
set number | |
set cursorline | |
set laststatus=2 | |
set statusline=%<%f\ %h%m%r%{fugitive#statusline()}%=%-14.(%l,%c%V%)\ %P | |
" NERDTree | |
nnoremap <silent><C-e> :NERDTreeToggle<CR> | |
" switch buffer | |
nnoremap <silent> <C-j> :bprev<CR> | |
nnoremap <silent> <C-k> :bnext<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment