From 24100009f2d88161f1ed8ee486224381e40f4be5 Mon Sep 17 00:00:00 2001 From: Shaun Setlock Date: Mon, 30 Dec 2024 20:56:46 -0500 Subject: [PATCH] Updated .vimrc to remove the plugin which required vim version compiled with python. --- vim/.vimrc | 89 +++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 64 insertions(+), 25 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index 0154953..6d01f49 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -4,40 +4,79 @@ 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' - -" Keep Plugin commands between vundle#begin/end. - +""" Keep Plugin commands between vundle#begin/end. +" git +Plugin 'tpope/vim-fugitive' +" autocomplete Plugin 'ycm-core/YouCompleteMe' - - -" All of your Plugins must be added before the following line +" markdown +Plugin 'jtratner/vim-flavored-markdown' +Plugin 'suan/vim-instant-markdown' +Plugin 'nelstrom/vim-markdown-preview' +"python sytax checker +Plugin 'nvie/vim-flake8' +Plugin 'vim-scripts/Pydiction' +Plugin 'vim-scripts/indentpython.vim' +Plugin 'scrooloose/syntastic' +""" 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 +filetype plugin indent on " required + +" Put your non-Plugin stuff after this line +" autocomplete +let g:ycm_autoclose_preview_window_after_completion=1 +" line numbering set number set hlsearch syntax on - set backspace=indent,eol,start - set background=dark set showcmd -let python_highlight_all = 1 +"omnicomplete +autocmd FileType python set omnifunc=pythoncomplete#Complete +"------------Start Python PEP 8 stuff---------------- +" Number of spaces that a pre-existing tab is equal to. +au BufRead,BufNewFile *py,*pyw,*.c,*.h set tabstop=4 + +"spaces for indents +au BufRead,BufNewFile *.py,*pyw set shiftwidth=4 +au BufRead,BufNewFile *.py,*.pyw set expandtab +au BufRead,BufNewFile *.py set softtabstop=4 + +" Use the below highlight group when displaying bad whitespace is desired. +highlight BadWhitespace ctermbg=red guibg=red + +" Display tabs at the beginning of a line in Python mode as bad. +au BufRead,BufNewFile *.py,*.pyw match BadWhitespace /^\t\+/ +" Make trailing whitespace be flagged as bad. +au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/ + +" Wrap text after a certain number of characters +au BufRead,BufNewFile *.py,*.pyw, set textwidth=100 + +" Use UNIX (\n) line endings. +au BufNewFile *.py,*.pyw,*.c,*.h set fileformat=unix + +" Set the default file encoding to UTF-8: +set encoding=utf-8 + +" For full syntax highlighting: +let python_highlight_all=1 +syntax on + +" Keep indentation level from previous line: +autocmd FileType python set autoindent + +" make backspaces more powerfull +set backspace=indent,eol,start + + +"Folding based on indentation: +autocmd FileType python set foldmethod=indent +"use space to open folds +nnoremap za +"----------Stop python PEP 8 stuff--------------