breaking the habit - will no more use arrow keys http://vimcasts.org/blog/2013/02/habit-breaking-habit-making/
This commit is contained in:
parent
84246ce8b9
commit
aaaea54e00
1 changed files with 17 additions and 3 deletions
|
@ -5,6 +5,20 @@ set number " line numbers
|
||||||
set nocompatible " choose no compatibility with legacy vi
|
set nocompatible " choose no compatibility with legacy vi
|
||||||
set nowrap " don't wrap lines
|
set nowrap " don't wrap lines
|
||||||
|
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" => custom key maps
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
|
" breaking the habits
|
||||||
|
noremap <Up> <NOP>
|
||||||
|
noremap <Down> <NOP>
|
||||||
|
noremap <Left> <NOP>
|
||||||
|
noremap <Right> <NOP>
|
||||||
|
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" => custom ... WTF, don't remember ;)
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
augroup VimCSS3Syntax
|
augroup VimCSS3Syntax
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd FileType css setlocal iskeyword+=-
|
autocmd FileType css setlocal iskeyword+=-
|
||||||
|
@ -16,9 +30,9 @@ augroup reload_vimrc " {
|
||||||
autocmd BufWritePost $MYVIMRC source $MYVIMRC
|
autocmd BufWritePost $MYVIMRC source $MYVIMRC
|
||||||
augroup END " }
|
augroup END " }
|
||||||
|
|
||||||
""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => my custom filetypes
|
" => custom filetypes
|
||||||
"""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
" ruby
|
" ruby
|
||||||
au FileType ruby,eruby setl ofu=rubycomplete#Complete
|
au FileType ruby,eruby setl ofu=rubycomplete#Complete
|
||||||
|
|
Loading…
Reference in a new issue