Skip to content

Instantly share code, notes, and snippets.

@anishg24
Last active December 18, 2022 14:19
Show Gist options
  • Save anishg24/2516c6eaa416c30e3a463e0c2cf1f4a0 to your computer and use it in GitHub Desktop.
Save anishg24/2516c6eaa416c30e3a463e0c2cf1f4a0 to your computer and use it in GitHub Desktop.
My custom vimrc file for all distros that can support it.
set nocompatible " be iMproved, 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 '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 'vim-airline/vim-airline'
Plugin 'yuttie/comfortable-motion.vim'
Plugin 'tpope/vim-surround'
Plugin 'jiangmiao/auto-pairs'
Plugin 'scrooloose/syntastic'
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'joshdick/onedark.vim'
Plugin 'mg979/vim-visual-multi', {'branch': 'master'}
Plugin 'junegunn/vim-easy-align'
" 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'}
" 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
" Custom settings
syntax on
set number
set tabstop=4
set shiftwidth=4
set expandtab
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_SR = "\<Esc>]50;CursorShape=2\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
set ttimeout
set ttimeoutlen=1
set ttyfast
" Comfortable Motion Settings
noremap <silent> <ScrollWheelDown> :call comfortable_motion#flick(40)<CR>
noremap <silent> <ScrollWheelUp> :call comfortable_motion#flick(-40)<CR>
set mouse=a
" Syntastic Settings
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 = 1
let g:syntastic_check_on_wq = 0
" Indentation Guides
let g:indent_guides_enable_on_vim_startup = 1
" Onedark
let g:airline_theme="onedark"
colorscheme onedark
" Start interactive EasyAlign in visual mode (e.g. vipga)
xmap ga <Plug>(EasyAlign)
" Start interactive EasyAlign for a motion/text object (e.g. gaip)
nmap ga <Plug>(EasyAlign)
#!/bin/bash -e
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
https://gist.githubusercontent.com/anishg24/2516c6eaa416c30e3a463e0c2cf1f4a0/raw/b85f19992130b9e4f1a7d906185053d074dd72fb/.vimrcvim +PluginInstall +qall
echo '
"Onedark
let g:airline_theme="onedark"
colorscheme onedark
' >> ./.vimrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment