-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
75 lines (60 loc) · 1.58 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
" My Vim Config Settings
" Maintainer: Craig Weiss
" Last Change: 2017 Jan 25
" Turn off vi compatibility
set nocompatible
" Recognize filetype plugins and indentation
set autoindent
filetype plugin indent on
" Enable Backspacing
set backspace=indent,eol,start
" ----------------------------------------------------
" ::::::::: Swaps, Backupfiles and Undofiles :::::::::
" ----------------------------------------------------
" Disable Backupfiles
set nobackup
set nowritebackup
" Turn swaps on and save them to ~/.vim/swap
if isdirectory($HOME . '/.vim/swap') == 0
call mkdir($HOME.'/.vim/swap', 'p')
endif
set directory=~/.vim/swap//
set swapfile
" Turn backups on and save them to ~/.vim/backup
" if isdirectory($HOME . '/.vim/backup') == 0
" call mkdir($HOME.'/.vim/backup', 'p')
" endif
" set backupdir=~/.vim/backup//
" set backup
" Turn undofiles on and save them to ~/.vim/undo
" if isdirectory($HOME . '/.vim/undo') == 0
" call mkdir($HOME.'/.vim/undo', 'p')
" endif
" set directory=~/.vim/undo//
" set undofile
" Colorscheme
set background=dark
" Syntax Highlighting
if !exists("g:syntax_on")
syntax enable
endif
set tabstop=2
set softtabstop=2
set expandtab
set showcmd
set cursorline
set shiftwidth=2
set wildmenu
set number
set showmatch
set incsearch
set hlsearch
nnoremap <leader><space> :nohlsearch<CR>
set mouse=a
if exists('$TMUX')
let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\"
let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\"
else
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
endif