From 720c31a5dc09cc3c4a8564d16d3a5d309a3b9017 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 24 Sep 2018 15:11:05 +0200 Subject: Use Vundle plugin manager and install nertdree plugin. --- .gitmodules | 3 +++ bundle/Vundle.vim | 1 + plugins.vim | 13 +++++++++++++ vimrc | 11 ++++++++--- 4 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 .gitmodules create mode 160000 bundle/Vundle.vim create mode 100644 plugins.vim diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..75554b2 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "bundle/Vundle.vim"] + path = bundle/Vundle.vim + url = https://github.com/VundleVim/Vundle.vim.git diff --git a/bundle/Vundle.vim b/bundle/Vundle.vim new file mode 160000 index 0000000..9a38216 --- /dev/null +++ b/bundle/Vundle.vim @@ -0,0 +1 @@ +Subproject commit 9a38216a1c0c597f978d73547d37681fc689c90d diff --git a/plugins.vim b/plugins.vim new file mode 100644 index 0000000..ee5a14a --- /dev/null +++ b/plugins.vim @@ -0,0 +1,13 @@ +set nocompatible +filetype off +set rtp+=~/.vim/bundle/Vundle.vim + +call vundle#begin() + +Plugin 'VundleVim/Vundle.vim' +Plugin 'scrooloose/nerdtree' + +call vundle#end() + +filetype plugin indent on + diff --git a/vimrc b/vimrc index 79b6e55..afbda7a 100644 --- a/vimrc +++ b/vimrc @@ -1,11 +1,13 @@ +so ~/.vim/plugins.vim + filetype on syntax on colorscheme desert set number filetype indent on set nowrap -set tabstop=4 -set shiftwidth=4 +set tabstop=2 +set shiftwidth=2 set expandtab set smartindent set autoindent @@ -21,4 +23,7 @@ set showmatch autocmd BufWritePre * :%s/\s\+$//e " press esc to cancel search -nnoremap :nohlsearch:echo +noremap :nohlsearch:echo + +" toggle nerdtree with ctrl-o +map :NERDTreeToggle -- cgit v1.2.3