50 lines
1.1 KiB
VimL
Raw Permalink Normal View History

2020-04-05 21:19:19 +02:00
" Install vim-plug if it is not already installed, for
" Portability's sake
2020-04-24 16:36:35 +02:00
if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
silent !curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
2020-04-05 21:19:19 +02:00
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" Plugins will be downloaded under the specified directory.
2020-04-24 16:36:35 +02:00
call plug#begin('~/.config/nvim/plugged')
2020-04-05 21:19:19 +02:00
" Declare the list of plugins.
Plug 'itchyny/lightline.vim'
2020-04-07 23:22:20 +02:00
Plug 'tpope/vim-vinegar'
Plug 'tpope/vim-surround'
2020-04-05 21:19:19 +02:00
Plug 'tpope/vim-fugitive'
Plug 'ap/vim-css-color'
Plug 'godlygeek/tabular'
Plug 'plasticboy/vim-markdown'
2020-04-05 21:19:19 +02:00
" List ends here. Plugins become visible to Vim after this call.
call plug#end()
2020-04-15 02:22:12 +02:00
" Personal preference stuff
set number
set tabstop=4
set smartcase
set colorcolumn=80
set cursorline
colorscheme industry
" Use mouse
set mouse=a
2020-04-24 16:36:35 +02:00
" set ttymouse=sgr
2020-04-15 02:22:12 +02:00
2020-04-05 21:19:19 +02:00
" Syntax and some plugins
:filetype plugin on
:syntax on
" Set the viki root directory
" let g:wiki_root = '~/vimwiki'
2020-04-05 21:19:19 +02:00
" lightline is installed so this is not necessary
set noshowmode
set laststatus=2
if !has('gui_running')
set t_Co=256
endif