Skip to content

Instantly share code, notes, and snippets.

View igorbabko's full-sized avatar
🇺🇦

Igor Babko igorbabko

🇺🇦
View GitHub Profile
set backspace=indent,eol,start " make backspace behave like every other editor
set number " let's activate line numbers
set linespace=25 " mac-vim specific lineheight
set noerrorbells visualbell t_vb= " remove damn bell
set autowriteall " autosave files when closing
let mapleader = ',' " the default leader is \, but a comma is much better
set shiftwidth=4 " indents will have a width of 4
set softtabstop=4 " sets the number of columns for a tab
set expandtab " expand tabs to spaces
set tabstop=4 " the width of a tab is set to 4.
snippet met
public function ${1}(${2})
{
${3}
}
snippet pmet
protected function ${1}(${2})
{
${3}
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
{
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"font_face": "Fira Code",
"font_size": 14,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
@igorbabko
igorbabko / .vimrc
Last active November 14, 2016 11:31
" we want the latest VIM settings/options
"let macvim_skip_colorscheme = 1
let mapleader = ',' " setup leader key ( \ - by default )
syntax enable " enable syntax highlighting
"colorscheme atom-dark " setup colorscheme
set noerrorbells visualbell t_vb= " remove damn bell
set complete=.,w,b,u " set our desired autocompletion matching
# Git aliases
alias gs="git status"
alias ga="git add"
alias gaa="git add ."
alias gc="git commit"
alias gp="git push"
alias gpl="git pull"
alias gcm="git commit -m"
alias gl="git log"
@igorbabko
igorbabko / Default (OSX).sublime-keymap
Created June 24, 2017 07:53 — forked from gig3m/Default (OSX).sublime-keymap
Sublime Text 2 Vintage Lefty Remap (ijkl movement)
[
{ "keys": ["h"], "command": "enter_insert_mode",
"context":
[
{"key": "setting.command_mode"},
{"key": "selection_empty"}
]
},
{ "keys": ["H"], "command": "enter_insert_mode", "args":
{"insert_command": "vi_move_to_first_non_white_space_character"},
{
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Palenight.tmTheme",
"draw_white_space": "none",
"font_face": "Fira Code Light",
"font_size": 14,
"highlight_line": true,
"line_numbers": false,
// "margin": 10,
"highlight_modified_tabs": true,
[
{ "keys": ["super+u"], "command": "find_use" },
{ "keys": ["alt+p"], "command": "insert_php_constructor_property" },
{ "keys": ["ctrl+t"], "command": "run_all_phpunit_tests" },
{ "keys": ["ctrl+d"], "command": "run_phpunit_tests_in_dir" },
{ "keys": ["super+t"], "command": "run_single_phpunit_test" },
{ "keys": [",", "w"], "command": "save",
"context": [
@igorbabko
igorbabko / EditCustomPage.vue
Created August 13, 2017 16:47
Tricky problem
<template>
<div class="custom-pages-wrapper" v-if="currentCustomPage">
<div class="top-action-bar flex-between">
<div>
<div class="title-block">
<i class="icon-pencil"></i>
<input type="text" placeholder="page title" v-model="pageTitle">
</div>
</div>
<div>