Skip to content

Instantly share code, notes, and snippets.

View icewind's full-sized avatar

Nikolay Osaulenko icewind

View GitHub Profile
@icewind
icewind / init.vim
Created May 24, 2017 12:53
Neovim configuration file
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
language en_US
set history=500
set autoread
set number
set hidden
@icewind
icewind / .vimrc
Created May 8, 2017 12:19 — forked from ericbn/.vimrc
Vim Powerline-like status line without the need of any plugin
" Statusline (requires Powerline font)
set statusline=
set statusline+=%(%{'help'!=&filetype?bufnr('%'):''}\ \ %)
set statusline+=%< " Where to truncate line
set statusline+=%f " Path to the file in the buffer, as typed or relative to current directory
set statusline+=%{&modified?'\ +':''}
set statusline+=%{&readonly?'\ ':''}
set statusline+=%= " Separation point between left and right aligned items
set statusline+=\ %{''!=#&filetype?&filetype:'none'}
set statusline+=%(\ %{(&bomb\|\|'^$\|utf-8'!~#&fileencoding?'\ '.&fileencoding.(&bomb?'-bom':''):'')
@icewind
icewind / README.md
Created April 19, 2017 10:19 — forked from csswizardry/README.md
Vim without NERD tree or CtrlP

Vim without NERD tree or CtrlP

I used to use NERD tree for quite a while, then switched to CtrlP for something a little more lightweight. My setup now includes zero file browser or tree view, and instead uses native Vim fuzzy search and auto-directory switching.

Fuzzy Search

There is a super sweet feature in Vim whereby you can fuzzy find your files using **/*, e.g.:

:vsp **/*<partial file name><Tab>
@icewind
icewind / github-to-bitbucket.md
Last active April 8, 2018 02:43 — forked from sangeeths/github-to-bitbucket
Forking a Github repo to Bitbucket

Go to Bitbucket and create a new repository (its better to have an empty repo)

git clone git@bitbucket.org:abc/myforkedrepo.git
cd myforkedrepo

Now add Github repo as a new remote in Bitbucket called "sync"

git remote add sync git@github.com:def/originalrepo.git

Verify what are the remotes currently being setup for "myforkedrepo". This following command should show "fetch" and "push" for two remotes i.e. "origin" and "sync"

@icewind
icewind / .vimrc
Created October 19, 2016 13:13
Full vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set history=500
set autoread
set number
set hidden
@icewind
icewind / hotkeys.md
Last active August 12, 2016 11:14
MacOS terminal hotkeys

##On Mac OS X - the following keyboard shortcuts work by default. Note that you have to make Option key act like Meta in Terminal preferences (under keyboard tab)

  • alt ⌥+F to jump Forward by a word
  • alt ⌥+B to jump Backward by a word

I have observed that default emacs key-bindings for simple text navigation seem to work on bash shells. You can use

  • Meta-d to delete a word starting from the current cursor position
  • ctrl+A to jump to start of the line
  • ctrl+E to jump to end of the line
@icewind
icewind / _mixins.scss
Created July 22, 2016 13:08
Bootstrap media query mixin
@mixin breakpoint($point) {
@if ($point == lg){
@media (min-width: 1200px){ @content }
}
@else if ($point == md){
@media (min-width: 992px) and (max-width: 1199px){ @content }
}
@else if ($point == sm){
@icewind
icewind / sass-responsive-mixin.scss
Created July 22, 2016 13:03 — forked from peschee/sass-responsive-mixin.scss
SASS responsive mixin (bootstrap breakpoints)
/**
* Responsive mixin. The media breakpoints are as defined
* in the twitter bootstrap framework:
*
* - phone
* - tablet-portrait
* - tablet-landscape-desktop
* - large-desktop
*
* Additional parameters for tagetting retina and non-retina
@icewind
icewind / .vimrc
Last active July 27, 2017 12:55
Portable vim config
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set history=500
set autoread
set number
set hidden
defaults write org.vim.MacVim AppleFontSmoothing -int 0