-
Notifications
You must be signed in to change notification settings - Fork 3
/
vimrc_man
63 lines (46 loc) · 1.12 KB
/
vimrc_man
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
"-"-"-"-" Grant Hernandez's MANPAGER .vimrc "-"-"-"-"
" Immediately disable Vi compatibility
set nocompatible
" Get rid of splash screen and other messages
set shortmess+=IFsWt
" Color scheme
"colorscheme think_dark
colorscheme sweylapurp
" Syntax Options
syntax on
" Needed for man pages
filetype indent plugin on
" Not necessary
set nomodeline
" Case insensitive search, except when using capital letters
set ignorecase
set smartcase
" Highlight searches
set hlsearch
" Allows the clipboard to work on MacOS (note you need ViM 7.4 or greater)
set clipboard=unnamed
" Seizure prevention
set t_vb=
" Enable use of the mouse for all modes
set mouse=a
" Set the command window height to 1 line
set cmdheight=1
" Try to make ViM more like less
set noshowmode
set noshowcmd
set noruler
set scrolloff=999
" Make control up and down scroll by 1
set scroll=1
" Make j + k sane for a less-like environment
nnoremap <space> <PageDown>
nnoremap j <C-d>
nnoremap k <C-u>
vnoremap j <C-d>
vnoremap k <C-u>
autocmd BufWinEnter * call feedkeys("\<C-\>\<C-n>:\<CR>", 'n')
" Fat finger fixes
noremap Q ZZ
command Qa qa
command QA qa
command Q q