Last active
February 1, 2022 19:05
-
-
Save SixFiveSoftware/8b27436c67ecae0e1bcae6bf5284de59 to your computer and use it in GitHub Desktop.
Vimrc file using Vundle, vim-plug, and pathogen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
set exrc | |
set secure | |
au BufNewFile,BufRead Podfile set ft=ruby | |
au BufNewFile,BufRead Appfile set ft=ruby | |
au BufNewFile,BufRead Deliverfile set ft=ruby | |
au BufNewFile,BufRead Fastfile set ft=ruby | |
au BufNewFile,BufRead Gymfile set ft=ruby | |
au BufNewFile,BufRead Matchfile set ft=ruby | |
au BufNewFile,BufRead Snapfile set ft=ruby | |
au BufNewFile,BufRead Scanfile set ft=ruby | |
au BufNewFile,BufRead *.swift set ft=swift | |
" autocmd BufNewFile,BufRead *.swift set filetype=swift | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'vim-ruby/vim-ruby' | |
" 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 | |
set number | |
set relativenumber | |
syntax on | |
set tabstop=2 | |
set softtabstop=2 | |
set noexpandtab | |
set smarttab | |
set shiftwidth=2 | |
set autoread | |
set nowrap | |
set splitbelow | |
set splitright | |
set modifiable | |
set colorcolumn=110 | |
highlight ColorColumn ctermbg=darkgray | |
nnoremap <C-J> <C-W><C-J> | |
nnoremap <C-K> <C-W><C-K> | |
nnoremap <C-L> <C-W><C-L> | |
nnoremap <C-H> <C-W><C-H> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment