Fix vim config
This commit is contained in:
parent
22ae13dfd2
commit
151e39265b
|
@ -134,7 +134,7 @@ inoremap <C-BS> <C-w>
|
|||
inoremap <A-BS> <C-w>
|
||||
|
||||
" clear search higlight
|
||||
nnoremap <leader>/ :let @/ = ""<CR>
|
||||
nnoremap <leader>/ :let @/ = ""<CR>:<BACKSPACE>
|
||||
|
||||
" remap jk/jj and its variants to escape
|
||||
inoremap jj <Esc>
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
if has('nvim')
|
||||
if empty(glob('~/.config/nvim/autoload/plug.vim'))
|
||||
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
|
@ -171,8 +170,8 @@ let g:jsx_ext_required = 0 " allow JSX in normal JS files
|
|||
Plug 'hail2u/vim-css3-syntax', {'for': ['styl', 'stylus', 'css', 'vue']}
|
||||
Plug 'kchmck/vim-coffee-script', {'for': ['coffee', 'coffeescript', 'vue']}
|
||||
Plug 'posva/vim-vue', {'for': ['vue']}
|
||||
Plug 'elixir-lang/vim-elixir', {'for': ['elixir', 'eelixir']}
|
||||
Plug 'elixir-lang/', {'for': ['elixir', 'eelixir']}
|
||||
Plug 'elixir-lang/vim-elixir', {'for': ['elixir', 'ex', 'exs']}
|
||||
Plug 'slashmili/alchemist.vim', {'for': ['elixir', 'ex', 'exs']}
|
||||
Plug 'mattn/emmet-vim', {'for': ['html']}
|
||||
Plug 'wavded/vim-stylus', {'for': ['styl', 'stylus', 'vue']}
|
||||
Plug 'quabug/vim-gdscript', {'for': ['gd', 'gdscript']}
|
||||
|
|
|
@ -1,12 +1,20 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
mkdir -p "$HOME/.config/systemd/user"
|
||||
|
||||
# tmux plugin manager
|
||||
git clone https://github.com/tmux-plugins/tpm "$HOME/.tmux/plugins/tpm"
|
||||
|
||||
# load tmux config
|
||||
tmux source "$HOME/.tmux.conf"
|
||||
tmux source-file "$HOME/.tmux.conf"
|
||||
|
||||
# clean, install, and update plugins
|
||||
bash "$HOME/.tmux/plugins/tpm/bindings/clean_plugins"
|
||||
bash "$HOME/.tmux/plugins/tpm/bindings/install_plugins"
|
||||
bash "$HOME/.tmux/plugins/tpm/bindings/update_plugins"
|
||||
|
||||
# load tmux config
|
||||
tmux source-file "$HOME/.tmux.conf"
|
||||
|
||||
systemctl --user enable tmux.service
|
||||
systemctl --user restart tmux.service
|
||||
|
|
|
@ -51,6 +51,7 @@ set -g status-right-length 20
|
|||
|
||||
set -g status-interval 1
|
||||
# set status-interval 1
|
||||
# set -g status-right '#[fg=colour4]#W #[fg=colour18]#[bg=default]|#[fg=colour7] #(#{DOTFILES_PATH}/scripts/bin/tmux-session-list #S)'
|
||||
set -g status-right '#[fg=colour4]#W #[fg=colour18]#[bg=default]|#[fg=colour7] #(#{DOTFILES_PATH}/scripts/bin/tmux-session-list #S)'
|
||||
set -g status-right-length 200
|
||||
|
||||
|
|
Reference in a new issue