-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
84 lines (73 loc) · 1.86 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
76
77
78
79
80
81
82
83
84
set nocompatible
"set guifont=Terminus\ 10
"set guifont=Monaco\ 9,DejaVu\ Sans\ Mono\ 10
"set guifont=DejaVu\ Sans\ Mono\ 10
" for Mac OS X:
"set guifont=Monaco:h10.00
" if &t_Co >= 256 || &term =~ "-256color" || has("gui_running")
" set t_Co=256
" colorscheme zenburn
" else
" colorscheme default
" set background=dark
" endif
map Q gq
map Y y$
cmap <C-g> <C-c>
cmap <S-Insert> <MiddleMouse>
imap <S-Insert> <MiddleMouse>
nmap <F5> :checktime<CR>
let g:GPGPreferSign = 1
syntax on
set autoindent
set autoread
set autowrite
set backspace=indent,eol,start
set cpoptions+=$v
set expandtab
set guicursor+=a:blinkon0
set guioptions-=T
set hidden
set history=50
set hlsearch
set ignorecase
set incsearch
set laststatus=2
set lazyredraw
set list
set listchars=tab:>\ ,trail:-
set nojoinspaces
set nostartofline
set number
set numberwidth=1
set ruler
set shiftwidth=4
set shortmess+=a
set showcmd
set showmatch
set smartcase
set smarttab
set softtabstop=4
set statusline=[%n]\ %f\ [%{strlen(&fenc)?&fenc:'none'},%{&ff}]%m%r%y%=%c%V,%l/%L\ %p%%,%P
set visualbell
set wildignore=*.bak,*.o,*.e,*~ " wildmenu: ignore these extensions
set wildmenu
if has("autocmd")
filetype plugin indent on
augroup krvimrc
au!
autocmd FileType text setlocal textwidth=78
" for format=flowed, see mutt manual
" disabled as of 20090714; see muttrc for why.
"autocmd FileType mail setlocal fo+=w
" spell checking for emails
autocmd FileType mail setlocal spell
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
augroup END
endif