Last active
August 16, 2022 14:02
-
-
Save ats/4ca36783384c246e90ca764985d3e679 to your computer and use it in GitHub Desktop.
This file contains 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
" .vimrc | |
" This began as a "minimal vimrc for new vim users to start with" at | |
" http://vimuniversity.com/samples/your-first-vimrc-should-be-nearly-empty | |
" | |
" But that URL no longer exists. | |
" | |
" Original Author: Bram Moolenaar <[email protected]> | |
" Made more minimal by: Ben Orenstein | |
" Modified by : Ben McCormick | |
" Last change by ats: March 21, 2021 | |
" ----- | |
" To use it, copy it to | |
" for Unix based systems (including OSX and Linux): ~/.vimrc | |
" for Windows : $VIM\_vimrc | |
" | |
" If you don't understand a setting in here, just type ':h setting'. | |
" Use Vim settings, rather than Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
" ----- start vundle | |
" INSTALL VUNDLE: | |
" $ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
" Launch vim and run :PluginInstall | |
" To install from command line: vim +PluginInstall +qall | |
" | |
" 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 'gmarik/Vundle.vim' | |
Plugin 'altercation/vim-colors-solarized' | |
Plugin 'rafi/awesome-vim-colorschemes' | |
Plugin 'vim-scripts/sensible.vim' | |
Plugin 'plasticboy/vim-markdown' | |
Plugin 'bling/vim-airline' | |
Plugin 'tpope/vim-surround' | |
"Plugin 'vim-pandoc/vim-pandoc' | |
Plugin 'kien/ctrlp.vim' | |
" bound to ; | |
Plugin 'scrooloose/nerdtree.git' | |
" bound to \e | |
Plugin 'tpope/vim-fugitive' | |
"Plugin 'powerline/powerline.git' | |
Plugin 'moll/vim-bbye.git' | |
" enables :Bdelete | |
Plugin 'ayu-theme/ayu-vim' | |
" https://github.com/SirVer/ultisnips | |
" Track the engine. | |
" Plugin 'SirVer/ultisnips' | |
Plugin 'Townk/vim-autoclose' | |
" Snippets are separated from the engine. Add this if you want them: | |
Plugin 'honza/vim-snippets' | |
" 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 | |
" ----- end vundle | |
" | |
" Make backspace behave in a sane manner. | |
set backspace=indent,eol,start | |
" Switch syntax highlighting on | |
syntax on | |
" Enable file type detection and do language-dependent indenting. | |
filetype plugin indent on | |
" Show line numbers | |
set number | |
" Allow hidden buffers, don't limit to 1 file per window/split | |
set hidden | |
" ------------------ | |
" | |
if has("gui_vimr") | |
" VimR specific stuff | |
endif | |
if has("gui_macvim") | |
" MacVim specific stuff | |
endif | |
"execute pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
set background=dark | |
"let g:solarized_termcolors=256 | |
colorscheme solarized | |
set guifont=Source\ Code\ Pro:h18 | |
set wrap | |
set linebreak | |
set nolist " list disables linebreak | |
nnoremap <Space> za | |
nnoremap <C-J> <C-W><C-J> "Ctrl-j to move down a split | |
nnoremap <C-K> <C-W><C-K> "Ctrl-k to move up a split | |
nnoremap <C-L> <C-W><C-L> "Ctrl-l to move right a split | |
nnoremap <C-H> <C-W><C-H> "Ctrl-h to move left a split | |
"http://statico.github.io/vim.html | |
:nmap ; :CtrlPMRU<CR> | |
:let g:ctrlp_map = '<Leader>t' | |
:let g:ctrlp_match_window_bottom = 0 | |
:let g:ctrlp_match_window_reversed = 0 | |
:let g:ctrlp_custom_ignore = '\v\~$|\.(o|swp|pyc|wav|mp3|ogg|blend)$|(^|[/\\])\.(hg|git|bzr)($|[/\\])|__init__\.py' | |
:let g:ctrlp_working_path_mode = 0 | |
:let g:ctrlp_dotfiles = 0 | |
:let g:ctrlp_switch_buffer = 0 | |
:nmap \e :NERDTreeToggle<CR> | |
" https://github.com/SirVer/ultisnips | |
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe. | |
let g:UltiSnipsExpandTrigger="<tab>" | |
let g:UltiSnipsJumpForwardTrigger="<c-b>" | |
let g:UltiSnipsJumpBackwardTrigger="<c-z>" | |
" If you want :UltiSnipsEdit to split your window. | |
let g:UltiSnipsEditSplit="vertical" | |
:nnoremap <Leader>q :Bdelete<CR> | |
" http://stackoverflow.com/questions/23279292/how-to-make-vim-understand-that-md-files-contain-markdown-code-and-not-modula | |
autocmd BufNewFile,BufFilePre,BufRead *.md set filetype=markdown | |
set com=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,b:- | |
set formatoptions=tcroqln | |
autocmd FileType markdown setlocal shiftwidth=2 tabstop=2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment