Skip to content

Instantly share code, notes, and snippets.

// create a dictionary
var dictionary = { "key1" : "val2" };
// cast to string
var dictionary_string = JSON.stringify(dictionary);
// save in local storage
localStorage.setItem("my",dictionary_string);
// read back from local storage
@kimat
kimat / a.vim
Created August 14, 2014 17:04
vim-ctrlspace alternative tabline
let g:ctrlspace_use_tabline=2
let g:ctrlspace_unicode_font=0
let g:ctrlspace_use_tabline=0
if exists("+showtabline")
function GoBuffer(direction)
let direction = a:direction
let t_current = tabpagenr()
let b_current = bufnr('%')