Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- filetype plugin on
- au FileType php set omnifunc=phpcomplete#CompletePHP
- let php_sql_query=1
- let php_htmlInStrings=1
- let php_folding=1 " zo (open) - zc (close) etc
- function MyTabOrComplete()
- let col = col('.')-1
- if !col || getline('.')[col-1] !~ '\k'
- return "\<tab>"
- else
- return "\<C-N>"
- endif
- endfunction
- inoremap <TAB> <C-R>=MyTabOrComplete()<CR>
- set tabstop=4
- set backspace=start,indent,eol
- set nu " Adds line numbering
- set wrapscan " Makes search wrap around
- set incsearch " Incremental search - <enter> accepts - <esc> cancels
- set ignorecase " Case insensitive search
- set scrolloff=2 " Start scrolling when cursor is N line from top/bottom edge
- set showmatch matchtime=3 " When bracket is inserted, briefly jump tothe matching one
- set nocompatible
- set showcmd
- set autoindent
- set mouse=a
- " This is totally awesome - remap jj to escape in insert mode. You'll never
- " type jj anyway, so it's great!
- inoremap jj <Esc>
- nnoremap JJJJ <Nop>
- " Favorite Color Scheme
- if has("gui_running")
- colorscheme inkpot
- " Remove Toolbar
- set guioptions-=T
- "Terminus is AWESOME
- set guifont=Terminus\ 9
- else
- " colorscheme elflord
- colorscheme inkpot
- endif
- "Status line gnarliness
- set laststatus=2
- set statusline=%F%m%r%h%w\ (%{&ff}){%Y}\ [%l,%v][%p%%]
- filetype plugin indent on
- syntax on
- set ruler
- set ttyfast
- set lazyredraw
- set ttymouse=xterm2
- set noerrorbells
- set visualbell
- " Make curson move as expected with wrapped lines
- inoremap <Down> <C-o>gj
- inoremap <Up> <C-o>gk
- set nobackup
- " Go to command line with ii
- imap ii <C-[>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement