aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2019-02-09 12:43:15 -0500
committerMitch Riedstra <mitch@riedstra.us>2019-02-09 12:43:15 -0500
commit60dd105e610bab7cf0bc709114539436722a3add (patch)
tree1f2fc5771f0282ce7f0a8a8212e8163f80ecf06c
parentd8bfb4b9fde510af9b3d06b2474c42cc432d1002 (diff)
downloadvim-cfg-60dd105e610bab7cf0bc709114539436722a3add.tar.gz
vim-cfg-60dd105e610bab7cf0bc709114539436722a3add.tar.xz
Add back Nerdtree. Enable line numers and syntax.
Set theme if GUI is running.
-rw-r--r--inc/rebinds.vim3
-rw-r--r--init.vim12
-rwxr-xr-xsetup.sh3
3 files changed, 9 insertions, 9 deletions
diff --git a/inc/rebinds.vim b/inc/rebinds.vim
index 65dfc0e..fb14324 100644
--- a/inc/rebinds.vim
+++ b/inc/rebinds.vim
@@ -4,7 +4,8 @@ inoremap <Right> <NOP>
inoremap <Up> <NOP>
inoremap <Down> <NOP>
-map <C-n> :Lex<CR>
+" map <C-n> :Lex<CR>
+map <C-n> :NERDTreeToggle<CR>
" To enable/disable the autocomplete dropdown
nmap <leader> [ :AcpDisable<CR>
diff --git a/init.vim b/init.vim
index 2e07c2b..5b08695 100644
--- a/init.vim
+++ b/init.vim
@@ -25,10 +25,8 @@ set omnifunc=syntaxcomplete#Complete
" P (edit newly selected file in the previous window)
let g:netrw_liststyle=3
-set nonu
" Useful on some terminals, not always supported in old tmux versions
" set termguicolors
-syntax off
" let g:airline_theme="monochrome"
" let g:airline_theme="distinguished"
@@ -40,10 +38,8 @@ colorscheme distinguished
" colorscheme dracula
" colorscheme orbital
-" has a light/dark mode that's very interesting
-" Seems to work best when you have 'termguicolors' set
-" colorscheme gruvbox
-
-set list
-set nu
+if has("gui_running")
+ colorscheme gruvbox
+ set background=light
+endif
diff --git a/setup.sh b/setup.sh
index 9fb77eb..016dc84 100755
--- a/setup.sh
+++ b/setup.sh
@@ -56,3 +56,6 @@ clone
DIR="themes/gruvbox"
URL="https://github.com/morhetz/gruvbox"
clone
+DIR="bundle/nerdtree"
+URL="https://github.com/scrooloose/nerdtree"
+clone