Testing a PyOpenCL demo in vim.
This is my collection of hacks that turn vim into a python IDE.
Syntax Highlighting
I'm using Arch Linux and Syntax Highlighting comes installed with my Vim package. I just need to enable the syntax highlighting in my .vimrc file:
Enable line numbers
Is as simple as adding this line to the .vimrc
Indentation
Adding this to the .vimrc file will enable PEP8 indentation only for *.py files.
Autocompletion
I use the great jedi-vim plugin from David Halter and the SuperTab plugin. You can find the installation steps at RedKrieg's post: Writing Python like a Jedi.
Testing the jedi-vim plugin
Executing python code inside vim
This is my favorite, press the F5 key to save the python script and execute it. Add this to the .vimrc file.
Enable file specific features
To enable all the filetype features I've defined above the following lines are needed in the .vimrc file.
Other plugins
Here is a collection of other useful plugins, I recommend installing them using pathogen if you can't get them from the repositories of your Linux distro.
- miniBufExplorer, for easier navigation of buffers.
- NERDCommenter, fast comment toggling with <leader>C<Space>.
- NERDTree, file explorer.
- UltiSnips, snippets for fast code completion of commonly used blocks.
If you have hacks of your own, please share them with everyone in the comments section.
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog.
ReplyDeleteRead all the information that i've given in above article. It'll give u the whole idea about it.
ReplyDeleteAuthorized iphone service center in Chennai | iphone service center in chennai | Mobile service center in chennai | Authorized iphone service center in Chennai | iphone service center in chennai
Nice blog..! I really loved reading through this article. Thanks for sharing such a
ReplyDeleteamazing post with us and keep blogging... best angularjs training institute in chennai | angularjs training in omr | .angular 4 training in chennai | angularjs training in omr
This is often simply what I would like to say when commenting on a newspaper. Looking forward to several interesting and useful articles from you. The article is incredibly intensive and effective.
ReplyDeleteDedicatedHosting4u.com
Hiiii...Thanks for sharing Great info...Nice post...Keep move on...
ReplyDeletePython Training in Hyderabad
Selling USA FRESH SPAMMED SSN Leads/Fullz, along with Driving License/ID Number with EXCELLENT connectivity.
ReplyDelete**PRICE**
>>2$ FOR EACH LEAD/FULLZ/PROFILE
>>5$ FOR EACH PREMIUM LEAD/FULLZ/PROFILE
**DETAILS IN EACH LEAD/FULLZ**
->FULL NAME
->SSN
->DATE OF BIRTH
->DRIVING LICENSE NUMBER WITH EXPIRY DATE
->ADDRESS WITH ZIP
->PHONE NUMBER, EMAIL, I.P ADDRESS
->EMPLOYEE DETAILS
->REALTIONSHIP DETAILS
->MORTGAGE INFO
->BANK ACCOUNT DETAILS
>All Leads are Tested & Verified.
>Invalid info found, will be replaced.
>Serious buyers will be welcome & I will give discounts for bulk orders.
>Fresh spammed data of USA Credit Bureau
>Good credit Scores, 700 minimum scores
>Bulk order will be preferable
>Minimum order 20 leads/fullz
>Hope for the long term business
>You can asked for samples, specific states & zips (if needed)
>Payment mode BTC, PAYPAL & PERFECT MONEY
Email > leads.sellers1212@gmail.com
Telegram > @leadsupplier
ICQ > 752822040
''OTHER GADGETS PROVIDING''
>SSN Fullz
>Dead Fullz
>Carding Tutorials
>Hacking Tutorials
>SMTP Linux Root
>DUMPS with pins track 1 and 2
>Sock Tools
>Server I.P's
>USA emails with passwords (bulk order preferable)
**Contact 24/7**
Email > leads.sellers1212@gmail.com
Telegram > @leadsupplier
ICQ > 752822040
What an amazing post admin really great post thanks for this.
ReplyDeleteviva video for windows
viva video lite for PC
snapseed for Macbook
how to change background color using snapseed
play stored for windows download
xender apk for PC
Great article. This blog is filled with unique and high-quality articles.
ReplyDeleteSnapseed for PC
VPN Monster for PC
KineMaster for PC
Playit Video Player for PC
FX Player for PC
ZeepLive for PC
VITA for PC
TextPlus for PC
Atlas for PC
Free Touch VPN for PC
ReplyDeleteThanks for sharing
Turbo VPN for PC
CamScanner for PC
EasyShare for PC
NordVPN for PC
Pikashow for PC
Proxy Master VPN for PC
Netflix on PC
VPN 360 for PC
Hotstar for PC
ReplyDeleteGreat article. This blog is filled with unique and high-quality articles.
SHAREit for PC
VITA Video Editor for PC
PLAYit Video Player for PC
Helo app for PC
SHAREit for PC Windows
CandyLink for PC
PUBG for PC
Awesome..You have clearly explained …Its very useful for me to know about new things..Keep on blogging..
ReplyDeleteinternship for web development | internship in electrical engineering | mini project topics for it 3rd year | online internship with certificate | final year project for cse
I wanted to thank you ffor this very good read!! I definitely enjoyed
ReplyDeleteevery bit of it. I have got you book-marked to look at new thinggs you post
writing business plan services 메이저사이트
This piece of writing is in fact a nice one it assists new web viewers, who are wishing for blogging. 경마
ReplyDeleteGreat bloog here! Also your website loads up very fast! What web host are you using? Can I get your affiliate link to your host? I wih my website loaded up as quickly as yours 바카라사이트
ReplyDeleteGreate article. Keep writing such kind of information on your page.
ReplyDeleteIm really impressed by your blog. 토토사이트