Skip to content

Instantly share code, notes, and snippets.

@fallenhitokiri
Created May 5, 2014 15: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 fallenhitokiri/5215c5ec9e246a3757d9 to your computer and use it in GitHub Desktop.
Save fallenhitokiri/5215c5ec9e246a3757d9 to your computer and use it in GitHub Desktop.
backup of my vimrc
set nocompatible
set nobackup
set nowritebackup
set noswapfile
set history=100
set incsearch
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set number
set numberwidth=4
set splitright
set splitbelow
set guioptions+=LlRrb
set guioptions-=LlRrb
set guifont=Ubuntu\ Mono:h15
set linespace=1
set vb
syntax on
colorscheme railscasts
filetype plugin indent on
augroup vimrcEx
autocmd!
" Ruby
autocmd BufRead,BufNewFile *.rb set tabstop=2
autocmd BufRead,BufNewFile *.rb set shiftwidth=2
augroup END
let macvim_hig_shift_movement = 1
" if has("gui_running")
" if has("autocmd")
" autocmd VimResized * wincmd =
" endif
" endif
"vundle
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'kien/ctrlp.vim'
Bundle 'Raimondi/delimitMate'
Bundle 'scrooloose/nerdtree'
Bundle 'Valloric/YouCompleteMe'
Bundle 'Blackrush/vim-gocode'
Bundle 'jnwhiteh/vim-golang'
Bundle 'majutsushi/tagbar'
Bundle 'cburroughs/pep8.py'
Bundle 'kevinw/pyflakes-vim'
Bundle 'Lokaltog/powerline'
filetype on
filetype plugin on
"ctrlp
imap <C-p> <Esc>:CtrlP<Cr>
let g:ctrlp_custom_ignore = {
\ 'dir': '\/venv/\.(git|hg|svn)$',
\ 'file': '\v\.(exe|so|dll|pyc)$',
\ }
"NERDTree
map <C-n> :NERDTreeToggle<CR>
let NERDTreeIgnore=['\.pyc$', '\.exe$', '\.so$', '\.dll$', '/venv/$', '\.git$', '\.svn$', '\.hg$']
"YouCompleteMe
let g:ycm_autoclose_preview_window_after_completion=1
let g:ycm_autoclose_preview_window_after_insertion=1
let g:ycm_min_num_of_chars_for_completion=3
nnoremap <C-g> :YcmCompleter GoToDefinitionElseDeclaration<CR>
"TagBar
nmap <C-t> :TagbarToggle<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment