Tweaked vim/zsh. Need up-arrow histsearch working
This commit is contained in:
parent
d27d2dfab8
commit
576b44e3da
6
.vimrc
6
.vimrc
|
@ -50,10 +50,12 @@ filetype plugin indent on " required
|
||||||
" see :h vundle for more details or wiki for FAQ
|
" see :h vundle for more details or wiki for FAQ
|
||||||
" Put your non-Plugin stuff after this line
|
" Put your non-Plugin stuff after this line
|
||||||
|
|
||||||
|
syntax on
|
||||||
|
|
||||||
set relativenumber
|
set relativenumber
|
||||||
set number
|
set number
|
||||||
set autoindent
|
set autoindent
|
||||||
set syntax
|
|
||||||
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
|
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
|
||||||
|
|
||||||
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc,.png,.jpg
|
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc,.png,.jpg
|
||||||
|
@ -82,7 +84,6 @@ if has("autocmd")
|
||||||
|
|
||||||
autocmd BufNewFile *.sh 0r ~/.vim/templates/skeleton.sh
|
autocmd BufNewFile *.sh 0r ~/.vim/templates/skeleton.sh
|
||||||
autocmd BufNewFile *.sh 2
|
autocmd BufNewFile *.sh 2
|
||||||
autocmd BufNewFile *.sh start
|
|
||||||
|
|
||||||
autocmd BufNewFile *.cpp 0r ~/.vim/templates/skeleton.cpp
|
autocmd BufNewFile *.cpp 0r ~/.vim/templates/skeleton.cpp
|
||||||
autocmd BufNewFile *.cpp 10
|
autocmd BufNewFile *.cpp 10
|
||||||
|
@ -100,3 +101,4 @@ hi Asterisks NONE
|
||||||
hi AsteriskItalic cterm=italic gui=italic
|
hi AsteriskItalic cterm=italic gui=italic
|
||||||
syn match Asterisks contained "**" conceal
|
syn match Asterisks contained "**" conceal
|
||||||
syn match AsteriskItalic "\\\@<!\*\*[^"*|]\+\*\*" contains=Asterisks
|
syn match AsteriskItalic "\\\@<!\*\*[^"*|]\+\*\*" contains=Asterisks
|
||||||
|
|
||||||
|
|
5
.zshrc
5
.zshrc
|
@ -110,6 +110,11 @@ zstyle ':completion:*' completer _expand _complete _ignored _correct _approximat
|
||||||
zstyle ':completion:*' matcher-list '+m:{[:lower:]}={[:upper:]}' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=** r:|=**' 'l:|=* r:|=*'
|
zstyle ':completion:*' matcher-list '+m:{[:lower:]}={[:upper:]}' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=** r:|=**' 'l:|=* r:|=*'
|
||||||
zstyle :compinstall filename '/home/sage/.zshrc'
|
zstyle :compinstall filename '/home/sage/.zshrc'
|
||||||
|
|
||||||
|
autoload -U up-line-or-beginning-search
|
||||||
|
autoload -U down-line-or-beginning-search
|
||||||
|
bindkey '^[[A' up-line-or-search
|
||||||
|
bindkey '^[[B' down-line-or-search
|
||||||
|
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
compinit
|
compinit
|
||||||
# End of lines added by compinstall
|
# End of lines added by compinstall
|
||||||
|
|
Loading…
Reference in New Issue