Skip to content

Instantly share code, notes, and snippets.

@gerardsimons
Created April 25, 2021 19:55
Show Gist options
  • Save gerardsimons/22a187a272b7470ac3d8e6dddfe00166 to your computer and use it in GitHub Desktop.
Save gerardsimons/22a187a272b7470ac3d8e6dddfe00166 to your computer and use it in GitHub Desktop.
" Took most of this from here https://realpython.com/vim-and-python-a-match-made-in-heaven/#macos-os-x
set shell=/bin/bash
" https://realpython.com/vim-and-python-a-match-made-in-heaven/#vundle "
set nocompatible " 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'
" add all your plugins here (note older versions of Vundle
" used Bundle instead of Plugin)
" ...
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
Plugin 'vim-syntastic/syntastic'
Plugin 'nvie/vim-flake8'
let python_highlight_all=1
syntax on
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore files in NERDTree
Plugin 'kien/ctrlp.vim'
set nu " Enable line numbering
Plugin 'dart-lang/dart-vim-plugin'
" enable folding
set foldmethod=indent
set foldlevel=99
nnoremap <space> za
Plugin 'tmhedberg/SimpylFold'
"split navigations
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
set tabstop=4
set softtabstop=4
set shiftwidth=4
set textwidth=159
set expandtab
set autoindent
set fileformat=unix
Plugin 'vim-scripts/indentpython.vim'
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
set encoding=utf-8
Plugin 'Valloric/YouCompleteMe'
let g:ycm_autoclose_preview_window_after_completion=1
let mapleader=","
map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
Plugin 'jnurmine/Zenburn'
Plugin 'altercation/vim-colors-solarized'
Plugin 'tpope/vim-fugitive'
set clipboard=unnamed
" Hardcore mode -- disable the arrow keys
noremap <Up> ""
noremap! <Up> <Esc>
noremap <Down> ""
noremap! <Down> <Esc>
noremap <Left> ""
noremap! <Left> <Esc>
noremap <Right> ""
noremap! <Right> <Esc>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment