Browse Source

[Vim] Add syntastic plugin
[Vim] Update vim keybindings for <Leader>
[Vim] Updating mapping for 'gs'
[Zsh] Remove default git user information (this varies depending on the
machine and I'm tired of it being set incorrectly)
[Other] Add .pylintrc config as that's a dependency for Python support for
syntastic

sdbarker 3 years ago
parent
commit
b0398f1c96
4 changed files with 14 additions and 19 deletions
  1. 2 0
      pylint/.pylintrc
  2. 5 4
      vim/.vim/configs/keybindings.vim
  3. 7 10
      vim/.vimrc
  4. 0 5
      zsh/.zshrc

+ 2 - 0
pylint/.pylintrc

@@ -0,0 +1,2 @@
+[FORMAT]
+indent-string=\t

+ 5 - 4
vim/.vim/configs/keybindings.vim

@@ -6,16 +6,17 @@ let mapleader = ","
 map <Leader>< :diffget<CR>
 map <Leader>> :diffput<CR>
 
-map <Leader>t :SuperRetab 2
+map <Leader>e :MBEToggle<CR>
+map <Leader>rt :SuperRetab 2
 
 " Build sass
-map ,k :!sass --update "%"<CR>
+map <Leader>k :!sass --update "%"<CR>
 
 " Build coffeescript
 map <Leader>K :!coffee --output "../script/" --compile "%"<CR>
 
 " Open NERDTree
-map ,t :NERDTree<cr>
+map <Leader>t :NERDTree<cr>
 
 " Bind Control-b in insert mode to delete the current word, and continue typing
 imap <C-b> <esc>diwa
@@ -65,7 +66,7 @@ map ,c :bd!<CR>
 map ,q :qa!<CR>
 
 " Now gs will jump us from a func/sub CALL to it's actual location.
-nmap gs yiw/^\(sub\<bar>function\)\s\+<C-R>"<CR>
+nmap gs yiw/^\(sub\<bar>function\<bar>def\)\s\+<C-R>"<CR>
 
 " Timestamp-ish abbreviations
 iab vshortdate	<C-r>=strftime("%Y.%m.%d")<CR>

+ 7 - 10
vim/.vimrc

@@ -1,8 +1,7 @@
 " .vimrc (_vimrc for windows folks)
 "
 " Maintainer:	Scott D. Barker
-" Last Change:	2014 Mar 25
-"
+" Last Change:	2014 Jul 07
 
 " Force a 256 color terminal
 " and turn off background erase
@@ -28,13 +27,11 @@ Plugin 'gmarik/vundle'
 
 Plugin 'bling/vim-airline'
   let g:airline_powerline_fonts=1
-
-"Plugin 'bling/vim-bufferline'
-"	let g:bufferline_echo = 0
-
 Plugin 'ervandew/supertab'
 Plugin 'kchmck/vim-coffee-script'
+Plugin 'kien/ctrlp.vim'
 Plugin 'leshill/vim-json'
+Plugin 'mattn/emmet-vim'
 Plugin 'mutewinter/nginx.vim'
 Plugin 'mutewinter/vim-css3-syntax'
 Plugin 'nanotech/jellybeans.vim'
@@ -43,15 +40,15 @@ Plugin 'othree/html5.vim'
 Plugin 'pangloss/vim-javascript'
 Plugin 'scrooloose/nerdcommenter'
 Plugin 'scrooloose/nerdtree'
+Plugin 'scrooloose/syntastic'
+	let g:syntastic_always_populate_loc_list = 1
 Plugin 'slim-template/vim-slim'
+Plugin 'techlivezheng/vim-plugin-minibufexpl'
+Plugin 'terryma/vim-multiple-cursors'
 Plugin 'tpope/vim-haml'
 Plugin 'tpope/vim-surround'
 Plugin 'vim-scripts/matchit.zip'
 Plugin 'vim-surround'
-Plugin 'fholgado/minibufexpl.vim'
-Plugin 'terryma/vim-multiple-cursors'
-Plugin 'kien/ctrlp.vim'
-Plugin 'mattn/emmet-vim'
 
 set wildignore+=*.swp,*.swo,*.pyc
 

+ 0 - 5
zsh/.zshrc

@@ -51,11 +51,6 @@ alias grep='grep --color=auto'
 
 export PATH=$PATH:/usr/local/bin/:/usr/local/arm-elf/bin:~/.gem/ruby/1.9.1/bin
 
-export GIT_AUTHOR_NAME="sdbarker"
-export GIT_AUTHOR_EMAIL="[email protected]"
-export GIT_COMMITTER_NAME="sdbarker"
-export GIT_COMMITTER_EMAIL="[email protected]"
-
 setopt prompt_subst
 autoload -Uz vcs_info
 zstyle ':vcs_info:*' stagedstr 'M'