Changes
Title
unchanged
yii vim eclimd how it works
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
vim, eclimd, vimrc
Content
changed
I want to create a wiki page, and therefore im opening this discussion on this forum, for answering all questions and see other opinions, how do you use vim with yii.
At first, i work with
Gvim.
I have a script file for opening saved session and custom bindings for every project.[...]
cd "$1" || { zenity --title "Vim IDE usage error" --error --text "Can't change current directory to Vim IDE project directory '$1'."; exit 1; }
```
vim --class=IDE -S .vim/ide.vim --servername vim
```
My every project has .vim folder under the root folder. there
isneed to be one file at start .vim/ide.vim
(just create it before start in project root dir.[...]
```php
nmap <f3> :execute "Nwrite ftp://username@*.*.60.252/httpdocs/".expand("%")<CR> //Now i can upload files via ftp to production server.[...]
```
Update: today i use awesome tool git and awesome tool [git-ftp](https://github.com/resmo/git-ftp) and my upload command is
```php
nmap <leader>u :!git ftp push -A -vv -u username -p pass ftp://www.example.com/httpdocs/<cr>
```
git-ftp awesome tool, you can push your project to ftp, (much low cost hosters have it) and use power of git for your projects.
And i open project with next command $~/ide.sh /path/to/project . And it opens my project with all opened files, and tabs saved on last exit.
I use tabs for my code process. Next tabs i see on my every project:
```php[...]
i use shortcuts for switching between them:
```php
<leader>t
t - tests tab
<leader>
tc - controllers tab
<leader>
tl - layouts tab
<leader>
tv - views tab
<leader>
tm - model tab
<leader>
tw - working tab
```[...]