mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-11-22 17:32:19 +00:00
Compare commits
No commits in common. "642f451836c28b1f9f51a1c56f7785f156e91bf5" and "a2266f6e6e2cec4e0fe79cd7801f7d82a8491f0b" have entirely different histories.
642f451836
...
a2266f6e6e
2 changed files with 5 additions and 37 deletions
36
vim/.vimrc
36
vim/.vimrc
|
@ -1,22 +1,3 @@
|
||||||
""" Plug-in management
|
|
||||||
" Install vim-plug if not found
|
|
||||||
if empty(glob('~/.vim/autoload/plug.vim'))
|
|
||||||
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
|
||||||
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Run PlugInstall if there are missing plugins
|
|
||||||
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
|
|
||||||
\| PlugInstall --sync | source $MYVIMRC
|
|
||||||
\| endif
|
|
||||||
|
|
||||||
" Load Plug-ins
|
|
||||||
call plug#begin()
|
|
||||||
Plug 'fatih/vim-go'
|
|
||||||
call plug#end()
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
" Tmux integration to switch panes with Ctrl+{hjkl}
|
" Tmux integration to switch panes with Ctrl+{hjkl}
|
||||||
if exists('$TMUX')
|
if exists('$TMUX')
|
||||||
function! TmuxOrSplitSwitch(wincmd, tmuxdir)
|
function! TmuxOrSplitSwitch(wincmd, tmuxdir)
|
||||||
|
@ -44,20 +25,7 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" coding preferences
|
" coding preferences
|
||||||
filetype off
|
|
||||||
filetype plugin indent on
|
|
||||||
|
|
||||||
syntax on
|
syntax on
|
||||||
set backspace=indent,eol,start
|
set noautoindent smarttab ts=2 sw=2 expandtab
|
||||||
set noautoindent
|
|
||||||
set noswapfile
|
|
||||||
set number
|
|
||||||
set ruler
|
|
||||||
set showmatch
|
set showmatch
|
||||||
set smarttab
|
set ruler
|
||||||
set ts=2 sw=2 sts=2 expandtab
|
|
||||||
|
|
||||||
let mapleader=","
|
|
||||||
if has("autocmd")
|
|
||||||
autocmd FileType go set ts=2 sw=2 sts=2 noet nolist autowrite
|
|
||||||
endif
|
|
||||||
|
|
|
@ -17,9 +17,9 @@ alias k="kubectl"
|
||||||
alias t="tanzu"
|
alias t="tanzu"
|
||||||
alias ll="ls -la"
|
alias ll="ls -la"
|
||||||
|
|
||||||
# Import local prefs from ~/.zshlocal, if present
|
# Import local aliases from ~/.zshalias, if present
|
||||||
if [ -f $HOME/.zshlocal ]; then
|
if [ -f $HOME/.zshalias ]; then
|
||||||
source $HOME/.zshlocal
|
source $HOME/.zshalias
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Shell initializations
|
# Shell initializations
|
||||||
|
|
Loading…
Reference in a new issue