Skip to content

Instantly share code, notes, and snippets.

@leveled
Created June 5, 2016 22:03
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 leveled/5a861cd1cd62bb9de22611261687eaf3 to your computer and use it in GitHub Desktop.
Save leveled/5a861cd1cd62bb9de22611261687eaf3 to your computer and use it in GitHub Desktop.
Vim RC settings
"" SHELL:
set shell=/bin/bash
"" NUMBERING:
" Sets the numeric setting on by default
set number
" sets global clipboard on
set clipboard=unnamed
"" KEY BINDINGS:
map <C-n> :NERDTreeToggle<CR>
"" SYNTAX:
" Sets syntax highlighting on
syntax on
colorscheme zenburn
" Enable folding
set foldmethod=indent
set foldlevel=99
" UTF8 Encoding
set encoding=utf-8
" Enable backspace end of line
set backspace=indent,eol,start
" Flag Unnecessary Whitespace
" au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
"" PYTHON
"au BufNewFile,BufRead *.py
" \ set tabstop=4
" \ set softtabstop=4
" \ set shiftwidth=4
" \ set textwidth=79
" \ set expandtab
" \ set autoindent
" \ set fileformat=unix
" Code aesthetic improvement
let python_highlight_all=1
syntax on
" YouCompleteMe Keybindings
" Sets space + g to go to definition of current code selection
let g:ycm_autoclose_preview_window_after_completion=1
map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
"" WEB STACK
"au BufNewFile,BufRead *.js, *.html, *.css
" \ set tabstop=2
" \ set softtabstop=2
" \ set shiftwidth=2
"" INDENTATION:
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
" set autoindent on
set ai
" Plugin Setup via Vundle
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 'VundleVim/Vundle.vim'
Plugin 'tmhedberg/SimpylFold'
Plugin 'vim-scripts/indentpython.vim'
Bundle 'Valloric/YouCompleteMe'
Plugin 'scrooloose/syntastic'
Plugin 'nvie/vim-flake8'
Plugin 'jnurmine/Zenburn'
Plugin 'altercation/vim-colors-solarized'
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'kien/ctrlp.vim'
"Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment