summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
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>