]> us-delaporte.pagekite.me Git - dotfiles.git/blob - files/vimrc
Remove some vim stuff to be vi ready
[dotfiles.git] / files / vimrc
1 " -------------------------------------------------------
2 "
3 " EdTheDev's .vimrc
4 "
5 " -------------------------------------------------------
6
7 " Let the leader key be ,
8 " let mapleader=","
9
10 " Easier Ex commands
11 nnoremap ; :
12
13 " iPad and Android keyboards have no ESC Key
14 inoremap ii <esc>
15
16 set smarttab
17
18 set nocompatible " be iMproved, required
19
20 set omnifunc=syntaxcomplete#Complete
21
22 filetype off " required
23
24 " =================
25 " Install vim-plug if missing
26 " =================
27 " let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
28 " if empty(glob(data_dir . '/autoload/plug.vim'))
29 " silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
30 " autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
31 " endif
32
33 " =================
34 " Here be Plugins!
35 " =================
36 " call plug#begin('~/.vim/plugged')
37
38 " Markdown highlighting
39 " Plug 'tpope/vim-markdown'
40 " Plug 'plasticboy/vim-markdown'
41 " let g:markdown_github_languages = ['sh', 'python']
42
43 " Distraction free writing.
44 " Plug 'junegunn/goyo.vim'
45
46 " Better status line.
47 " Plug 'bling/vim-airline'
48
49 " Plugin 'Windows-PowerShell-Syntax-Plugin'
50
51 " PowerShell Highlighting and detection
52 " Plug 'pprovost/vim-ps1'
53
54 " Much better theme
55 " Plug NLKNguyen/papercolor-theme
56 "
57 "
58 " Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
59
60 " call plug#end()
61
62 filetype plugin indent on " required for Vundle Bundle
63
64 nnoremap <leader>w :Goyo<Cr>
65
66 " If not something else, then assume Markdown
67 set filetype=markdown
68 set syntax=markdown
69
70 " Don't show tabs for HTML files. Do show trailing spaces."
71 au FileType html set nolist
72 au FileType javascript set nolist
73
74 set softtabstop=4 " makes the spaces feel like real tabs
75
76 " Sensible default for everything else.
77 set tabstop=2
78 set shiftwidth=2
79
80 " Working with Go
81 au BufNewFile,BufRead *.go set noet ts=2 sw=2 sts=2
82
83 " Working with Markdown
84
85 au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown
86 " colorscheme desert
87
88 " https://justinjoyce.dev/every-built-in-vim-color-scheme-with-screenshots/
89 set bg=dark
90 set number
91
92 set backupdir=c:\temp,.backup/,~/.backup/,/tmp//
93 set directory=~/.swp
94 set undodir=c:\temp,.undo/,~/.undo/,/tmp//
95 set backspace=indent,eol,start " Do not be pedantic about backspace.