1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

remapだらけのClang初心者.vimrc保存版

Last updated at Posted at 2017-07-14

久しぶりにPC触ると.vimrcの位置すら記憶から飛んでるvim初心&C初心の人(自分)向けのバックアップ的な何か(Github?知らない子でs(ry))

  1 ".vimrc ============================================================
  2
  3
  4
  5 "visual ============================================
  6 syntax on
  7 set number
  8 set title
  9 set ruler
 10 set cursorline
 11
 12 set tabstop=4
 13 set autoindent
 14 set shiftwidth=4
 15 "set expandtab
 16 filetype plugin indent on
 17
 18
 19
 20 "Keymap ============================================
 21 nnoremap ; :  " :を;で代用
 22 nnoremap s <Nop> " sの初期化
 23 nnoremap sj <C-w>j " 分割画面移動
 24 nnoremap sk <C-w>k
 25 nnoremap sl <C-w>l
 26 nnoremap sh <C-w>h
 27 nnoremap sv :vsplit " 画面左右分割
 28 nnoremap ss :split " 画面上下分割
 29
 30 inoremap { {}<Left> " 括弧補完(C用)
 31 inoremap {<Enter> {}<Left><Enter><Enter><up><TAB>
 32 inoremap ( ()<Left>
 33 inoremap (<Enter> ()<Left><Enter><Enter><up><TAB>
 34 inoremap [ []<Left>
 35 inoremap [<Enter> []<Left><Enter><Enter><up><TAB>
 36 inoremap " ""<Left>
 37 inoremap <silent>jj <ESC> " jjでノーマルモードに
 38 
 39
 40
 41
 42 "setting color =====================================
 43 colorscheme molokai
 44 autocmd ColorScheme * highlight LineNr ctermfg=22 guifg=#757575
 45 autocmd ColorScheme * highlight CursorLineNr ctermfg=22 guifg=#858585
 46 autocmd Colorscheme * highlight Cursor ctermfg=22 guifg=#707070
 47 autocmd ColorScheme * highlight Comment ctermfg=22 guifg=#808080
 48
 49
 50 "not beep ==========================================
 51 set visualbell t_vb= "beep音消し
1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?