vimrc

set smartindent
set autoindent
set expandtab
set tabstop=2
set shiftwidth=2
set pastetoggle=<F2>
set number

set hidden
set expandtab
set softtabstop=2
set smarttab
colorscheme evening

set autochdir

autocmd FileType python set omnifunc=pythoncomplete#Complete
if has("autocmd")
" Drupal *.module and *.install files.
augroup module
autocmd BufRead,BufNewFile *.module set filetype=php
autocmd BufRead,BufNewFile *.install set filetype=php
autocmd BufRead,BufNewFile *.test set filetype=php
autocmd BufRead,BufNewFile *.inc set filetype=php
autocmd BufRead,BufNewFile *.profile set filetype=php
autocmd BufRead,BufNewFile *.view set filetype=php
augroup END
endif

" NERD_tree config
let NERDTreeChDirMode=2
let NERDTreeIgnore=['\.vim$', '\~$', '\.pyc$', '\.swp$']
let NERDTreeSortOrder=['^__\.py$', '\/$', '*', '\.swp$', '\~$']
let NERDTreeShowBookmarks=1
map <F3> :NERDTreeToggle<CR>

imap <F4> <ESC>:BufExplorer<CR>
map <F4> :BufExplorer<CR>
map <F5> :TagbarToggle<CR>

:map <F11> :bp<CR>
:map <F12> :bn<CR>

"http://stolowski.blogspot.com/2011/07/finding-your-way-in-vim.html
"http://justinlilly.com/vim/vim_and_python.html
"wget -O bufferexplorer.zip http://www.vim.org/scripts/download_script.php?src_id=14208
"wget -O nerd_tree.zip http://www.vim.org/scripts/download_script.php?src_id=10767
"http://www.vim.org/scripts/script.php?script_id=3465 vim tagbar.vba then :so %

Powered by Drupal