Skip to content

Instantly share code, notes, and snippets.

@mattyjones
Created May 1, 2020 00:30
Show Gist options
  • Save mattyjones/14f68a9cb2345befaf773054026909b1 to your computer and use it in GitHub Desktop.
Save mattyjones/14f68a9cb2345befaf773054026909b1 to your computer and use it in GitHub Desktop.
" Caffeintaed Engineering
" .vimrc version 0.0.1
"
"
" Dependencies
"
" apt install build-essential cmake python3-dev pandoc xdotool
" pip3 install pynvim git+git://github.com/powerline/powerline
"
"
"
" Bundles
"
" deoplete code completion
" vim-hclfmt format hcl code
" vim-json json bindings and formating
" editorconfig-vim editorconfig support
" simplyfold better code folding
" vim-fugitive git support
" material material theme
" syntastic code syntax checking
" vim-go golang support
" vim-javascript javascript support
" vim-rubocop rubocop support
"
execute pathogen#infect()
colorscheme onedark
"" colorscheme material
"" set statusline+=%#warningmsg#
"" set statusline+=%{SyntasticStatuslineFlag()}
"" set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 1
let g:syntastic_go_checkers = ['go', 'golint', 'errcheck']
let g:syntastic_python_checkers = ['pylint']
" Code Formating
set autoindent " Auto-indent new lines
set expandtab " Use spaces instead of tabs
set shiftwidth=4 " Number of auto-indent spaces
set smartindent " Enable smart-indent
set smarttab " Enable smart-tabs
set softtabstop=4 " Number of spaces per Tab
set nofoldenable " disable auto fold
set textwidth=79 " Set the line length
" Enable folding
set foldmethod=indent
set foldlevel=99
nnoremap <space> za
let g:SimpylFold_docstring_preview=1
" Search Settings
set ignorecase " Ignorecase when searching
set hlsearch " Highlight all search results
set smartcase " Enable smart-case search
set incsearch " Searches for strings incrementally
" Explorer Settings
let g:netrw_liststyle = 3 " Set the style of the the top bar
let g:netrw_browse_split = 3 " Set how the explorer is displayed
" General Editor Settings
set number " Show line numbers
set nospell " Turn off spell checking
set nowrap " Wrap lines
set noshowmode " Dont show the mode
set textwidth=100 " Line wrap (number of cols)
set showmatch " Highlight matching brace
set ruler " Show row and column ruler information
set undolevels=1000 " Number of undo levels
set listchars="" " get rid of annoying non-printing characters
set fileformat=unix
" General Vim Settings
set autochdir " Change working directory to open buffer
set backupdir=~/.local/backups " Backup directories
filetype plugin indent on " Turn on the ability to identify filetypes
set rtp+=/home/matt.jones/.local/lib/python3.6/site-packages/powerline/bindings/vim
set laststatus=2
set t_Co=256
" Markdown Preview
"" let vim_markdown_preview_toggle=2
"" let vim_markdown_preview_browser='Google Chrome'
"" let vim_markdown_preview_temp_file=1
"" let vim_markdown_preview_pandoc=1
"" let vim_markdown_preview_hotkey='<C-m>'
"" let vim_markdown_preview_use_xdg_open=1
" Deoplete Settings
""let g:deoplete#enable_at_startup = 1
" Go Plugin Settings
let g:go_fmt_command = "goimports"
""call deoplete#custom#option('omni_patterns', { 'go': '[^. *\t]\.\w*' })
"" call deoplete#custom#option('omni_patterns', { 'py': '[^. *\t]\.\w*' })
" Python Specific Formatting
"" let python_highlight_all=1
""au BufNewFile,BufRead *.py
"" set tabstop=4
"" set softtabstop=4
"" set shiftwidth=4
"" set textwidth=79
"" set expandtab
"" set autoindent
"" set fileformat=unix
" Web Dev Specific Formating
"" au BufNewFile,BufRead *.js, *.html, *.css
"" \ set tabstop=2
"" \ set softtabstop=2
"" \ set shiftwidth=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment