-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimrc
72 lines (58 loc) · 1.75 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
" Vim Inital file
set nocompatible
filetype plugin on
filetype indent on
set backspace=indent,eol,start
set fileencodings=utf-8,gbk,latin1
set hlsearch
syntax on
set nobackup
set noundofile
set autoindent
color light
set vb t_vb=
set ic smartcase
set winminheight=0
set laststatus=2
set hidden
set confirm
set nonumber
set ruler
set wildignore=*.o
set shellpipe=2>&1\|\ tee
runtime ftplugin/man.vim
set rtp+=$HOME/go/misc/vim
let g:c_no_comment_fold=1
let g:is_posix=1
let g:leave_my_textwidth_alone=1
let g:xml_namespace_transparent=1
let g:xml_syntax_folding = 1
set guioptions-=T
set guifont=Liberation\ Mono\ 10
au guienter * color herald
au guienter * set novisualbell
au guienter * set guifont=Liberation\ Mono\ 10
au guienter * set lines=30
autocmd BufEnter,FileType scheme :syntax sync minlines=50
autocmd BufNewFile,BufRead *.{md,mkd} set filetype=markdown
autocmd BufNewFile,BufRead Pkgfile set filetype=sh
au BufNewFile,BufRead *.fr :setf forth
au BufNewFile,BufRead *.go :setf go
au! InsertEnter * call system('fake-key 37 78')
map! <S-Insert> <MiddleMouse>
map! <S-Insert> <MiddleMouse>
" :h last-position-jump
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"" | endif
let mapleader = ','
let maplocalleader = ','
nmap <silent> <leader>m :MRU<CR>
nmap <silent> <C-]> :GtagsCursor<CR>
nmap <silent> <leader>n :cn<CR>
nmap <silent> <leader>p :cp<CR>
nmap <silent> <leader>x :call MPG123Toggle()<cr>
nmap <silent> ( :call search('\n\\|。\\|!\\|?\\|\.\s\\|!\s\\|?\s', "bw")<cr>
nmap <silent> ) :call search('\n\\|。\\|!\\|?\\|\.\s\\|!\s\\|?\s', "w")<cr>
cmap %/ <C-R>=expand("%:p:h").'/'<CR>
" Hightlight matched lines
command -nargs=1 Hi :syn clear Search | syn match Search ".*<args>.*"
" vim: sw=4 ts=4 fdm=marker