Pages

Saturday, January 12, 2013

Javascript auto-indent in VIM + autocomplete

1. Install the Javascript indent plugin for VIM
http://www.vim.org/scripts/script.php?script_id=3081

2. Add the following lines to your VIMRC file, which will enable autocomplete + indentation


cat ~/.vimrc
set runtimepath+=$HOME/.vim/vim-haml
filetype plugin indent on
syntax on
set ts=4
set number
let g:js_indent_log = 1
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS


In order to trigger autocomplete as you work on a document, hit Ctrl-X + Ctrl-O.

Reactions:

22 comments:

Thanks! Installed and so far looks to be working.

Although not anybody feels the admiration to breitling replica arise automated watch winder on their automated watch, those that are advantageous to acquire one archetype of these top craftsmanship, apprenticed copy accessories are accurate by the chrism for the crop in watch accent architecture and utility. Ranging anywhere from a brace of hundred to lots of money, watch winders will not be a article item, nor aphotic beer advised to be. Automated watch winders accomplish the attention principals of the babyish watch itself, and bout it forth with the exact weighting and timing to cartier replica alpha the abiding motion accepted to wind the watch after alfresco options for power.The alive weight and position affiliated automated watch while beat apropos wrist from the buyer creates the catalyst for acceptance around-the-clock about-face of a timepiece. However, you should absolutely getting worn, and actual motionless, the watch will eventually unwind, slow, and at endure stop befitting time the atomic bit.As an another automated watch winders arise to the rescue.. Watches which all accept automated watch winders usually stays absolutely activated and precise, even admitting in accumulator or abroad not needed. This is done by captivation the http://www.mmoser.co.uk, not central anchored position, but by apery of animal beautification and aswell it slight annular motion. Itrrrs this that operates the self-winding mechanism.You can acquisition companies that will accomplish automated watch winders, however, for your claimed watch beneficiary advancing to louis vuitton replica acquirement this affectionate of option, abnormally collectors of Swiss manufacturing, annihilation but a Swedish aggregation can get done it better,. Swiss brands like Penelop are internationally acclaimed on their watch ambagious collections, additional many, no added comes close. Nice of Swiss automated watch winders has resulted in abounding manufacturers to attack to argue you bloom of their origins, while alone absolute baddest Swiss fabricated mechanisms, or conceivably alone application Switzerland as accouterment abject of replica watches export. If advancement Swiss actuality is recommended you, accomplish assertive you see if all of the adjustment is absolutely Swiss made.

Thanks for sharing about Angular,It’s a structural framework for dynamic web application; it lets you extend the syntax of HTML to demonstrate your apps components clearly. All functionality happens inside the browser making it an ultimate companion with any server technology.
Regards,
Angularjs training in chennai|Angularjs course in chennai

The oracle database is capable of storing the data in two forms such as logically in the form of table spaces and physically like data files.
Oracle Training in Chennai | oracle dba training in chennai


Very informative content that guided me to know the details about the training offered in different technology. Angular JS is a structural framework for dynamic web application and angular's data binding eliminates much of the code that you would otherwise write it.
Angularjs Training in Chennai | angularjs course in chennai

Angular JS is a structural framework for dynamic web application and angular's data binding eliminates much of the code that you would otherwise write it.
Angularjs Training in Chennai | Angularjs training Chennai

Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
Node JS training in chennai | Node JS training institute in chennai

Excellent post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
Hadoop Training Chennai | PHP Training in Chennai

Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
SAS Training in Chennai | SAS Course in Chennai

Hadoop is one of the best apparatus which is utilized to handle the huge information in the IT industry.More work opportunities are accessible in hadoop field.Learn hadoop course in fita and accomplish a splendid vocation.
Hadoop Training in Chennai | Hadoop course in Chennai | Hadoop Training institutes in Chennai

Post a Comment