added some vim features

This commit is contained in:
Johannes Findeisen 2015-06-27 23:08:27 +02:00
commit ab339017a5
6 changed files with 383 additions and 6 deletions

20
.vimrc
View file

@ -1 +1,21 @@
" Execute pathogen
execute pathogen#infect()
" Load NERDTree plugin
"autocmd VimEnter * NERDTree
"autocmd StdinReadPre * let s:std_in=1
"autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
" Remember position in file
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
" Enable syntax highlighting
syntax on
" Code indentation
filetype plugin indent on
set tabstop=4
set shiftwidth=4
set expandtab