Skip to content

Instantly share code, notes, and snippets.

@kparrish
Created April 20, 2018 01:19
Show Gist options
  • Save kparrish/f2f0f00f5b5ac70811e146f284ab4d3e to your computer and use it in GitHub Desktop.
Save kparrish/f2f0f00f5b5ac70811e146f284ab4d3e to your computer and use it in GitHub Desktop.
My vimrc
set t_Co=256
colorscheme pychimp
" autocmd BufRead,BufNewFile *.py let python_highlight_all=1
set number
set autoindent
set mouse=a
" filetype on
" filetype plugin on
" let python_highlight_all=1
" Column at column 80
" set wrap
" set textwidth=79
" set formatoptions=qrn1
" set colorcolumn=85
" Fold code
" set foldmethod=indent
" set foldlevel=99
" Increase size of copy buffer between files
set viminfo='100,<2048,h
" Toggle for pasting into vim
set pastetoggle=<F2>
" Allow to do undos after closing file
set undofile
" Turn off vim regex searching
nnoremap / /\v
vnoremap / /\v
" Case insensitive for lower, sensitive for upper
set ignorecase
set smartcase
" Vim pathogen
execute pathogen#infect()
" YCM youcompleteme
let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py'
let g:ycm_autoclose_preview_window_after_completion=1 "Don't open window explaining fuction after compeletion
let g:ycm_confirm_extra_conf = 0
" map <space>f :YcmCompleter GoToDefinitionElseDeclaration<CR>
" Open to previous position
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
set tabstop=4
set softtabstop=0 noexpandtab
set shiftwidth=4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment