-
Notifications
You must be signed in to change notification settings - Fork 2
/
0002-add-clearlinux-vimrc-file.patch
48 lines (46 loc) · 1.65 KB
/
0002-add-clearlinux-vimrc-file.patch
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
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Simental Magana, Marcos" <[email protected]>
Date: Tue, 23 Feb 2016 08:54:02 -0600
Subject: [PATCH] add clearlinux vimrc file
Signed-off-by: Patrick McCarty <[email protected]>
---
runtime/defaults.vim | 2 +-
vimrc | 17 +++++++++++++++++
2 files changed, 18 insertions(+), 1 deletion(-)
create mode 100644 vimrc
diff --git a/runtime/defaults.vim b/runtime/defaults.vim
index e7929ea..b61b7d5 100644
--- a/runtime/defaults.vim
+++ b/runtime/defaults.vim
@@ -79,7 +79,7 @@ inoremap <C-U> <C-G>u<C-U>
" terminals use ":", select text and press Esc.
if has('mouse')
if &term =~ 'xterm'
- set mouse=a
+ set mouse=r
else
set mouse=nvi
endif
diff --git a/vimrc b/vimrc
new file mode 100644
index 0000000..de561ba
--- /dev/null
+++ b/vimrc
@@ -0,0 +1,17 @@
+"Clear Linux stateless vim configuration
+
+set nocompatible
+syntax on " syntax highlighting
+set backspace=indent,eol,start " Backspace and delete problems
+set wildmenu " command line autocomplete
+set wildmode=longest:full,full " command line autocomplete config
+set ruler " status bar ruler
+set showcmd " part of the entered command to
+set showmatch " show matching bracket
+set incsearch " incremental search
+set hlsearch " highlight the search
+set history=25 " keep 25 lines of command line history
+
+" Don't wake up system with blinking cursor:
+" " http://www.linuxpowertop.org/known.php
+let &guicursor = &guicursor . ",a:blinkon0"