diff options
-rw-r--r-- | XCompose | 2 | ||||
-rw-r--r-- | vimrc | 9 | ||||
-rw-r--r-- | zshrc | 3 |
3 files changed, 12 insertions, 2 deletions
@@ -77,6 +77,8 @@ include "/usr/share/X11/locale/en_US.UTF-8/Compose" <Multi_key> <F> <L> <I> <P> : "(╯°□°)╯︵ ┻━┻" <Multi_key> <p> <u> <t> : "ノ( ゜-゜ノ)" <Multi_key> <d> <o> <n> <g> : "ヽ༼ຈلຈ༽ノ" +<Multi_key> <t> <i> <n> <y> : "🤏" +<Multi_key> <e> <y> <e> <s> : "👀" # BLACKBOARD BOLD UPPERCASE, 1 0 <Multi_key> <B> <A> : "𝔸" @@ -30,8 +30,11 @@ highlight ColorColumn ctermbg=234 match ExtraWhitespace /\s\+$/ inoremap <CR> <CR>x<BS> +inoremap jj <ESC> +inoremap jk <ESC> nnoremap o ox<BS> nnoremap O Ox<BS> +set pastetoggle=<F2> function! ToggleHlsearch() if &hlsearch @@ -49,11 +52,13 @@ nnoremap <C-_> :call ToggleHlsearch()<cr> hi Todo ctermbg=DarkGreen ctermfg=Black -set expandtab +"set expandtab autocmd BufRead,BufNewFile *.cli setfiletype xml +autocmd BufRead,BufNewFile *.bnf setfiletype bnf "autocmd FileType c setlocal expandtab autocmd FileType make set noexpandtab -autocmd FileType cpp setlocal expandtab +"autocmd FileType cpp setlocal expandtab +autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab autocmd FileType bitbake setlocal expandtab autocmd FileType python setlocal expandtab autocmd FileType haskell setlocal expandtab @@ -23,6 +23,9 @@ key[Insert]="$terminfo[kich1]" key[Backspace]="$terminfo[kbs]" key[Delete]="$terminfo[kdch1]" +bindkey -e +bindkey "^R" history-incremental-search-backward + # setup key accordingly [[ -n "$key[Home]" ]] && bindkey -- "$key[Home]" beginning-of-line [[ -n "$key[End]" ]] && bindkey -- "$key[End]" end-of-line |