Last active
March 22, 2022 00:20
-
-
Save glwagner/a90faa2fbfd6a3e7a4b57b77bbefa041 to your computer and use it in GitHub Desktop.
My .vimrc for a MacbookPro running OSX 10.14 Mojave
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
" glw's .vimrc for a MacBook pro | |
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() | |
" let Vundle manage Vundle, required | |
Plugin 'JuliaEditorSupport/julia-vim' | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'godlygeek/tabular' | |
Plugin 'plasticboy/vim-markdown' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
set number " Turns on line numbers | |
syntax enable | |
let fortran_have_tabs=1 | |
" vim-markdown options | |
let g:vim_markdown_folding_disabled=1 | |
let g:vim_markdown_math=1 | |
" Define a command to skip forward and backward 10 words. | |
nnoremap E 10e | |
nnoremap B 10b | |
" Define a 'stamp' keymapping that replaces current word with yanked text | |
nnoremap S diw"0P | |
" Define a 'paste-replace' keymapping that overwrites with yanked text | |
nnoremap V maR<C-R>"<C-[>`a | |
" Define a 'search for word under cursor' keymapping | |
nnoremap T /<C-R><C-W><Enter> | |
" Convert tab key to insert four spaces. | |
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab | |
augroup filetype_julia | |
autocmd! | |
autocmd FileType julia setlocal tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab | |
augroup END | |
" Redefine syntax group colors in part for aesthetic, in part | |
" to allow control with Mac's Terminal preferences | |
highlight LineNr ctermfg=Black | |
highlight Comment ctermfg=LightRed | |
highlight PreProc ctermfg=4 " Blue | |
highlight Macro cterm=bold ctermfg=Magenta " Blue | |
highlight Constant ctermfg=1 " Red | |
highlight String ctermfg=2 " Green | |
highlight Type ctermfg=6 " Cyan | |
highlight ColorColumn ctermbg=8 " Bright black (same as a comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment