add: vim plugin
change: zsh PS1
This commit is contained in:
parent
3afab71b89
commit
ffa37d86e4
2 changed files with 12 additions and 4 deletions
|
@ -19,12 +19,19 @@ set encoding=utf-8
|
||||||
|
|
||||||
set nowrap
|
set nowrap
|
||||||
|
|
||||||
" Save cursor position. I don't understand this part :)
|
" Save cursor position. I don't understand this part
|
||||||
if has("autocmd")
|
if has("autocmd")
|
||||||
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
|
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Plug plugins using VimPlug
|
||||||
call plug#begin('~/.config/vim/plugged')
|
call plug#begin('~/.config/vim/plugged')
|
||||||
Plug 'editorconfig/editorconfig-vim'
|
Plug 'editorconfig/editorconfig-vim'
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
|
Plug 'fidian/hexmode'
|
||||||
|
Plug 'scrooloose/nerdtree'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
" Nerd Tree Configuration
|
||||||
|
map <C-n> :NERDTreeToggle<CR>
|
||||||
|
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
|
[ -f $HOME/.profile ] && source $HOME/.profile
|
||||||
|
|
||||||
# Enable colors and change prompt:
|
# Enable colors and change prompt:
|
||||||
autoload -U colors && colors
|
autoload -U colors && colors
|
||||||
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
|
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}
|
||||||
|
$%b "
|
||||||
|
|
||||||
# History in cache directory:
|
# History in cache directory:
|
||||||
HISTSIZE=10000
|
HISTSIZE=10000
|
||||||
|
@ -37,7 +40,5 @@ echo -ne '\e[1 q' # Use beam shape cursor on startup.
|
||||||
autoload edit-command-line; zle -N edit-command-line
|
autoload edit-command-line; zle -N edit-command-line
|
||||||
bindkey '^e' edit-command-line
|
bindkey '^e' edit-command-line
|
||||||
|
|
||||||
[ -f $HOME/.profile ] && source $HOME/.profile
|
|
||||||
|
|
||||||
# Load zsh-syntax-highlighting; should be last.
|
# Load zsh-syntax-highlighting; should be last.
|
||||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
|
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
|
||||||
|
|
Loading…
Reference in a new issue