-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
74 lines (53 loc) · 1.24 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
filetype off
call pathogen#runtime_append_all_bundles()
filetype plugin indent on
set nocompatible
" Security
set modelines=0
set autoindent
set smartindent
set noexrc
syntax on
set tabstop=4
set expandtab
set shiftwidth=4
set softtabstop=4
set smarttab autoindent
set showmatch
set laststatus=2
set ruler
set number
set incsearch
set paste
set relativenumber
set virtualedit=all
filetype plugin on
filetype indent on
set noerrorbells
set visualbell
set t_vb=
" Text wrap
set wrap
set textwidth=79
set formatoptions=qrn1
set colorcolumn=85
" Status line
set statusline=%F%m%r%h%w%=(%{&ff}/%Y)\ (line\ %l\/%L,\ col\ %c)
" Backups
set backupdir=~/.vim/tmp/backup// " backups
set directory=~/.vim/tmp/swap// " swap files
set backup " enable backups
" Leader
let mapleader = ","
" HTML tag closing
inoremap <C-_> <Space><BS><Esc>:call InsertCloseTag()<cr>a
" Clean whitespace
map <leader>W :%s/\s\+$//<cr>:let @/=''<CR>
" Rainbows
nmap <leader>R :RainbowParenthesesToggle<CR>
" Syntax stuff
"au BufNewFile,BufRead *.less set filetype=css
"au BufNewFile,BufRead *.less set foldmethod=marker
"au BufNewFile,BufRead *.less set foldmarker={,}
"au BufNewFile,BufRead *.less set nocursorline
cmap w!! w !sudo tee >/dev/null %