summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-09-24 15:11:05 +0200
committerHarald Eilertsen <haraldei@anduin.net>2018-09-24 15:11:05 +0200
commit720c31a5dc09cc3c4a8564d16d3a5d309a3b9017 (patch)
tree68215c6086c6018db62530b11b1d129db28a59d2
parentaacc89d5e81a49e0f0d5fafc3a7833d0e33be6c3 (diff)
downloadvimrc-720c31a5dc09cc3c4a8564d16d3a5d309a3b9017.tar.gz
vimrc-720c31a5dc09cc3c4a8564d16d3a5d309a3b9017.tar.bz2
vimrc-720c31a5dc09cc3c4a8564d16d3a5d309a3b9017.zip
Use Vundle plugin manager and install nertdree plugin.
-rw-r--r--.gitmodules3
m---------bundle/Vundle.vim0
-rw-r--r--plugins.vim13
-rw-r--r--vimrc11
4 files changed, 24 insertions, 3 deletions
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
+Subproject 9a38216a1c0c597f978d73547d37681fc689c90
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 <silent> <Esc> :nohlsearch<Bar>:echo<CR>
+noremap <silent> <Esc> :nohlsearch<Bar>:echo<CR>
+
+" toggle nerdtree with ctrl-o
+map <C-o> :NERDTreeToggle<CR>