[[FrontPage]] > [[my_vimrc]]

設定ファイルの場所
- Linux: ~/.vimrc
- Windows: C:\Users\username\_vimrc

その他
- プラグイン: .vim/plugin
- カラースキーマ: .vim/colors


* .vimrc のコピー [#p444d39a]

" ----- for linux -----
set nocompatible
set fileencodings=euc-jp,utf-8,cp932
set termencoding=utf-8
set hidden
set nowrapscan
set hlsearch
set viminfo=
hi Search term=reverse cterm=reverse ctermfg=7 ctermbg=0
 " ----- for linux -----
 set nocompatible
 set fileencodings=euc-jp,utf-8,cp932
 set termencoding=utf-8
 set hidden
 set nowrapscan
 set hlsearch
 set viminfo=
 hi Search term=reverse cterm=reverse ctermfg=7 ctermbg=0
 
 
 " ----- for all -----
 set noundofile
 set nobackup
 set list
 set listchars=tab:>.,trail:-,eol:.,extends:.,precedes:.,nbsp:%
 
 colorscheme Tomorrow-Night-Eighties
 syntax on
 
 
 " ----- tab -----
 nnoremap gc :<C-u>tabnew<CR>
 
 
 " ----- gtags -----
 " grep
 "nnoremap <C-g> :Gtags -g
 " list
 "nnoremap <C-l> :Gtags -f %<CR>
 " jump to definition
 nnoremap <C-j> :Gtags <C-r><C-w><CR>
 " jump to caller
 nnoremap <C-h> :Gtags -r <C-r><C-w><CR>
 " jump to symbol
 nnoremap <C-l> :Gtags -s <C-r><C-w><CR>
 " next
 nnoremap <C-n> :cn<CR>
 " previous
 nnoremap <C-p> :cp<CR>


" ----- for all -----
set noundofile
set nobackup
set list
set listchars=tab:>.,trail:-,eol:.,extends:.,precedes:.,nbsp:%

colorscheme Tomorrow-Night-Eighties
syntax on


" ----- tab -----
nnoremap gc :<C-u>tabnew<CR>


" ----- gtags -----
" grep
"nnoremap <C-g> :Gtags -g
" list
"nnoremap <C-l> :Gtags -f %<CR>
" jump to definition
nnoremap <C-j> :Gtags <C-r><C-w><CR>
" jump to caller
nnoremap <C-h> :Gtags -r <C-r><C-w><CR>
" jump to symbol
nnoremap <C-l> :Gtags -s <C-r><C-w><CR>
" next
nnoremap <C-n> :cn<CR>
" previous
nnoremap <C-p> :cp<CR>


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS