use VIM as great as Netbeans for editing PHP, Python, JS, HTML, XML and many else filetype.
This have several great feature :
- Have great Python checking and fast shortcut like
Shift - efor execute current files
- Use Vundle for managing plugins
F8for Browser files and Tags
- Check .vimrc to see many feature and goodies bag
This VIM is inspired by many great developers that share their custom VIM configuration.
Go to your Command / Terminal :
cd ~/ git clone https://github.com/yodiaditya/vim-netbeans.git ln -s ~/vim-netbeans/.vimrc ~/.vimrc ln -s ~/vim-netbeans/.vim ~/.vim git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle vim ~/.vimrc
When opening .vimrc, do ":BundleInstall" to install all package and exit by :wq.
rm -rf ~/.vim/bundle/snipmate.vim/snippets
Change your TAB behaviour between PyDiction and Snipmate by follow this link :
But i prefer using CTRL+Space as Snipmate Completion. Here a how to make it :
Edit start from line 15 :
"ino <silent> <tab> <c-r>=TriggerSnippet()<cr> "snor <silent> <tab> <esc>i<right><c-r>=TriggerSnippet()<cr> ino <silent> <C-Space> <c-r>=TriggerSnippet()<cr> snor <silent> <C-Space> <esc>i<right><c-r>=TriggerSnippet()<CR>
After do installing, you should go to VIM and do :BundleInstall. I use Vundle here which i use pathogen in the past development.
I use nodejs-snipmate and snipmate-snippets. To preventing crash between default snippets in Snipmate and others,
A. Python Debugger like pyflakes, pylint and pep8
For installing Python debugger using PIP :
sudo apt-get install python-pip sudo pip install git+git://github.com/kevinw/pyflakes.git sudo pip install pylint sudo pip install pep8
Read .vimrc for magic keys and guide.
If you using Ubuntu, then can do this command :
sudo apt-get install exuberant-ctags
Configuration for jsl.conf located in ~/.vim/jsl.conf.
Tips: You can change warning into '-ambiguous_newline' for disable newline checking (Jquery).
For *.js file, auto-checker work automatically after saving file.
C. Installing JSLint, Gjslint, JSHint
See my blog post here for installation :
This VIM using Mustang as Colorscheme. If you use Yakuake for running VIM, then you should change your Yakuke for running 256-colors.
Here are to set it : http://yoodey.com/using-terminal-console-yakuake-running-256-colors
For using this custom VIM, here are some clue :
- Use Backspace as PageUp & Space as PageDown in normal mode
- Use tab (insert mode) for autocomplete Python using PyDiction
- Autocomplete every you type. Also you can use CTRL + Space for Snipmate Autocompletion
- Move to another tab / buffer using CTRL+Arrow
- Using NERDTree by :NERDTree or editing .vimrc to enable NERDTree automatically.
F2or t for FuzzFinder in Full Path or b for open Buffers
F8for enabling NERDTRee and Tagbar (Love it!)
- Use `` space` for MRU
Shift+efor execute Python code
Shift+nfor execute NodeJS code
- Also check many goodies bag in .vimrc
I have a lot of blog which contains many information. You can check here :