root/dotfiles/vim/tokuhirom-vimrc @ 2806

Revision 2806, 2.8 kB (checked in by tokuhirom, 5 years ago)

dotfiles: some changes.

Line 
1" *************************************************************************
2" tokuhirom's .vimrc file.
3"
4" *************************************************************************
5
6" -------------------------------------------------------------------------
7" Basic settings.
8"
9" -------------------------------------------------------------------------
10    set nocompatible " must be first!
11
12    colorscheme darkblue
13
14    nnoremap j gj
15    nnoremap k gk
16
17    set expandtab
18    set shiftround
19    set autoindent
20    set backspace=indent,eol,start
21    set hidden
22    set history=50
23    set hlsearch
24    set ignorecase
25    set incsearch
26    set laststatus=2
27    set nobackup
28    set ruler
29    set shiftwidth=4
30    set showcmd
31    set showmatch
32    set smartcase
33    set statusline=%<%f\ %m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=%l,%c%V%8P
34    set tabstop=4
35    set wrapscan
36    syntax on
37    autocmd CursorHold * update
38    set updatetime=500
39    set encoding=utf-8
40    set fileencoding=utf-8
41    set fileencodings=utf-8,euc-jp,iso-2022-jp,utf-8,ucs-2le,ucs-2,cp932
42    set ambw=double
43
44" -------------------------------------------------------------------------
45" perl
46"
47" -------------------------------------------------------------------------
48    inoremap ,self <C-R> my ($self, ) = @_;<CR>
49    " I love ingy.
50    inoremap ,x    <C-R> use XXX;XXX
51    iabbrev ,# # =========================================================================
52    iabbrev .# # -------------------------------------------------------------------------
53
54" -------------------------------------------------------------------------
55" perl test
56"
57" -------------------------------------------------------------------------
58    augroup filetypedetect
59    autocmd! BufNewFile,BufRead *.t setf perl
60    augroup END
61
62" -------------------------------------------------------------------
63" auto cd.
64"    ref. http://nanasi.jp/articles/vim/cd_vim.html
65"
66" -------------------------------------------------------------------------
67    au BufEnter * execute ":lcd " . expand("%:p:h")
68
69" -------------------------------------------------------------------------
70" ChangeLog
71"
72" -------------------------------------------------------------------------
73    let g:changelog_username = 'tokuhirom <tokuhirom atooooo gmail dototettetetete com>'
74
75" -------------------------------------------------------------------------
76" matchit
77"    ref. http://nanasi.jp/articles/vim/matchit_vim.html
78"
79" -------------------------------------------------------------------------
80    source $VIMRUNTIME/macros/matchit.vim
81
82" -------------------------------------------------------------------------
83" perltidy
84" -------------------------------------------------------------------------
85    map ,pt <Esc>:%! perltidy<CR>
86    map ,ptv <Esc>:'<,'>! perltidy<CR>
87
Note: See TracBrowser for help on using the browser.