-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
51 lines (37 loc) · 1.01 KB
/
.vimrc
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
set nocompatible
set nobackup
filetype plugin indent on
syntax on
set hidden
set history=10000
set sessionoptions=buffers,curdir,folds,options,resize,winpos,winsize
set clipboard+=unnamed " use clipboard
set incsearch " do incremental searching
set ignorecase " ignore case while searching
set smartcase
set autoindent
set expandtab
set shiftwidth=4
set formatoptions-=t
set foldmethod=indent
set foldnestmax=1
set foldlevel=2
set wildchar=<Tab> " Expand the command line using tab
" arrows warp around lines
set whichwrap=bs<>[]
" Insert space then paste
nmap <M-p> a<Space><ESC>p
" Edit and return to normal mode
nnoremap <CR> i<CR><ESC>
nnoremap <Space> i<Space><ESC>l
nnoremap <Tab> i<Tab><ESC>l
" Buffer nav
nmap <C-Tab> :bn<CR>
nmap <S-C-Tab> :bp<CR>
" allow backspacing over everything in insert mode
set backspace=eol,start,indent
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set guioptions-=m " no menu
set guioptions-=T " no toolbar
set guifont=Menlo\ Regular:h\ 12