summaryrefslogtreecommitdiffstats
path: root/vimrc
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 /vimrc
parentaacc89d5e81a49e0f0d5fafc3a7833d0e33be6c3 (diff)
downloadvimrc-720c31a5dc09cc3c4a8564d16d3a5d309a3b9017.tar.gz
vimrc-720c31a5dc09cc3c4a8564d16d3a5d309a3b9017.tar.bz2
vimrc-720c31a5dc09cc3c4a8564d16d3a5d309a3b9017.zip
Use Vundle plugin manager and install nertdree plugin.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc11
1 files changed, 8 insertions, 3 deletions
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>