From af7312dc98f71f8f5106a913e92602a67ef5f096 Mon Sep 17 00:00:00 2001 From: vagrant Date: Sun, 11 Feb 2018 20:49:42 +0000 Subject: [PATCH] Initial configuration script --- init.sh | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100755 init.sh diff --git a/init.sh b/init.sh new file mode 100755 index 0000000..e2cb014 --- /dev/null +++ b/init.sh @@ -0,0 +1,56 @@ +mkdir -p ~/.vim/autoload ~/.vim/bundle +curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim +git clone https://github.com/ctrlpvim/ctrlp.vim.git ~/.vim/bundle/ctrlp.vim + +cat > ~/.vimrc <, pretend like a tab is removed, even if spaces +set expandtab " expand tabs by default (overloadable per file type later) +set shiftwidth=4 " number of spaces to use for autoindenting +set shiftround " use multiple of shiftwidth when indenting with '<' and '>' +set backspace=indent,eol,start " allow backspacing over everything in insert mode +set autoindent " always set autoindenting on +set copyindent " copy the previous indentation on autoindenting +set number " always show line numbers +set ignorecase " ignore case when searching +set smartcase " ignore case if search pattern is all lowercase, +set timeout timeoutlen=200 ttimeoutlen=100 +set visualbell " don't beep +set noerrorbells " don't beep +set autowrite "Save on buffer switch + +" Down is really the next line +nnoremap j gj +nnoremap k gk + +"Easy escaping to normal model +imap jj + +"Load the current buffer in Chrome +nmap ,c :!open -a Firefox + +" Familiar commands for file/symbol browsing +map :CtrlP +map :CtrlPBufTag + +" I don't want to pull up these folders/files when calling CtrlP +set wildignore+=*/vendor/** +set wildignore+=*/public/forum/** +EOF + +export VISUAL=vim +export EDITOR="$VISUAL"