-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
59 lines (48 loc) · 1.22 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
52
53
54
55
56
57
58
59
"" vim configuration
let g:is_posix = 1
set nocompatible
set history=50
" Use UTF-8
set encoding=utf-8
set fileencodings=ucs-bom,utf-8,latin1
setglobal fileencoding=utf-8
" Enable the mouse
set mouse=a
" Propagate the clipboard (uncomment one of the versions)
""" 1. To macOS
" set clipboard=unnamed
"
""" 2. To a local machine via SSH
" function! PropagatePasteBufferViaSSH()
" let @n=@
" call system('nc -N localhost 2224', @n)
" echo "Copied and propogated"
" endfunction
" function! PopulatePasteBufferFromSSH()
" let @" = system('nc localhost 2225')
" echo "Buffer populated"
" endfunction
" nnoremap yy yy:call PropagatePasteBufferViaSSH()<cr>
" vnoremap y y:call PropagatePasteBufferViaSSH()<cr>
" nnoremap è :call PropagatePasteBufferViaSSH()<cr>
" nnoremap é :call PopulatePasteBufferFromSSH()<cr>
" Theme and coloration
set t_Co=256
colorscheme elflord
set number
set showmode
set ruler
" Activate syntax coloring and indentation
filetype plugin indent on
syntax on
" Indentation settings
set smartindent
set expandtab " Use spaces for tabs
set tabstop=4
set shiftwidth=4
set backspace=indent,eol,start
" Enable modelines
set modeline
set modelines=5
" Use <C-l> to center the cursor
noremap <C-l> z.