neovim: Add basic config
parent
bcec804f1a
commit
7391823366
|
@ -0,0 +1,44 @@
|
|||
set nocompatible
|
||||
|
||||
set showmatch " show matching
|
||||
set ignorecase " case insensitive
|
||||
set mouse=v " middle-click paste
|
||||
|
||||
" search: highlight, incremental
|
||||
set hlsearch
|
||||
set incsearch
|
||||
|
||||
set tabstop=4
|
||||
set softtabstop=4
|
||||
set expandtab
|
||||
set shiftwidth=4
|
||||
set autoindent
|
||||
|
||||
set number
|
||||
|
||||
set wildmode=longest,list
|
||||
|
||||
set cc=80
|
||||
filetype plugin indent on
|
||||
syntax on
|
||||
set mouse=a " enable mouse click
|
||||
set clipboard=unnamedplus " using system clipboard
|
||||
|
||||
filetype plugin on
|
||||
set cursorline " highlight current cursorline
|
||||
set ttyfast " speed up scrolling
|
||||
set backupdir=~/.cache/nvim
|
||||
|
||||
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
|
||||
if empty(glob(data_dir . '/autoload/plug.vim'))
|
||||
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||
endif
|
||||
|
||||
call plug#begin(stdpath('data') . '/plugged')
|
||||
|
||||
Plug 'tpope/vim-fugitive'
|
||||
|
||||
Plug 'editorconfig/editorconfig-vim'
|
||||
|
||||
call plug#end()
|
Loading…
Reference in New Issue