-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimrc-basic
33 lines (28 loc) · 900 Bytes
/
vimrc-basic
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
" https://raw.githubusercontent.com/petong/dotfiles/master/vimrc-basic
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-sensible'
call plug#end()
" other sensible settings
set hidden "allow hidden buffers
set nu "show numbers
set wrap "wrap lines
set linebreak "Wrap lines at convenient points
set expandtab "convert tabs to spaces
set shiftwidth=2
set softtabstop=2
set expandtab
set noshiftround
set number
" Visualize tabs and newlines
set list listchars=tab:»·,trail:·,nbsp:·
set list
" movement within a single line in linewrap
nnoremap j gj
nnoremap k gk
" new default for mouse set in upstream is LAME
set mouse=