Skip to content

Instantly share code, notes, and snippets.

@goyalankit
Created June 12, 2013 17:59
Show Gist options
  • Save goyalankit/5767612 to your computer and use it in GitHub Desktop.
Save goyalankit/5767612 to your computer and use it in GitHub Desktop.
"janus settings
let g:vroom_use_bundle_exec = 0
set guifont=Monaco:h12
syntax enable
set background=dark
colorscheme solarized
let g:Powerline_symbols = 'fancy'
let g:solarized_termcolors=256
let g:Gitv_OpenHorizontal = 1
let g:NERDTreeWinPos = "right"
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
autocmd User Rails let b:surround_{char2nr('-')} = "<% \r %>" " displays <% %> correctly
:set cpoptions+=$ " puts a $ marker for the end of words/lines in cw/c$ commands
let g:tagbar_ctags_bin='/usr/local/bin/ctags'
set ts=2 sw=2 et
let @b='irequire "pry"; binding.pry'
function! NumberToggle()
if(&relativenumber == 1)
set number
else
set relativenumber
endif
endfunc
nnoremap <C-n> :call NumberToggle()<cr>
"nnoremap <C-g> :call ToggleGitGutterLineHighlights()<cr>
"nnoremap <C-h> :call ToggleGitGutter()<cr>
nnoremap <C-h> :set hlsearch!<CR>
nnoremap <C-g> :Gitv <CR>
nnoremap ,c :let @* = expand("%:p").":".line('.')<cr>
set foldmethod=indent "fold based on indent
set foldnestmax=3 "deepest fold is 3 levels
set nofoldenable "dont fold by default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment