Advertisement
Guest User

Untitled

a guest
Dec 21st, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.67 KB | None | 0 0
  1. filetype plugin on
  2. au FileType php set omnifunc=phpcomplete#CompletePHP
  3. let php_sql_query=1                                                                                        
  4. let php_htmlInStrings=1
  5. let php_folding=1 " zo (open) - zc (close) etc
  6.  
  7. function MyTabOrComplete()
  8.     let col = col('.')-1
  9.     if !col || getline('.')[col-1] !~ '\k'
  10.         return "\<tab>"
  11.     else
  12.         return "\<C-N>"
  13.     endif
  14. endfunction
  15.  
  16. inoremap <TAB> <C-R>=MyTabOrComplete()<CR>
  17.  
  18. set tabstop=4
  19. set backspace=start,indent,eol
  20. set nu " Adds line numbering
  21. set wrapscan " Makes search wrap around
  22. set incsearch " Incremental search - <enter> accepts - <esc> cancels
  23. set ignorecase " Case insensitive search
  24. set scrolloff=2 " Start scrolling when cursor is N line from top/bottom edge
  25. set showmatch matchtime=3 " When bracket is inserted, briefly jump tothe matching one
  26.  
  27. set nocompatible
  28. set showcmd
  29. set autoindent
  30. set mouse=a
  31. " This is totally awesome - remap jj to escape in insert mode.  You'll never
  32. " type jj anyway, so it's great!
  33. inoremap jj <Esc>
  34. nnoremap JJJJ <Nop>
  35.  
  36. " Favorite Color Scheme
  37. if has("gui_running")
  38.     colorscheme inkpot
  39.     " Remove Toolbar
  40.     set guioptions-=T
  41.     "Terminus is AWESOME
  42.     set guifont=Terminus\ 9
  43. else
  44.     " colorscheme elflord
  45.     colorscheme inkpot
  46. endif
  47.  
  48. "Status line gnarliness
  49. set laststatus=2
  50. set statusline=%F%m%r%h%w\ (%{&ff}){%Y}\ [%l,%v][%p%%]
  51.  
  52. filetype plugin indent on
  53. syntax on
  54. set ruler
  55. set ttyfast
  56. set lazyredraw
  57. set ttymouse=xterm2
  58. set noerrorbells
  59. set visualbell
  60. " Make curson move as expected with wrapped lines
  61. inoremap <Down> <C-o>gj
  62. inoremap <Up> <C-o>gk
  63. set nobackup
  64.  
  65. " Go to command line with ii
  66. imap ii <C-[>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement