diff --git a/readme.md b/readme.md index 7801761..e6b2ae3 100644 --- a/readme.md +++ b/readme.md @@ -135,8 +135,6 @@ alias zless="$PAGER" | Leader+t | N | Convert all tabs into spaces and continue session with spaces | | Leader+T | N | Convert all spaces into tabs and continue session with tabs | | Leader+w | N | Remove all trailing whitespace | -| Leader+A | N+V | Align comments in document/selection | -| Leader+a | N+V | Align comments following non-comments in document/selection | #### GVim diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index 6b333fb..630ad2b 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -137,10 +137,6 @@ " t | (N) -> convert tabs into spaces " T | (N) -> convert spaces into tabs " w | (N) -> remove whitespace -" A | (N) -> aligns comments using the comment symbol -" A | (V) -> aligns selected comments -" a | (N) -> aligns all comments after text -" a | (V) -> aligns selected comments after text " | (V) -> indent all the lines currently selected " | (N) -> indent the current line " > | (V) -> indent all the lines currently selected @@ -567,14 +563,6 @@ "remove trailing whitespace nnoremap w ':FixWhitespace:echo "Trailing whitespace has been removed"' - "align comments - nnoremap A :exe "%Tabular" '/^[^'.matchstr(&commentstring, '[^%]*').']*\zs'.matchstr(&commentstring, '[^%]*').'.*':redraw! - vnoremap A :exe "'<,'>Tabular" '/^[^'.matchstr(&commentstring, '[^%]*').']*\zs'.matchstr(&commentstring, '[^%]*').'.*':redraw! - - "align only comments following non-comments - nnoremap a :exe "%Tabular" '/^ *[^'.matchstr(&commentstring, '[^%]*').' ][^\'.matchstr(&commentstring, '[^%]*').']*\zs'.matchstr(&commentstring, '[^%]*').'.*':redraw! - vnoremap a :exe "'<,'>Tabular" '/^ *[^'.matchstr(&commentstring, '[^%]*').' ][^\'.matchstr(&commentstring, '[^%]*').']*\zs'.matchstr(&commentstring, '[^%]*').'.*':redraw! - "tab/> and untab/< the currently selected lines vnoremap >gv nnoremap v>gv