added some vim features
This commit is contained in:
parent
c6ba62a592
commit
ab339017a5
6 changed files with 383 additions and 6 deletions
20
.vimrc
20
.vimrc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue