initial commit

This commit is contained in:
Franz Heinzmann (Frando) 2020-07-14 23:33:07 +02:00
commit bcd52055e7
7 changed files with 117 additions and 0 deletions

42
init-neovim.sh Normal file
View file

@ -0,0 +1,42 @@
# setup neovim
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
mkdir -p $HOME/.config/nvim
cat <<EOF >$HOME/.config/nvim/init.vim
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'scrooloose/nerdtree', { }
Plug 'tpope/vim-vinegar'
Plug 'tpope/vim-fugitive'
Plug 'sheerun/vim-polyglot'
Plug 'mxw/vim-jsx'
Plug 'scrooloose/nerdcommenter'
Plug 'NLKNguyen/papercolor-theme'
call plug#end()
set background=dark
!silent colorscheme PaperColor
filetype plugin indent on
set mouse=a
set autoindent
set number
set backspace=2 " Allow backspacing over autoindent, EOL, etc.
set showmatch " Match parentheses
set matchpairs+=<:> " Match parentheses for angle bracket pairs
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set shiftround " Rounds indent to multiple of shiftwidth
set foldlevelstart=99
set hidden
map <F9> :NERDTreeToggle<CR>
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
EOF
nvim +'PlugInstall --sync' +qa