Skip to content

Instantly share code, notes, and snippets.

@Condla
Created February 7, 2018 15:53
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 Condla/255d1b2e8d41b5b1a29afeb670b01f23 to your computer and use it in GitHub Desktop.
Save Condla/255d1b2e8d41b5b1a29afeb670b01f23 to your computer and use it in GitHub Desktop.
my 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 'VundleVim/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
"
Plugin 'scrooloose/syntastic'
Plugin 'ervandew/supertab'
Plugin 'altercation/vim-colors-solarized'
Plugin 'jnurmine/Zenburn'
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'Townk/vim-autoclose'
Plugin 'kien/ctrlp.vim'
Plugin 'nvie/vim-pyunit'
Plugin 'pearofducks/ansible-vim'
Plugin 'davidhalter/jedi-vim'
"Plugin for PEP8 style guide
Plugin 'nvie/vim-flake8'
" 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
" enable syntax highlighting
syntax enable
"python from powerline.vim import setup as powerline_setup
"python powerline_setup()
"python del powerline_setup
set laststatus=2
" show line numbers
set number
nnoremap <F2> :set nonumber!<CR>
" set tabs to have 4 spaces
set ts=4
" indent when moving to the next line while writing code
set autoindent
" expand tabs into spaces
set expandtab
" when using the >> or << commands, shift lines by 4 spaces
set shiftwidth=4
" show a visual line under the cursor's current line
set cursorline
" show the matching part of the pair for [] {} and ()
set showmatch
" enable all Python syntax highlighting features
let python_highlight_all = 1
"set textwidth=79
set wildmode=longest,list,full
set wildmenu
set foldmethod=indent
set foldlevel=99
if has('gui_running')
set background=dark
colorscheme solarized
else
colorscheme zenburn
endif
let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore files in NERDTree
set rtp+=/Users/sdunkler/anaconda3//lib/python3.6/site-packages/powerline/bindings/vim
"/Users/sdunkler/anaconda3/lib/python3.6/powerline/bindings/vim
"/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim
set clipboard=unnamed
set t_Co=256
set number
nnoremap <F2> :set nonumber!<CR>
" change markdown toggle hotkey
"au VimEnter * NERDTree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment