dotfiles/nvim/init.vim

96 lines
2.0 KiB
VimL

"Visual Stuff
"load plugins
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=/home/oct2pus/.local/share/dein/repos/github.com/Shougo/dein.vim
" Required:
if dein#load_state('/home/oct2pus/.local/share/dein')
call dein#begin('/home/oct2pus/.local/share/dein')
" Let dein manage dein
" Required:
call dein#add('/home/oct2pus/.local/share/dein/repos/github.com/Shougo/dein.vim')
" Add or remove your plugins here like this:
call dein#add('dag/vim-fish')
call dein#add('scrooloose/nerdtree')
call dein#add('itchyny/lightline.vim')
call dein#add('chriskempson/base16-vim')
call dein#add('daviesjamie/vim-base16-lightline')
call dein#add('fatih/vim-go')
call dein#add('tpope/vim-endwise')
call dein#add('vim-ruby/vim-ruby')
call dein#add('tpope/vim-fugitive')
call dein#add('Shougo/deoplete.nvim')
" call dein#add('andmatand/vim-pico8-syntax')
call dein#add('Bakudankun/PICO-8.vim')
call dein#add('mhartington/oceanic-next')
" Required:
call dein#end()
call dein#save_state()
endif
" Required:
filetype plugin indent on
syntax enable
" If you want to install not installed plugins on startup.
if dein#check_install()
call dein#install()
endif
"End dein Scripts-------------------------
set ruler
set cmdheight=1
set laststatus=2
set noshowmode
set t_Co=256
syntax enable
set mouse=a
set nu
set background=dark
"Highlight
"set colorcolumn=80
"Disable Swap Files
set nobackup
set nowb
set noswapfile
"Use spaces instead of tabs
"set expandtab
"Be smart when using tabs ;)
set smarttab
"1 tab == 4 spaces
set shiftwidth=4
set tabstop=4
"Use system clipboard
set clipboard=unnamedplus
"NERDTree stuff
"Bind Nerdtree to open/close on ^n
map <C-A-n> :NERDTreeToggle<CR>
"Close vim if the only window left open is a NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
"lightline
let g:lightline = {
\ 'colorscheme': 'base16'
\ }
"deoplete
let g:deoplete#enable_at_startup=1