Created
June 9, 2011 13:16
-
-
Save czettnersandor/1016707 to your computer and use it in GitHub Desktop.
Vim config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if has("gui_running") | |
set background=dark | |
colorscheme solarized | |
set guioptions+=b | |
set lines=53 " height = 50 lines | |
set columns=130 " width = 100 columns | |
set ls=2 " always show status | |
set scrolloff=3 " keep 3 lines when scrolling | |
set ignorecase " when searching | |
set nobackup " disable backup file (.filename.swp) | |
set nowrap " disable wrapping | |
set number " show line numbers | |
hi MatchParen cterm=bold ctermbg=none ctermfg=none | |
:set guifont=Fixed\ 11 | |
endif | |
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 | |
augroup END | |
set tabstop=2 | |
set shiftwidth=2 | |
endif | |
syntax on | |
"--- indentation --------------- | |
set expandtab | |
set tabstop=4 | |
set shiftwidth=4 | |
set autoindent | |
set smartindent | |
filetype indent on | |
" comments are not placed in the first column. They stay at their current indent level | |
inoremap # # | |
" map <F7> to toggle NERDTree window | |
nmap <silent> <F7> :NERDTreeToggle<CR> | |
nmap <silent> <F8> :FufBuffer<CR> | |
nmap <silent> <F9> :ConqueTermSplit bash<CR> | |
" Tab completion for the web designer | |
imap re<tab> <%= %><Left><Left><Left> | |
imap r<tab> <% %><Left><Left><Left> | |
imap php<tab> <?php ?><Left><Left><Left> | |
imap pe<tab> <?php echo ?><Left><Left><Left> | |
imap div<tab> <div class=""></div><Left><Left><Left><Left><Left><Left><Left><Left> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment