Quantcast
Channel: Vimタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 5655

備忘録 vim

$
0
0

$HOME/.vimrc

set nocompatible

" encoding
set fenc=utf-8
" no backup
set nobackup
" no swap
set noswapfile
"set autoread
"
set hidden
" status command
set showcmd


" View
" show line number
set number
" highlight
"set cursorline
" highlight
"set cursorcolumn
" cursor move
set virtualedit=onemore
" smart indent
set smartindent
"
set visualbell
"(>)set showmatch
" status line
set laststatus=2
"set wildmode=list:longest
"
nnoremap j gj
nnoremap k gk


" Tab
" vis tab
set list listchars=tab:\▸\-


" search
" ignore case
set ignorecase
"caseset smartcase
" 
set incsearch
" last -> first
set wrapscan
" highlight
set hlsearch
"
nmap <Esc><Esc> :nohlsearch<CR><Esc>

" window size
set lines=50
" window width
set columns=100

" color scheme
"NeoBundle 'tomasr/molokai'" ------------------------------------
" colorscheme
" ------------------------------------

" color
colorscheme darkblue
set background=dark

set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set autoindent
set smartindent

augroup fileTypeIndent
    autocmd!
    autocmd BufNewFile,BufRead *.py setlocal tabstop=4 softtabstop=4 shiftwidth=4
    autocmd BufNewFile,BufRead *.rb setlocal tabstop=2 softtabstop=2 shiftwidth=2
augroup END

Viewing all articles
Browse latest Browse all 5655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>