Skip to content

Instantly share code, notes, and snippets.

@overflow
Created October 20, 2022 00:28
Show Gist options
  • Save overflow/44eaee2a788f754d1e0cde886966e51b to your computer and use it in GitHub Desktop.
Save overflow/44eaee2a788f754d1e0cde886966e51b to your computer and use it in GitHub Desktop.
Vimrc file
set nocompatible " be iMproved, required
syntax enable
set background=dark
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 'L9'
" Git plugin not hosted on GitHub
" Plugin 'git://git.wincent.com/command-t.git'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
" Plugin 'ascenator/L9', {'name': 'newL9'}
Plugin 'ctrlp.vim'
Plugin 'tagbar'
Plugin 'nerdtree'
" 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
"
map <C-e> :NERDTreeToggle<CR>
map <C-t> :TagbarToggle<CR>
map <C-k> :CtrlPBuffer<CR>
set clipboard=unnamed
set rtp+=/usr/local/opt/fzf
Plugin 'dense-analysis/ale'
Plugin 'mgedmin/python-imports.vim'
Plugin 'jremmen/vim-ripgrep'
Plugin 'junegunn/fzf'
Plugin 'junegunn/fzf.vim'
Plugin 'wookayin/fzf-ripgrep.vim'
Plugin 'chengzeyi/fzf-preview.vim'
Plugin 'psf/black'
Plugin 'nvie/vim-flake8'
Plugin 'vim-syntastic/syntastic'
Plugin 'MattesGroeger/vim-bookmarks'
Plugin 'tpope/vim-rhubarb'
let g:fzf_command_prefix = 'FZF'
map <C-a> :RgFzf<cr>
" Check Python files with flake8 and pylint.
let b:ale_linters = ['flake8', 'pylint']
" Fix Python files with autopep8 and yapf.
let b:ale_fixers = ['autopep8', 'yapf']
" Disable warnings about trailing whitespace for Python files.
let b:ale_warn_about_trailing_whitespace = 0
let g:ale_python_black_options='--line-length=100 --skip-string-normalization --config ~/Code/udemy/pyproject.toml'
"" python indent
" python-mode
let g:pymode_options_max_line_length = 100
let g:pymode_lint_options_pep8 = {'max_line_length': g:pymode_options_max_line_length}
" Track the engine.
Plugin 'SirVer/ultisnips'
" Snippets are separated from the engine. Add this if you want them:
Plugin 'honza/vim-snippets'
" Trigger configuration. You need to change this to something other than <tab> if you use one of the following:
" - https://github.com/Valloric/YouCompleteMe
" - https://github.com/nvim-lua/completion-nvim
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
let g:UltiSnipsListSnippet="<c-S>"
" If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tagbar#flags = 'f'
let g:airline#extensions#tagbar#enabled = 1
let g:airline#extensions#branch#displayed_head_limit = 10
let g:airline_section_y=''
" remove the filetype part
" remove separators for empty sections
let g:airline_skip_empty_sections = 1
let g:airline_section_z = "\ue0a1:%l/%L: Col:%c"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment