Skip to content

Instantly share code, notes, and snippets.

@auxiliary
Last active May 30, 2016 05:48
Show Gist options
  • Select an option

  • Save auxiliary/d820e5ceb216dfa514ed to your computer and use it in GitHub Desktop.

Select an option

Save auxiliary/d820e5ceb216dfa514ed to your computer and use it in GitHub Desktop.
vimrc
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
Plugin 'gmarik/Vundle.vim'
Plugin 'directionalWindowResizer'
Plugin 'mileszs/ack.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'bling/vim-airline'
Plugin 'powerline/fonts'
Plugin 'altercation/vim-colors-solarized'
Plugin 'zsoltf/vim-maui'
Plugin 'ervandew/supertab'
"Plugin 'davidhalter/jedi-vim'
"Plugin 'Valloric/YouCompleteMe'
" Plugin 'zhaocai/GoldenView.Vim'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"""""""""""""""""" END OF VUNDLE STUFF """""""""""""""""""""""""""""
syntax on
set number
set tabstop=4
set expandtab
set shiftwidth=4
set softtabstop=4
set smarttab
set hlsearch
set incsearch
set wildmenu
set foldmethod=indent " To make folding work for Python
set foldlevel=99 " To open all folds by default
"set tw=80
" Map Shift-Arrow keys to navigate between buffers
nnoremap <S-Left> <C-w>h
nnoremap <S-Down> <C-w>j
nnoremap <S-Up> <C-w>k
nnoremap <S-Right> <C-w>l
" Map CTRL-n to well obviously toggle nerdtree
nnoremap <C-n> :NERDTreeToggle<CR>
" Map space to toggle folds
nnoremap <Space> za
set background=dark
"colorscheme maui
"let g:airline_powerline_fonts = 1
" let g:airline_theme='base16'
set laststatus=2
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
"Make jedi hide the doc window
"autocmd FileType python setlocal completeopt-=preview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment