Navigate
Home
ArticleWiki
Forum
Newsletter
Links
Tech News
Welcome Guest.
Username:

Password:

Remember me

trying gVim again - come you nerds help
Welcome, Guest. Please login or register.
February 07, 2012, 06:37:19 AM
11513 Posts in 1262 Topics by 496 Members
Latest Member: Beerdernill
Experts Round Table Network  |  Web Technologies  |  General Web Dev  |  trying gVim again - come you nerds help « previous next »
Pages: [1]
Author Topic: trying gVim again - come you nerds help  (Read 1888 times)
thepreacher

Offline Offline

Posts: 79


« on: August 31, 2008, 01:37:07 AM »

For the - i have lost count how many times - i am attempting to lear to use gVim again. I can now get around fairly well using the key board. I have installed gVim ver 7.2 and by default it provide syntax higlighting. Now what i want to do is to customise gVim enough so that i can use it to boost my productivity when coding.

Specifically the things i am hoping to be able to learn is :
Code completion,
Autocompletion/Snippets,
Project features,
Debuging with Xdebug and
syntax parsing for PHP, Javascript, Html, css etc.

I am on windows XP and these are my relevant paths:
c:\php\php5,
c:\program files\vim,
c:\www
c:\program files\apache software foundation\apache2.2,
c:\program files\mysql,

The problem with most of the guides i have come across is that 1. they assume too much and 2. its linux/unix biased. No wonder gVim has the reputation that it has. I am always impressed when i see video demos where "xperts" show their skills coding stuff. Then i Think to myself Oh if only I can do the same.

First general question is on windows and with reference to the paths that i have given is, what is $HOME and if it needs setting, where to i set this up? Is it
Quote:
C:\program files\vim
? Does gVim know this by default out of the box? you get what i mean?

Also i came across http://weierophinney.net/matthew/arc...evelopers.html and it talks about a Projects Plugin. I will like to make this a global plugin so i put it in
Quote:
c:\program files\vim\vimfiles\plugin
according to my understanding. Now i have no idea how to get that plugin to display on the left side.

On the above link it talks about mapping a keystroke in
Quote:
Mapping the PHP interpreter and linter to keystrokes

Probably the most useful thing I've done as a PHP developer is to add mappings to run the current file through (a) the PHP interpreter (using Ctrl-M), and (b) the PHP interpreter's linter (using Ctrl-L). These are accomplished with the following:

" run file with PHP CLI (CTRL-M)
:autocmd FileType php noremap <C-M> :w!<CR>:!$HOME/bin/php %<CR>

" PHP parser check (CTRL-L)
:autocmd FileType php noremap <C-L> :!$HOME/bin/php -l %<CR>

(I have ~/bin/php as my PHP interpreter, which allows me to run PHP with a custom config file, as well as to change which PHP binary I'm using.)

These two commands allow me to quickly and easily check that my syntax is okay, as well as to run unit test suites easily.
What is have is a _vimrc file which is located in
Code:

c:\program files\vim

Please I am a windows user and never ued Linux but i like to use gVim - help. If you are tempted to give me the
Quote:
"read the manual line"
don't because i have tried. I spent 12 hours yesterday on this.

Assume little and remember i am Windows user.
Logged
Pages: [1]
« previous next »
    Jump to: