diff --git a/.gitmodules b/.gitmodules index 7d8348c..8e1d8b9 100644 --- a/.gitmodules +++ b/.gitmodules @@ -160,6 +160,9 @@ [submodule "vim/bundle/chrismetcalf-vim-yankring"] path = vim/bundle/chrismetcalf-vim-yankring url = https://github.com/chrismetcalf/vim-yankring.git -[submodule "vim/bundle/tsaleh-vim-align"] - path = vim/bundle/tsaleh-vim-align - url = https://github.com/tsaleh/vim-align +[submodule "vim/bundle/mattn-gist-vim"] + path = vim/bundle/mattn-gist-vim + url = https://github.com/mattn/gist-vim +[submodule "vim/bundle/godlygeek-tabular"] + path = vim/bundle/godlygeek-tabular + url = https://github.com/godlygeek/tabular diff --git a/README.md b/README.md index a0a92d4..55ae5f5 100644 --- a/README.md +++ b/README.md @@ -262,6 +262,7 @@ Included vim plugins **Utils** + * tabularize - align code effortlessly by using :Tabularize /[character] to align by a character, or try the mappings ,a= and ,a: to align by equals or colons * yankring - effortless sanity for pasting. every time you yank something it goes into a buffer. after hitting p to paste, use ctrl-p or ctrl-n to cycle through the paste options. great for when you accidentally overwrite your yank with a delete * surround - super easy quote and tag manipulation - ysiw" - sourround inner word with quotes. ci"' - change inner double quotes to single quotes, etc * greplace - use :Gsearch to find across many files, replace inside the changes, then :Greplace to do a replace across all matches diff --git a/vim/bundle/godlygeek-tabular b/vim/bundle/godlygeek-tabular new file mode 160000 index 0000000..b7b4d87 --- /dev/null +++ b/vim/bundle/godlygeek-tabular @@ -0,0 +1 @@ +Subproject commit b7b4d8791a50013b56c2d68b6c5708c808203b54 diff --git a/vim/bundle/mattn-gist-vim b/vim/bundle/mattn-gist-vim new file mode 160000 index 0000000..dff81c9 --- /dev/null +++ b/vim/bundle/mattn-gist-vim @@ -0,0 +1 @@ +Subproject commit dff81c9ec21fa96bb906db4ef355021b9e7cb394 diff --git a/vim/bundle/tsaleh-vim-align b/vim/bundle/tsaleh-vim-align deleted file mode 160000 index fa5fdee..0000000 --- a/vim/bundle/tsaleh-vim-align +++ /dev/null @@ -1 +0,0 @@ -Subproject commit fa5fdeeea25269c3e83262c03dfa1ccd27dbd3c9 diff --git a/vim/plugin/settings/skwp-keymap.vim b/vim/plugin/settings/skwp-keymap.vim index 84042b0..c9f695b 100644 --- a/vim/plugin/settings/skwp-keymap.vim +++ b/vim/plugin/settings/skwp-keymap.vim @@ -29,7 +29,6 @@ imap _ imap _ imap - imap - - " Don't have to use Shift to get into command mode, just hit semicolon nnoremap ; : @@ -159,6 +158,16 @@ nnoremap :let @/='\<=expand("")\>':set hls nnoremap ' ` nnoremap ` ' +" Tabularization. Hit ,a then type a character you want to align by +" The mnemonic is 'a' for align +if exists(":Tabularize") + nmap ,a= :Tabularize /= + vmap ,a= :Tabularize /= + nmap ,a: :Tabularize /:\zs + vmap ,a: :Tabularize /:\zs +endif + + " ============================ " VimBookmarking " ============================