Fix vim config

This commit is contained in:
Daniel Flanagan 2018-04-25 20:01:39 -05:00
parent 22ae13dfd2
commit 151e39265b
4 changed files with 13 additions and 5 deletions

View file

@ -134,7 +134,7 @@ inoremap <C-BS> <C-w>
inoremap <A-BS> <C-w> inoremap <A-BS> <C-w>
" clear search higlight " clear search higlight
nnoremap <leader>/ :let @/ = ""<CR> nnoremap <leader>/ :let @/ = ""<CR>:<BACKSPACE>
" remap jk/jj and its variants to escape " remap jk/jj and its variants to escape
inoremap jj <Esc> inoremap jj <Esc>

View file

@ -1,4 +1,3 @@
if has('nvim') if has('nvim')
if empty(glob('~/.config/nvim/autoload/plug.vim')) 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 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 'hail2u/vim-css3-syntax', {'for': ['styl', 'stylus', 'css', 'vue']}
Plug 'kchmck/vim-coffee-script', {'for': ['coffee', 'coffeescript', 'vue']} Plug 'kchmck/vim-coffee-script', {'for': ['coffee', 'coffeescript', 'vue']}
Plug 'posva/vim-vue', {'for': ['vue']} Plug 'posva/vim-vue', {'for': ['vue']}
Plug 'elixir-lang/vim-elixir', {'for': ['elixir', 'eelixir']} Plug 'elixir-lang/vim-elixir', {'for': ['elixir', 'ex', 'exs']}
Plug 'elixir-lang/', {'for': ['elixir', 'eelixir']} Plug 'slashmili/alchemist.vim', {'for': ['elixir', 'ex', 'exs']}
Plug 'mattn/emmet-vim', {'for': ['html']} Plug 'mattn/emmet-vim', {'for': ['html']}
Plug 'wavded/vim-stylus', {'for': ['styl', 'stylus', 'vue']} Plug 'wavded/vim-stylus', {'for': ['styl', 'stylus', 'vue']}
Plug 'quabug/vim-gdscript', {'for': ['gd', 'gdscript']} Plug 'quabug/vim-gdscript', {'for': ['gd', 'gdscript']}

View file

@ -1,12 +1,20 @@
#!/usr/bin/env bash #!/usr/bin/env bash
mkdir -p "$HOME/.config/systemd/user"
# tmux plugin manager # tmux plugin manager
git clone https://github.com/tmux-plugins/tpm "$HOME/.tmux/plugins/tpm" git clone https://github.com/tmux-plugins/tpm "$HOME/.tmux/plugins/tpm"
# load tmux config # load tmux config
tmux source "$HOME/.tmux.conf" tmux source-file "$HOME/.tmux.conf"
# clean, install, and update plugins # clean, install, and update plugins
bash "$HOME/.tmux/plugins/tpm/bindings/clean_plugins" bash "$HOME/.tmux/plugins/tpm/bindings/clean_plugins"
bash "$HOME/.tmux/plugins/tpm/bindings/install_plugins" bash "$HOME/.tmux/plugins/tpm/bindings/install_plugins"
bash "$HOME/.tmux/plugins/tpm/bindings/update_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

View file

@ -51,6 +51,7 @@ set -g status-right-length 20
set -g status-interval 1 set -g status-interval 1
# set 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 '#[fg=colour4]#W #[fg=colour18]#[bg=default]|#[fg=colour7] #(#{DOTFILES_PATH}/scripts/bin/tmux-session-list #S)'
set -g status-right-length 200 set -g status-right-length 200