unexist.dev

Changeset 500:9a716ad8f6da

Updated file
author unexist
date Wed, 21 Oct 2020 16:53:00 +0200
parents bf1cbae38e59
children 2cadb2fd3f64
files .vimrc
diffstat 1 files changed, 18 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/.vimrc	Wed Oct 21 16:51:30 2020 +0200
+++ b/.vimrc	Wed Oct 21 16:53:00 2020 +0200
@@ -1,7 +1,7 @@
 "
 " @file Vim config
 "
-" @copyright (c) 2008-2010, Christoph Kappel <unexist@dorfelite.net>
+" @copyright (c) 2008-2020, Christoph Kappel <christoph@unexist.dev>
 " @version $Id$
 "
 
@@ -34,36 +34,37 @@
 set nobackup
 set autowriteall
 set noswapfile
-set cursorline
 set list!
 set listchars=trail:-,tab:>-,eol:¬,nbsp:%,extends:>,precedes:<
 set dy+=lastline
 set dy+=uhex
-"set t_Co=256
+set t_Co=256
 set vb
-"set spell spelllang=de_DE
+
+" Spellcheck
+au FileType markdown set spell spelllang=en_us
 
 syntax on
 
 " Colorscheme
-"colorscheme xoria256
+colorscheme murphy
 
 " Commandline
 if has("cmdline_info")
-    set ruler
-    set showcmd
+  set ruler
+  set showcmd
 endif
 
 " Functions
 function! ToggleCopy()
-    if exists("&number")
-        set number!
-        set listchars=
-    else
-        set number
-        set listchars=trail:-,tab:>-,eol:<,nbsp:%,extends:>,precedes:< 
-        syntax sync fromstart
-    endif
+  if exists("&number")
+    set number!
+    set listchars=
+  else
+    set number
+    set listchars=trail:-,tab:>-,eol:<,nbsp:%,extends:>,precedes:< 
+    syntax sync fromstart
+  endif
 endfunction
 
 " Maps
@@ -97,11 +98,6 @@
 nmap <silent> <A-h> :wincmd h<CR>
 nmap <silent> <A-l> :wincmd l<CR>
 
-" Disable ex mode
-nnoremap Q <Nop>
-
-" Select all
-map <C-a> <ESC>:%y+<CR>
 
 " Brackets
 "inoremap {      {}<Left>
@@ -114,8 +110,8 @@
 
 " Filetype
 if has("autocmd")
-    filetype plugin on
-    filetype indent off
+  filetype plugin on
+  filetype indent off
 endif
 
 " Match