diff options
| author | Andrew <saintruler@gmail.com> | 2020-12-22 12:31:09 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2020-12-22 12:31:09 +0400 |
| commit | c366e931cc3dd58dc954cfe7f0bddce6c59cfc9b (patch) | |
| tree | dbea8a0e3eaf0ebde578c2be3140d5b7de801697 /.config | |
| parent | 4d65cda4603879a0dcae64c852115461a90895db (diff) | |
Changed init.vim and zshrc
Diffstat (limited to '.config')
| -rw-r--r-- | .config/nvim/init.vim | 16 | ||||
| -rw-r--r-- | .config/zsh/.zshrc | 3 |
2 files changed, 13 insertions, 6 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index e36fb18..fcd8f86 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -9,8 +9,11 @@ Plugin 'scrooloose/nerdtree' Plugin 'scrooloose/nerdcommenter' Plugin 'tpope/vim-fugitive' Plugin 'vim-airline/vim-airline' -Plugin 'arcticicestudio/nord-vim' +" Plugin 'arcticicestudio/nord-vim' +Plugin 'morhetz/gruvbox' Plugin 'neoclide/coc.nvim', {'branch': 'release'} +Plugin 'junegunn/fzf', { 'do': { -> fzf#install() } } +Plugin 'junegunn/fzf.vim' call vundle#end() filetype plugin indent on @@ -36,15 +39,16 @@ set relativenumber number au InsertEnter * set number norelativenumber au InsertLeave * set relativenumber -colorscheme nord +colorscheme gruvbox +set background=dark autocmd StdinReadPre * let s:std_in=1 " Open NERDTree if no file specified -autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif +" autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif " Open NERDTree if openning directory -autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | exe 'cd '.argv()[0] | endif +" autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | exe 'cd '.argv()[0] | endif " Close vim if only window left open is NERDTree autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif @@ -67,3 +71,7 @@ let g:NERDTreeChDirMode=2 nmap <C-\> <leader>c<space> vmap <C-\> <leader>c<space> +" Open ruby REPL on F5 if current file is .rb +au BufReadPost,BufNewFile *.rb map <F5> :!setsid st -e irb -r "%:p"<CR><CR> + +nmap <C-p> :Files<CR> diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 711e943..21a4648 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -17,7 +17,7 @@ compinit -d $XDG_CACHE_HOME/zsh/zcompdump # Turn on clint prompt autoload -Uz promptinit promptinit -prompt clint +prompt suse # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then @@ -41,4 +41,3 @@ alias dotdiff="/usr/bin/git --git-dir='$HOME/.dotfiles' --work-tree='$HOME' dif alias dotadd="/usr/bin/git --git-dir='$HOME/.dotfiles' --work-tree='$HOME' add -f" alias vim="nvim" -# [[ -z "$TMUX" ]] && exec tmux |