This repository has been archived on 2024-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/vimrc
2021-08-01 15:02:15 -07:00

65 lines
1.9 KiB
VimL

set shell=/bin/bash
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
"My Plugins"
"Plugin 'ervandew/supertab'
Plugin 'Valloric/YouCompleteMe'
Plugin 'flazz/vim-colorschemes'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
"Plugin 'vim-scripts/auto-pairs-gentle'
"Plugin 'luochen1990/rainbow'
"Plugin 'Yggdroot/indentLine'
Plugin 'scrooloose/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
"Plugin 'rakr/vim-one'
Plugin 'maksimr/Lucius2'
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
syntax on
set number
set tabstop=4
set shiftwidth=4
set showcmd
set expandtab
set wildmenu
set incsearch
set hlsearch
set lazyredraw
set autoindent
set smartindent
set splitbelow
set splitright
inoremap {<CR> {<CR>}<ESC><UP>o
set background=dark
colorscheme PaperColor
set t_Co=256
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
command Matlab :set autowrite | :term matlab -nodesktop
"Nerd Tree things
command Treemove :NERDTree | :normal <c-w><c-w>
autocmd vimenter * Treemove
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
if (empty($TMUX))
if (has("nvim"))
"For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 >
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
endif
"For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 >
"Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd >
" < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 >
if (has("termguicolors"))
set termguicolors
endif
endif