Skip to content

Instantly share code, notes, and snippets.

@naoyamakino
Created February 7, 2014 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naoyamakino/8855678 to your computer and use it in GitHub Desktop.
Save naoyamakino/8855678 to your computer and use it in GitHub Desktop.
my vimrc
set enc=utf-8
set nu
function! WindowsizeMaximize13()
set lines=570
set columns=1810
colorscheme ir_black
endfunction
"command! WindowsizeMaximize13 call WindowsizeMaximize13()
filetype indent plugin on
set background=dark
colorscheme ir_black
syntax on
set vb
set gfn=Osaka-Mono:h16
let g:neocomplcache_enable_at_startup = 1
call pathogen#runtime_append_all_bundles()
"set fullscreen in start
"if has("gui_running")
" set fuoptions=maxvert,maxhorz
" au GUIEnter * set fullscreen
"endif
set expandtab "soft tabs
set tabstop=2 "set tabstops
set shiftwidth=2 "set shiftwidth
set softtabstop=2 "delete this many spaces upon deleting soft tab
autocmd FileType python setl sw=4
autocmd FileType python setl ts=4
autocmd FileType python setl sts=4
autocmd FileType python setl expandtab
autocmd Filetype html setlocal ts=2 sts=2 sw=2
autocmd Filetype ruby setlocal ts=2 sts=2 sw=2
autocmd Filetype javascript setlocal ts=2 sts=2 sw=2
set nocompatible
filetype plugin indent on
syntax on
"" Searching
set hlsearch " highlight matches
set incsearch " incremental searching
set ignorecase " searches are case insensitive...
set smartcase " ... unless they contain at least one capital letter
if has("gui_running")
set guioptions-=T
endif
nmap <Space>s <Plug>(vimshell_split_switch)
nnoremap <space>v :VimShell
nnoremap <space>c :VimShellCreate
nnoremap <space>r :VimShellInteractive rails console
noremap <c-tab> :tabnext<cr>
noremap <c-s-tab> :tabp<cr>
nnoremap <space>. :<C-u>new ~/.vimrc<Cr>
nnoremap <space>u :Unite file_rec
nnoremap <space>n :new
nnoremap <space>g :Gblame
" Settings for VimClojure
let g:clj_highlight_builtins=1 " Highlight Clojure's builtins
let g:clj_paren_rainbow=1 " Rainbow parentheses'!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment