-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vsvimrc
More file actions
63 lines (51 loc) · 1.21 KB
/
.vsvimrc
File metadata and controls
63 lines (51 loc) · 1.21 KB
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
set hidden
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
set spell spelllang=en_us
set encoding=UTF-8
set undofile
set undodir=~/.config/nvim/undodir
set listchars=eol:$,nbsp:_,tab:>-,trail:~,extends:>,precedes:<
set list
set colorcolumn=89
set foldlevel=99
set cursorline
set completeopt-=noinsert
set completeopt-=noselect
set completeopt-=longest
if has('clipboard')
if has('unnamedplus') " When possible use + register for copy-paste
set clipboard=unnamed,unnamedplus
else " On mac and Windows, use * register for copy-paste
set clipboard=unnamed
endif
endif
set ignorecase
set conceallevel=1
set expandtab
set autoindent
set softtabstop=4
set shiftwidth=2
set tabstop=4
set history=1000
set mouse+=a
" Visual shifting (does not exit Visual mode)
vnoremap < <gv
vnoremap > >gv
" Allow using the repeat operator with a visual selection (!)
" http://stackoverflow.com/a/8064607/127816
vnoremap . :normal .<CR>
set number relativenumber
set hlsearch
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
filetype plugin indent on
syntax enable
set cmdheight=2
set shortmess+=c
set signcolumn=yes