-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.vim
More file actions
70 lines (59 loc) · 1.98 KB
/
Copy pathinit.vim
File metadata and controls
70 lines (59 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
set nocompatible
set ruler
set number
let mapleader='\'
set autoread " automatically reload open files on changes, i.e. from formatting tools
au FocusGained,BufEnter * :checktime
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
" Search options
set incsearch " searching as you type, no need to press enter
set hlsearch " highlight search string
set ignorecase " case-insensitive
set smartcase " case-insensitive if search characters are lowercase
nmap \q :nohlsearch<CR> " \q to get rid of search match highlighting
" Neovim plugins
let vimplug_exists=expand('~/.config/nvim/autoload/plug.vim')
if !filereadable(vimplug_exists)
if !executable("curl")
echoerr "You have to install curl or first install vim-plug yourself!"
execute "q!"
endif
echo "Installing Vim-Plug..."
echo ""
silent !\curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
let g:not_finish_vimplug = "yes"
autocmd VimEnter * PlugInstall
endif
call plug#begin(expand('~/.config/nvim/plugged'))
Plug 'scrooloose/nerdtree'
Plug 'airblade/vim-gitgutter'
Plug 'ntpeters/vim-better-whitespace'
Plug 'scrooloose/nerdtree' " project sidebar
Plug 'tpope/vim-surround'
Plug 'luochen1990/rainbow' " Rainbow parens.
"" Solarized
Plug 'maxmx03/solarized.nvim'
""" The below lines are commented out because I'm not sure if I need them now.
"""" lua << EOF
"""" require('solarized').setup({
"""" theme = 'solarized-dark', -- or 'solarized-light'
"""" })
"""" EOF
" need to run `pip3 install pynvim` for deoplete; to enable python 3 scripting (I think?)
" Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
call plug#end()
" deoplete
let g:deoplete#enable_at_startup = 1
" Color stuff!
"" rainbow parens
let g:rainbow_active = 1
set termguicolors
colorscheme solarized
if has('mac')
let s:is_dark = system('defaults read -g AppleInterfaceStyle') =~? 'Dark'
if s:is_dark
set background=dark
else
set background=light
endif
endif