Browse Source

initial commit: emacs and vim

Cullum Smith 2 years ago
parent
commit
c6b93e149a
6 changed files with 725 additions and 0 deletions
  1. 268
    0
      dircolors/.dircolors
  2. 9
    0
      emacs/.emacs.d/.gitignore
  3. 306
    0
      emacs/.emacs.d/init.el
  4. 67
    0
      vim/.vimrc
  5. 71
    0
      x11/.Xresources
  6. 4
    0
      x11/.xmodmaprc

+ 268
- 0
dircolors/.dircolors View File

@@ -0,0 +1,268 @@
1
+# Zenburn color theme for the color GNU ls utility.
2
+# Ivaylo Kuzev <ivkuzev@gmail.com>, 2014 - 2015
3
+
4
+# Term Section
5
+TERM Eterm
6
+TERM ansi
7
+TERM color-xterm
8
+TERM con132x25
9
+TERM con132x30
10
+TERM con132x43
11
+TERM con132x60
12
+TERM con80x25
13
+TERM con80x28
14
+TERM con80x30
15
+TERM con80x43
16
+TERM con80x50
17
+TERM con80x60
18
+TERM cons25
19
+TERM console
20
+TERM cygwin
21
+TERM dtterm
22
+TERM eterm-color
23
+TERM gnome
24
+TERM gnome-256color
25
+TERM jfbterm
26
+TERM konsole
27
+TERM kterm
28
+TERM linux
29
+TERM linux-c
30
+TERM mach-color
31
+TERM mlterm
32
+TERM putty
33
+TERM rxvt
34
+TERM rxvt-256color
35
+TERM rxvt-cygwin
36
+TERM rxvt-cygwin-native
37
+TERM rxvt-unicode
38
+TERM rxvt-unicode256
39
+TERM rxvt-unicode-256color
40
+TERM screen
41
+TERM screen-256color
42
+TERM screen-256color-bce
43
+TERM screen-bce
44
+TERM screen-w
45
+TERM screen.linux
46
+TERM st
47
+TERM st-meta
48
+TERM st-256color
49
+TERM st-meta-256color
50
+TERM vt100
51
+TERM xterm
52
+TERM xterm-16color
53
+TERM xterm-256color
54
+TERM xterm-88color
55
+TERM xterm-color
56
+TERM xterm-debian
57
+TERM xterm-termite
58
+
59
+## Documentation
60
+#
61
+# Attribute codes:
62
+# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
63
+# Text color codes:
64
+# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
65
+# Background color codes:
66
+# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
67
+#
68
+# Text 256 color coding:
69
+# 38;5;COLOR_NUMBER
70
+# Background 256 color coding:
71
+# 48;5;COLOR_NUMBER
72
+
73
+# block device driver:
74
+BLK 48;5;108;38;5;223;01
75
+# file with capability:
76
+CAPABILITY 01;38;5;95
77
+# character device driver:
78
+CHR 48;5;108;38;5;223;01
79
+# directory:
80
+DIR 01;38;5;223
81
+# door:
82
+DOOR 48;5;234;38;5;180;01
83
+# This is for files with execute permission:
84
+EXEC 01;38;5;108
85
+# pipe:
86
+FIFO 48;5;234;38;5;180;01
87
+# regular file:
88
+#FILE 00
89
+# symbolic link:
90
+LINK 48;5;234;38;5;223
91
+# normal (nonfilename) text:
92
+#NORMAL 00
93
+# orphaned symbolic link:
94
+ORPHAN 48;5;234;38;5;187
95
+# directory that is other-writable (o+w) and not sticky:
96
+OTHER_WRITABLE 48;5;234;38;5;180
97
+# file that is setuid (u+s):
98
+SETUID 48;5;234;38;5;66
99
+# file that is setgid (g+s):
100
+SETGID 48;5;234;38;5;66
101
+# socket:
102
+SOCK 48;5;234;38;5;180;01
103
+# directory with the sticky bit set (+t) and not other-writable:
104
+STICKY 48;5;180;38;5;234
105
+# dir that is sticky and other-writable (+t,o+w):
106
+STICKY_OTHER_WRITABLE 48;5;180;38;5;234
107
+
108
+# archives
109
+.7z 01;38;5;174
110
+.arj 01;38;5;174
111
+.bz2 01;38;5;174
112
+.bz 01;38;5;174
113
+.gz 01;38;5;174
114
+.rar 01;38;5;174
115
+.tar 01;38;5;174
116
+.tgz 01;38;5;174
117
+.tbz 01;38;5;174
118
+.tbz2 01;38;5;174
119
+.xz 01;38;5;174
120
+.zip 01;38;5;174
121
+
122
+# packaged apps
123
+.apk 01;38;5;95
124
+.deb 01;38;5;174
125
+.jad 01;38;5;95
126
+.jar 01;38;5;95
127
+.rpm 01;38;5;174
128
+
129
+# images|graphics
130
+.bmp 00;38;5;109
131
+.gif 00;38;5;109
132
+.ico 00;38;5;109
133
+.jpg 00;38;5;109
134
+.JPG 00;38;5;109
135
+.jpeg 00;38;5;109
136
+.png 00;38;5;109
137
+.svg 00;38;5;109
138
+.xbm 00;38;5;109
139
+.xpm 00;38;5;109
140
+
141
+# audio formats
142
+.aac 00;38;5;116
143
+.au 00;38;5;116
144
+.flac 00;38;5;116
145
+.mid 00;38;5;116
146
+.midi 00;38;5;116
147
+.mka 00;38;5;116
148
+.mp3 00;38;5;116
149
+.mpc 00;38;5;116
150
+.ogg 00;38;5;116
151
+.ra 00;38;5;116
152
+.wav 00;38;5;116
153
+
154
+# video formats
155
+.mov 00;38;5;66
156
+.mpg 00;38;5;66
157
+.mpeg 00;38;5;66
158
+.m2v 00;38;5;66
159
+.mkv 00;38;5;66
160
+.ogm 00;38;5;66
161
+.mp4 00;38;5;66
162
+.m4v 00;38;5;66
163
+.mp4v 00;38;5;66
164
+.vob 00;38;5;66
165
+.qt 00;38;5;66
166
+.nuv 00;38;5;66
167
+.wmv 00;38;5;66
168
+.asf 00;38;5;66
169
+.rm 00;38;5;66
170
+.rmvb 01;38;5;66
171
+.flc 00;38;5;66
172
+.avi 00;38;5;66
173
+.fli 00;38;5;66
174
+.flv 00;38;5;66
175
+.gl 00;38;5;66
176
+.m2ts 00;38;5;66
177
+.divx 00;38;5;66
178
+.webm 00;38;5;66
179
+
180
+# shell
181
+.awk 00;38;5;151
182
+.bash 00;38;5;151
183
+.bat 00;38;5;151
184
+.BAT 00;38;5;151
185
+.sed 00;38;5;151
186
+.sh 00;38;5;151
187
+.zsh 00;38;5;151
188
+
189
+# build
190
+*CMakeLists.txt 00;38;5;187
191
+.cabal 00;38;5;187
192
+*Makefile 00;38;5;187
193
+.mk 00;38;5;187
194
+.make 00;38;5;187
195
+
196
+# source files
197
+.c 01;38;5;187
198
+.h 01;38;5;187
199
+.s 01;38;5;187
200
+.cs 01;38;5;187
201
+.java 01;38;5;187
202
+.scala 01;38;5;187
203
+.hs 01;38;5;187
204
+.py 01;38;5;187
205
+.rb 01;38;5;187
206
+.php 01;38;5;187
207
+.pl 01;38;5;187
208
+.vim 01;38;5;187
209
+.js 01;38;5;187
210
+.coffee 01;38;5;187
211
+.go 01;38;5;187
212
+.lisp 01;38;5;187
213
+.scm 01;38;5;187
214
+
215
+# documents
216
+.txt 04;38;5;188
217
+.tex 04;38;5;188
218
+.html 04;38;5;188
219
+.xhtml 04;38;5;188
220
+.xml 04;38;5;188
221
+.md 04;38;5;188
222
+.mkd 04;38;5;188
223
+.markdown 04;38;5;188
224
+.org 04;38;5;188
225
+.pandoc 04;38;5;188
226
+.pdc 04;38;5;188
227
+.pdf 04;38;5;188
228
+
229
+# Files of special interest
230
+*rc 04;38;5;180
231
+.conf 04;38;5;180
232
+*Dockerfile 04;38;5;180
233
+
234
+# meta
235
+*README 04;38;5;187
236
+*LICENSE 04;38;5;187
237
+*AUTHORS 04;38;5;187
238
+
239
+# version control
240
+.gitignore 00;38;5;248
241
+.gitmodules 00;38;5;248
242
+
243
+# logs and backups
244
+.log 00;38;5;234
245
+.bak 00;38;5;234
246
+.aux 00;38;5;234
247
+.toc 00;38;5;234
248
+*~ 00;38;5;234
249
+*# 00;38;5;234
250
+.swp 00;38;5;234
251
+.tmp 00;38;5;234
252
+.temp 00;38;5;234
253
+.o 00;38;5;234
254
+.pyc 00;38;5;234
255
+.class 00;38;5;234
256
+.cache 00;38;5;234
257
+
258
+# pacman files
259
+.pacnew 48;5;95;38;5;108
260
+.pacsave 48;5;95;38;5;108
261
+.pacorig 48;5;95;38;5;108
262
+*PKGBUILD 00;38;5;110
263
+
264
+# rpm files
265
+.rpmsave 48;5;95;38;5;108
266
+.rpmorig 48;5;95;38;5;108
267
+.rpmnew 48;5;95;38;5;108
268
+.spec 00;38;5;110

+ 9
- 0
emacs/.emacs.d/.gitignore View File

@@ -0,0 +1,9 @@
1
+autosave
2
+auto-save-list
3
+backups
4
+elpa
5
+places
6
+ido.last
7
+projectile-bookmarks.eld
8
+undo
9
+recentf

+ 306
- 0
emacs/.emacs.d/init.el View File

@@ -0,0 +1,306 @@
1
+; me
2
+(setq user-full-name "Cullum Smith"
3
+      user-mail-address "cullum@c0ffee.net")
4
+
5
+; gotta go fast
6
+(setq gc-cons-threshold (* 50 1000 1000))
7
+
8
+; remove menubar, scrollbar, etc
9
+(menu-bar-mode -1)
10
+(when (fboundp 'tool-bar-mode)
11
+ (tool-bar-mode -1))
12
+(when (fboundp 'scroll-bar-mode)
13
+ (scroll-bar-mode -1))
14
+(when (fboundp 'horizontal-scroll-bar-mode)
15
+ (horizontal-scroll-bar-mode -1))
16
+
17
+; dark window border on OS X
18
+(add-to-list 'default-frame-alist '(ns-transparent-titlebar . t))
19
+(add-to-list 'default-frame-alist '(ns-appearance . dark))
20
+
21
+; UTF-8 everywhere
22
+(prefer-coding-system 'utf-8)
23
+(set-default-coding-systems 'utf-8)
24
+(set-terminal-coding-system 'utf-8)
25
+(set-keyboard-coding-system 'utf-8)
26
+
27
+; some sensible defaults
28
+(setq save-interprogram-paste-before-kill t)  ; preserve OS clipboard before killing text
29
+(setq redisplay-dont-pause t)                 ; increase rendering performance
30
+(setq inhibit-startup-message t)              ; don't show splash screen
31
+(setq initial-scratch-message nil)            ; don't show scratch buffer message
32
+(setq vc-follow-symlinks t)                   ; don't ask before visiting symlinks
33
+(setq sentence-end-double-space nil)          ; don't enforce two spaces to end sentences
34
+(setq require-final-newline t)                ; put newlines at the end of every file
35
+(setq mouse-yank-at-point t)                  ; paste text wherever the point is
36
+(setq ns-pop-up-frames nil)                   ; open all files in the same emacs window
37
+(setq ring-bell-function 'ignore)             ; no visual or audible bell
38
+(setq apropos-do-all t)                       ; search all defined documentation strings
39
+(setq load-prefer-newer t)                    ; don't load outdated bytecode files
40
+(show-paren-mode 1)                           ; show matching parens
41
+(setq show-paren-delay 0)                     ;  ... but don't make me wait for it
42
+(fset 'yes-or-no-p 'y-or-n-p)                 ; ask y/n instead of full yes/no
43
+(global-hl-line-mode 1)                       ; highlight current line
44
+(column-number-mode t)                        ; show column number in modeline
45
+(line-number-mode t)                          ; show line number in modeline
46
+(size-indication-mode t)                      ; show filesize in modeline
47
+(delete-selection-mode t)                     ; replace highlighted text when typing
48
+(global-auto-revert-mode t)                   ; update buffer when file changes
49
+(setq-default indent-tabs-mode nil)           ; use spaces instead of tabs
50
+(setq-default tab-width 2)                    ; 2-space tabs
51
+(setq-default fill-column 80)                 ; 80 character line width
52
+(save-place-mode 1)                           ; save cursor location in files
53
+(global-linum-mode t)                         ; show line numbers in left column
54
+(electric-indent-mode 1)                      ; smart auto-indent
55
+(setq-default electric-indent-inhibit t)      ;  ... disable indenting previous line (WHY?!)
56
+(electric-pair-mode 1)                        ; smart matching parens/braces
57
+(setq ediff-window-setup-function 'ediff-setup-windows-plain) ; keep all windows in one frame
58
+
59
+; nice scrolling
60
+(setq scroll-margin 0
61
+      scroll-conservatively 100000
62
+      scroll-preserve-screen-position 1)
63
+
64
+; vim-style delete-to-char
65
+(autoload 'zap-up-to-char "misc" "Kill up to, but not including ARGth occurrence of CHAR." t)
66
+
67
+; better searching/completion
68
+(global-set-key (kbd "M-/") 'hippie-expand)
69
+(global-set-key (kbd "C-x C-b") 'ibuffer)
70
+(global-set-key (kbd "M-z") 'zap-up-to-char)
71
+(global-set-key (kbd "C-M-s") 'isearch-forward)
72
+(global-set-key (kbd "C-M-r") 'isearch-backward)
73
+
74
+; ls command for dired view
75
+(setq-default dired-listing-switches
76
+  (cond
77
+   ((string-equal system-type "gnu/linux") "-alh --group-directories-first")
78
+   (t "-alh")))
79
+
80
+; navigate windows with shift + arrow keys
81
+(when (fboundp 'windmove-default-keybindings) (windmove-default-keybindings))
82
+
83
+; no littering the filesystem with temp files
84
+(unless (file-directory-p (concat user-emacs-directory "backups"))
85
+  (make-directory (concat user-emacs-directory "backups")))
86
+(unless (file-directory-p (concat user-emacs-directory "autosave"))
87
+  (make-directory (concat user-emacs-directory "autosave")))
88
+(setq save-place-file (concat user-emacs-directory "places"))
89
+(setq backup-directory-alist `((".*" . ,(concat user-emacs-directory "backups"))))
90
+(setq tramp-backup-directory-alist `((".*" . ,(concat user-emacs-directory "backups"))))
91
+(setq auto-save-file-name-transforms `((".*" ,(concat user-emacs-directory "autosave/") t)))
92
+
93
+; hippie expand
94
+(setq hippie-expand-try-functions-list '(try-expand-dabbrev
95
+                                         try-expand-dabbrev-all-buffers
96
+                                         try-expand-dabbrev-from-kill
97
+                                         try-complete-file-name-partially
98
+                                         try-complete-file-name
99
+                                         try-expand-all-abbrevs
100
+                                         try-expand-list
101
+                                         try-expand-line
102
+                                         try-complete-lisp-symbol-partially
103
+                                         try-complete-lisp-symbol))
104
+(global-set-key (kbd "M-/") #'hippie-expand)
105
+(global-set-key (kbd "s-/") #'hippie-expand)
106
+
107
+; smart tab - indent or complete
108
+(setq tab-always-indent 'complete)
109
+
110
+; replace buffer menu with ibuffer
111
+(global-set-key (kbd "C-x C-b") #'ibuffer)
112
+
113
+; disable bold/italic fonts on linux (bitmapped fonts)
114
+(cond ((string-equal system-type "gnu/linux") (progn
115
+  (defun remap-faces-default-attributes ()
116
+    (let ((family (face-attribute 'default :family))
117
+          (height (face-attribute 'default :height)))
118
+      (mapcar (lambda (face)
119
+        (face-remap-add-relative
120
+         face :family family :weight 'normal :slant 'normal :height height))
121
+                (face-list))))
122
+  (when (display-graphic-p)
123
+    (add-hook 'minibuffer-setup-hook 'remap-faces-default-attributes)
124
+    (add-hook 'change-major-mode-after-body-hook 'remap-faces-default-attributes)))))
125
+
126
+
127
+;;;;; mode customizations ;;;;;
128
+(setq sh-basic-offset 2) ; 2-space indents for shell scripts
129
+
130
+;;;;; packages ;;;;;
131
+
132
+; enable package repositories
133
+(require 'package)
134
+(setq package-enable-at-startup nil)
135
+(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
136
+(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))
137
+(package-initialize)
138
+
139
+; bootstrap use-package
140
+(unless (package-installed-p 'use-package)
141
+  (package-refresh-contents)
142
+  (package-install 'use-package))
143
+(eval-when-compile (require 'use-package))
144
+
145
+; uniqify - better disambiguation for same-named files
146
+(require 'uniquify)
147
+(setq uniquify-buffer-name-style 'forward)
148
+
149
+(use-package uniquify
150
+  :config
151
+  (setq uniquify-buffer-name-style 'forward)
152
+  (setq uniquify-separator "/")
153
+  ; rename after killing uniquified
154
+  (setq uniquify-after-kill-buffer-p t)
155
+  ; don't muck with special buffers
156
+  (setq uniquify-ignore-buffers-re "^\\*"))
157
+
158
+; zenburn
159
+(use-package zenburn-theme
160
+  :ensure t
161
+  :config
162
+  (if (not (display-graphic-p)) (progn (setq linum-format "%d ")))
163
+  :init (load-theme 'zenburn t))
164
+
165
+; evil mode
166
+(use-package evil
167
+  :ensure t
168
+  :init
169
+  (setq evil-want-integration nil)
170
+  (setq evil-search-module 'evil-search) ; vim-style searching
171
+  (setq evil-want-C-i-jump nil)          ; restore tab functionality in org mode
172
+  (setq evil-want-C-u-scroll t)          ; ctrl-U scrolls up
173
+  :config
174
+  (evil-mode)
175
+  (define-key evil-normal-state-map (kbd "C-h") #'evil-window-left)
176
+  (define-key evil-normal-state-map (kbd "C-j") #'evil-window-down)
177
+  (define-key evil-normal-state-map (kbd "C-k") #'evil-window-up)
178
+  (define-key evil-normal-state-map (kbd "C-l") #'evil-window-right))
179
+
180
+; evil org mode
181
+(use-package evil-org
182
+  :ensure t
183
+  :after org
184
+  :config
185
+  (add-hook 'org-mode-hook 'evil-org-mode)
186
+  (add-hook 'evil-org-mode-hook (lambda () (evil-org-set-key-theme)))
187
+  (require 'evil-org-agenda)
188
+  (evil-org-agenda-set-keys))
189
+
190
+; evil collection
191
+(use-package evil-collection
192
+  :after evil
193
+  :ensure t
194
+  :init
195
+  (setq evil-want-integration nil)
196
+  :config
197
+  (evil-collection-init))
198
+
199
+; magit
200
+(use-package magit
201
+  :ensure t
202
+  :bind (("C-x g" . magit-status)))
203
+
204
+; evil magit
205
+(use-package evil-magit
206
+  :ensure t
207
+  :after magit)
208
+
209
+
210
+; projectile
211
+(use-package projectile
212
+  :ensure t
213
+  :init
214
+  (setq projectile-completion-system 'ivy)
215
+  :config
216
+  (projectile-mode +1)
217
+  (define-key projectile-mode-map (kbd "s-p") 'projectile-command-map)
218
+  (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map))
219
+
220
+; company
221
+(use-package company
222
+  :ensure t
223
+  :config
224
+  (setq company-idle-delay 0.3)
225
+  (setq company-minimum-prefix-length 2)
226
+  (setq company-show-numbers t)
227
+  (setq company-tooltip-align-annotations t)
228
+  (setq company-tooltip-flip-when-above t)
229
+  (global-company-mode))
230
+
231
+; ivy
232
+(use-package ivy
233
+  :ensure t
234
+  :config
235
+  (ivy-mode 1)
236
+  (setq ivy-use-virtual-buffers t)
237
+  (setq enable-recursive-minibuffers t)
238
+  (global-set-key (kbd "C-c C-r") 'ivy-resume)
239
+  (global-set-key (kbd "<f6>") 'ivy-resume))
240
+
241
+; counsel
242
+(use-package counsel
243
+  :ensure t
244
+  :config
245
+  (global-set-key (kbd "M-x") 'counsel-M-x)
246
+  (global-set-key (kbd "C-x C-f") 'counsel-find-file)
247
+  (global-set-key (kbd "<f1> f") 'counsel-describe-function)
248
+  (global-set-key (kbd "<f1> v") 'counsel-describe-variable)
249
+  (global-set-key (kbd "<f1> l") 'counsel-find-library)
250
+  (global-set-key (kbd "<f2> i") 'counsel-info-lookup-symbol)
251
+  (global-set-key (kbd "<f2> u") 'counsel-unicode-char)
252
+  (global-set-key (kbd "C-c g") 'counsel-git)
253
+  (global-set-key (kbd "C-c j") 'counsel-git-grep)
254
+  (global-set-key (kbd "C-c a") 'counsel-ag)
255
+  (global-set-key (kbd "C-x l") 'counsel-locate)
256
+  (define-key minibuffer-local-map (kbd "C-r") 'counsel-minibuffer-history))
257
+
258
+; swiper
259
+(use-package swiper
260
+  :ensure t
261
+  :config
262
+  (global-set-key "\C-s" 'swiper)
263
+  (global-set-key "\C-r" 'swiper))
264
+
265
+; undo tree
266
+(use-package undo-tree
267
+  :ensure t
268
+  :config
269
+  ; persistent undo
270
+  (unless (file-directory-p (concat user-emacs-directory "undo"))
271
+    (make-directory (concat user-emacs-directory "undo")))
272
+  (setq undo-tree-history-directory-alist `((".*" . ,(concat user-emacs-directory "undo"))))
273
+  (setq undo-tree-auto-save-history t))
274
+
275
+; highlight todos
276
+(use-package hl-todo
277
+  :ensure t
278
+  :config
279
+  (global-hl-todo-mode))
280
+
281
+; which key
282
+(use-package which-key
283
+  :ensure t
284
+  :config
285
+  (setq which-key-idle-delay 0.5)
286
+  (cond ((string-equal system-type "gnu/linux") (progn
287
+    (set-face-attribute 'which-key-key-face nil :inherit font-lock-function-name-face)
288
+    (set-face-attribute 'which-key-note-face nil :inherit font-lock-comment-face :slant 'normal))))
289
+  (which-key-mode +1))
290
+
291
+; highlight VC diffs
292
+(use-package diff-hl
293
+  :ensure t
294
+  :config
295
+  (global-diff-hl-mode +1)
296
+  (add-hook 'dired-mode-hook 'diff-hl-dired-mode)
297
+  (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh))
298
+
299
+; imenu anywhere
300
+(use-package imenu-anywhere
301
+  :ensure t
302
+  :bind (("C-c ." . imenu-anywhere)))
303
+
304
+; yaml mode
305
+(use-package yaml-mode
306
+  :ensure t)

+ 67
- 0
vim/.vimrc View File

@@ -0,0 +1,67 @@
1
+syntax enable
2
+filetype on
3
+filetype plugin on
4
+filetype indent on
5
+
6
+set encoding=utf-8    " utf8 by default for new files
7
+set nocompatible      " it's not 1985
8
+set nobackup          " don't create ~backup files (persistent undo enabled)
9
+set number            " show line numbers
10
+set nowrap            " disable wrapping
11
+set cursorline        " highlight current line
12
+set ttyfast           " improve scrolling speed
13
+set lazyredraw
14
+set foldlevelstart=99 " unfold everything by default
15
+set noerrorbells      " disable bell/flash
16
+set history=1000      " command history length
17
+set so=10             " horizontal scrollover
18
+set backspace=2       " make backspace work normally
19
+set tabpagemax=15     " max 15 tabs open
20
+set laststatus=2      " always display statusbar
21
+set previewheight=3   " maximum height for preview window
22
+set showmatch         " highlight matching brace
23
+set updatetime=750    " improve latency for plugins
24
+set showcmd           " show commands as they're being input
25
+set autoread          " automatically reload when changed externally
26
+set hlsearch          " highlight all search matches
27
+set incsearch         " start searching before hitting 'enter'
28
+set ignorecase        " perform case-insensitive search
29
+set smartcase         " ...unless search term has a capital letter
30
+set hidden            " hide buffers instead of closing them
31
+set wildmenu          " autocomplete for command menu
32
+set completeopt=menu,menuone,longest,preview
33
+set timeoutlen=1000 ttimeoutlen=0
34
+
35
+set smartindent       " autoindent
36
+set expandtab         " replace hard tabs with spaces
37
+set shiftwidth=2      " tab width = 2 spaces
38
+set tabstop=2
39
+set softtabstop=2
40
+
41
+set pastetoggle=<F2>  " F2 to toggle paste mode
42
+nnoremap <leader>q gqip
43
+map <leader>= mzgg=G`z<CR>
44
+noremap H :bp<CR>
45
+noremap L :bn<CR>
46
+nnoremap <leader><space> :noh<cr>
47
+
48
+if empty(glob('~/.vim/autoload/plug.vim'))
49
+  silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
50
+    \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
51
+  autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
52
+endif
53
+
54
+call plug#begin('~/.vim/plugged')
55
+Plug 'vim-scripts/Zenburn'
56
+Plug 'vim-airline/vim-airline'
57
+Plug 'vim-airline/vim-airline-themes'
58
+Plug 'tpope/vim-fugitive'
59
+Plug 'tpope/vim-surround'
60
+Plug 'tpope/vim-repeat'
61
+Plug 'airblade/vim-gitgutter'
62
+call plug#end()
63
+
64
+colors zenburn
65
+
66
+let g:airline_symbols_ascii = 1
67
+set noshowmode

+ 71
- 0
x11/.Xresources View File

@@ -0,0 +1,71 @@
1
+Xft.autohint  : 0
2
+Xft.lcdfilter : lcddefault
3
+Xft.hintstyle : hintnone
4
+Xft.hinting   : 0
5
+Xft.antialias : 1
6
+Xft.rgba      : rgb
7
+Xcursor.size  : 16
8
+*font         : -misc-fixed-medium-r-semicondensed-*-13-*-*-*-*-*-iso10646-1
9
+
10
+xidle*delay    : 1
11
+xidle*position : sw
12
+xidle*timeout  : 300
13
+
14
+! zenburn
15
+XTerm*background: #3f3f3f
16
+XTerm*foreground: #dcdccc
17
+XTerm*cursorColor: #aaaaaa
18
+XTerm*colorUL: #366060
19
+XTerm*underlineColor: #dfaf8f
20
+XTerm*color0: #3f3f3f
21
+XTerm*color1: #cc9393
22
+XTerm*color2: #7f9f7f
23
+XTerm*color3: #d0bf8f
24
+XTerm*color4: #6ca0a3
25
+XTerm*color5: #dc8cc3
26
+XTerm*color6: #93e0e3
27
+XTerm*color7: #dcdccc
28
+XTerm*color8: #000000
29
+XTerm*color9: #dca3a3
30
+XTerm*color10: #bfebbf
31
+XTerm*color11: #f0dfaf
32
+XTerm*color12: #8cd0d3
33
+XTerm*color13: #dc8cc3
34
+XTerm*color14: #93e0e3
35
+XTerm*color15: #ffffff
36
+
37
+XTerm*termName               : xterm-256color
38
+XTerm*vt100.metaSendsEscape  : true
39
+XTerm*v100.saveLines         : 10240
40
+XTerm*vt100.scrollBar        : false
41
+XTerm*vt100.bellIsUrgent     : true
42
+XTerm*allowBoldFonts         : false
43
+XTerm*scrollKey              : true
44
+XTerm*fullscreen             : never
45
+XTerm*cutToBeginningOfLine   : false
46
+XTerm*cutNewline             : false
47
+XTerm*charClass              : 33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48
48
+XTerm*on2Clicks              : word
49
+XTerm*on3Clicks              : line
50
+XTerm*VT100*Translations     : #override Shift <Btn1Up>: exec-formatted("browser '%t'", PRIMARY)
51
+
52
+! for ncurses apps that don't play well with themes
53
+ncurses*termName               : xterm-256color
54
+ncurses*vt100.metaSendsEscape  : true
55
+ncurses*vt100.scrollBar        : false
56
+ncurses*vt100.bellIsUrgent     : true
57
+ncurses*scrollKey              : true
58
+ncurses*fullscreen             : never
59
+ncurses*cutToBeginningOfLine   : false
60
+ncurses*cutNewline             : false
61
+ncurses*charClass              : 33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48
62
+ncurses*on2Clicks              : word
63
+ncurses*on3Clicks              : line
64
+ncurses*allowBoldFonts         : false
65
+ncurses*background             : black
66
+ncurses*foreground             : white
67
+
68
+Emacs.fontBackend: xft
69
+Emacs*popup*font: Sans-9
70
+Emacs*menubar*font: Sans-9
71
+Emacs*dialog*font: Sans-9

+ 4
- 0
x11/.xmodmaprc View File

@@ -0,0 +1,4 @@
1
+clear lock
2
+clear control
3
+keycode 66 = Control_L
4
+add control = Control_L Control_R

Loading…
Cancel
Save