I am a regular SublimeText user. Vim has always been my favourite editor of choice when i need to do small tweaks and etc. I kept an eye on recent vim plugins and posts made by numerous vim lovers. The ultimate goal was to make vim more easier and more friendly. Here are my tips and tricks that i used to make vim close to Sublime :
- Vundle : I have used pathogen to manage my plugins. Vundle takes plugins management to a whole new level. Think of it as Sublime Package manager. Just put the github repo name and run “BundleInstall” . Before you do this make sure your vim supports ruby and install Vundle in your system. To check if your system has ruby support run :
$vim –version | grep ruby
If nothing comes up then make sure you update your vim with ruby support.
- Vim-airline: Makes vim status and tab bar intuitive. Some cool themes for eyecandy.
- Vim-unimpaired : Buffer is a cool way to edit multiple files in vim. But switching them can be hectic. [b a nice key map to switch between buffers.
- ctrlP : NerdTree provides a cool file explorer but nothing can beat the fuzzy search to load specific file. Those who have used it never looked back. This plugin provides the exact same feature in vim.
- vim-multiple-cursor : First saw this feature in Notepad++ . A very handy way to refactor code lines. Better than typical Search/Replace.
Finally there are tons of dotfiles around . Dont copy and paste those into your vimrc. I used to do that which does not helps you to learn. Instead pick one dotfile then try to understand each lines. Only move those that you think will help you eventually.
My vimrc file.
Lots of complains adopting git, is not to have a server that support ssh let alone git. A nice post by jefferey way in nettuts suggests deployhq. Thats a nice service with nice GUI . But i was looking for a free solution and found one under a comment in that post.
This not only provides FTP protocol also support SFTP. Here are the steps that i took in my mac os environment.
- I used brew to install git-ftp:
$brew install git-ftp
- This relies on libcurl so next thing i had to install curl with ssh support :
$brew install curl –with-ssh
- Brew does not overrides default curl library that comes with osx, so i had to replace that using
$sudo rm /usr/bin/curl
$sudo ln -s /usr/local/Cellar/curl/7.35.0/bin/curl /usr/bin/curl
- Now I cd into my repository and run :
$git ftp init -u <username> -p – sftp://<host_url>/<path>
- It syncs my current HEAD branch into the server and keeps track of last commit. So after making few other commits, i am ready to push latest changes to server. By running:
$git ftp push -u <username> -p – sftp://<host_url>/<path>
I hope from now on you will use GIT for server deployment.
NOTE: git-ftp stores commit log in a file .git-ftp.log file. If any mishaps happens or you want to re-sync everything. Remove that file and you are good to go.
This is one of those packages that should be in core. This enhances the default simple sidebar with additional operations. You can install this via Package Control or from their git repository.
I am going to write series of posts showing my favorite plugins for Sublimetext editor. Sublimetext is one of the coolest editor around. Today we are going to learn about gitgutter . If you are using git for versioning then you have to have this plugin. It shows a realtime git diff in your editor.
I was looking for a plugin like this when i switched from netbeans. Netbeans has this cool plugin named nbgit which i loved most.
I hope this plugin grows more powerful. BTW you can install this via package control too. More details
Its not always the power of a framework, its (human) resource that acts as key factor for final selection. On such cases the best option is to add the best things from the new framework and incorporate with the selected one. I really liked symfony2 components and wanted to have that in my CodeIgniter pack also wanted to leverage the power of composer.
After digging and headbanging for few hours; its a SUCCESS. So now my pack relies on composer’s autoload, uses twig template engine and uses doctrine.
Here are my code : ( 99% are of others I just patched those for my need )
Thanks guys for your hard work which saved tons of hours for me. Here are the references:
I will try to update this code based on issues i face. Do let me know if anything is missing or needs any modification.
A year ago I configured a local ISP server for my friend. Later I created a PERL script to generate tc commands for Traffic shaping. I wanted to share a step by step guide on how to do that. As usual that didn’t saw the daylight. Today I saw a nice post on tc in here. At last I decided to publish my PERL script. You can get the Script in here : github.com/neotohin . The script does some very basic things:
- add/edit cilent
- Remove client
- Set bw limit to client
- Generate the script file to be run in startup.
This was my first PERL script so if you are a perl guru please share your thoughts.
Nope ! i am not gone. Neither i have stopped coding nor i quit from my dev life. I am working my ass off more than any days from the past (bfr 2010). I have become more systematic(really!), more organized(WTF!) and more creative (Oh yeah!). Don’t think i am not aware with the progress of CI to CI Reactor .. Starting of Drupal 7 or the new layout of Facebook. Though my current job forces me to stick with Drupal mostly but still my interest for CodeIgniter never withered .
So why this post — a modest warning of my coming back. Get ready for some new posts — mostly drupal ( drush, git, management etc.) .. BEST OF LUCK TO ME