neovim: Add basic config

pull/1/head
earnest ma 2021-11-05 06:46:40 -04:00
parent bcec804f1a
commit 7391823366
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
1 changed files with 44 additions and 0 deletions

View File

@ -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()