Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

73 lines (58 sloc) 1.794 kB
" 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
Jump to Line
Something went wrong with that request. Please try again.