From 15d5ef9878b13e52c15d80ab46efe6c19b59ee2d Mon Sep 17 00:00:00 2001 From: kn1cht Date: Fri, 4 Nov 2016 12:42:31 +0900 Subject: [PATCH] Fixed backspace, .ino, vi alias --- .vimrc | 3 +++ .zshrc | 1 + 2 files changed, 4 insertions(+) diff --git a/.vimrc b/.vimrc index 7da6811..cb2fd2c 100644 --- a/.vimrc +++ b/.vimrc @@ -19,6 +19,7 @@ set smartindent set smarttab set tabstop=2 set whichwrap=b,s,h,l,<,>,[,] +set backspace=indent,eol,start autocmd BufWritePre * :%s/\s\+$//ge autocmd BufWritePre * :%s/\t/ /ge @@ -69,6 +70,8 @@ autocmd BufNewFile,BufRead *.{md,mdwn,mkd,mkdn,mark*} set filetype=markdown autocmd BufNewFile,BufRead *.{json} set filetype=javascript " javascript as jquery autocmd BufNewFile,BufRead *.{js} set filetype=jquery +" ino as cpp +autocmd BufNewFile,BufRead *.{ino} set filetype=cpp """""""""""""""""""""""""""""" " http://inari.hatenablog.com/entry/2014/05/05/231307 diff --git a/.zshrc b/.zshrc index 2b77a8e..8d40589 100644 --- a/.zshrc +++ b/.zshrc @@ -28,6 +28,7 @@ setopt hist_reduce_blanks setopt extended_glob alias vv="g++ --std=c++11 -O2 -Wall" +alias vi="vim" alias ls='ls -Ga' alias mkdir='mkdir -p' alias sudo='sudo '