I am a gentoo person, and I have never had a problem with this before. However at work I need to use a company laptop that has ubuntu.
Vim is my editor of choice. When editing perl or other files it runs fine. However when I edit php files it is very slow, scrolling down alone looks jittery and can take a while, even moving the cursor lags!
I am using the same .vimrc files I used on the gentoo system that had no problems. I will attach them below.
I did have some initial problems getting php syntax highlighting, I do not recall how I solved them.
user .vimrc file:
Code:
:set number
:set incsearch
:set hidden
:set tabstop=4
:set expandtab
:set list
:set listchars=tab:>.
:map <F9> :w<cr>:! prove -v -I. -Ilib -It %<CR>
:imap <F9> <ESC>:w<cr>:! prove -v -I. -Ilib -It %<CR>
syntax on
filetype on
set exrc " execute all found .vimrc files
" :setlocal spell spelllang=en
if has("autocmd")
" Drupal *.module files.
augroup module
autocmd BufRead *.module set filetype=php
augroup END
endif
.vimrc file in the directory I am working on.
Code:
:set tabstop=2
:set shiftwidth=2
:set autoindent
:set smartindent
if has("autocmd")
" Drupal *.module files.
augroup module
autocmd BufRead *.module set filetype=php
autocmd BufRead *.install set filetype=php
autocmd BufRead *.t set filetype=php
autocmd BufRead *.info set filetype=php
augroup END
endif