From b6b1291f7a7c310929ac499a14d046dc702ee4a7 Mon Sep 17 00:00:00 2001 From: Adam Veldhousen Date: Sun, 8 May 2016 12:04:53 -0500 Subject: [PATCH] changed shortcuts for showing go type under cursor to more closely match my visual studio workflow --- .vimrc | 46 ++++++++++++++++++++++++---------------------- bootstrap.sh | 3 --- 2 files changed, 24 insertions(+), 25 deletions(-) diff --git a/.vimrc b/.vimrc index cfde6a8..ecb391b 100755 --- a/.vimrc +++ b/.vimrc @@ -38,6 +38,26 @@ set omnifunc=syntaxcomplete#Complete set completeopt-=preview +set noswapfile +set backupcopy=yes +set autoread +set selection=exclusive +set ttimeoutlen=50 +" Use the OS clipboard by default (on versions compiled with `+clipboard`) +set clipboard=unnamed +" Enhance command-line completion +set wildmenu +" Allow cursor keys in insert mode +set esckeys +" Allow backspace in insert mode +set backspace=indent,eol,start +" Optimize for fast terminal connections +set ttyfast +" Add the g flag to search/replace by default +set gdefault +" Use UTF-8 without BOM +set encoding=utf-8 "nobomb +" Change mapleader let mapleader = "," map :noh @@ -77,27 +97,6 @@ map " Save a file as root (,W) noremap W :w !sudo tee % > /dev/null -set noswapfile -set backupcopy=yes -set autoread -set selection=exclusive -set ttimeoutlen=50 -" Use the OS clipboard by default (on versions compiled with `+clipboard`) -set clipboard=unnamed -" Enhance command-line completion -set wildmenu -" Allow cursor keys in insert mode -set esckeys -" Allow backspace in insert mode -set backspace=indent,eol,start -" Optimize for fast terminal connections -set ttyfast -" Add the g flag to search/replace by default -set gdefault -" Use UTF-8 without BOM -set encoding=utf-8 "nobomb -" Change mapleader -let mapleader="," " enable neocomplete let g:neocomplete#enable_at_startup = 1 @@ -190,7 +189,7 @@ let g:go_fmt_command = "goimports" au FileType go nmap r (go-rename) " show type info -au FileType go nmap i (go-info) +au FileType go nmap ki (go-info) " go def au FileType go nmap di (go-def-split) @@ -272,6 +271,9 @@ let g:syntastic_check_on_wq = 0 let g:syntastic_javascript_checkers = ['standard'] +" YCM +let g:ycm_key_list_select_completion = ['', ''] + " Enable file type detection filetype plugin indent on diff --git a/bootstrap.sh b/bootstrap.sh index b7fef43..d2cc794 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -58,9 +58,6 @@ else echo "Your SSHfu is strong, skipping config copy..." fi -#set +u -#curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash -#set -u echo "" echo "Cleaning up..."