diff --git a/.gitmodules b/.gitmodules index 933363c..767623b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -118,3 +118,6 @@ [submodule "vim/bundle/editorconfig-vim"] path = vim/bundle/editorconfig-vim url = https://github.com/editorconfig/editorconfig-vim +[submodule "vim/bundle/cosco.vim"] + path = vim/bundle/cosco.vim + url = https://github.com/lfilho/cosco.vim diff --git a/README.md b/README.md index d6533e4..11ffb80 100644 --- a/README.md +++ b/README.md @@ -157,6 +157,7 @@ For a complete list of mappings specific to **darkcloud-vimconfig**, check the l ## Plugins ## * [autoswap.vim](https://github.com/vim-scripts/autoswap.vim): Switch to open editor window instead of asking what to do with swapfile. +* [cosco.vim](https://github.com/lfilho/cosco.vim): VIM colon and semicolon insertion bliss * [editorconfig-vim](https://github.com/editorconfig/editorconfig-vim): EditorConfig plugin for Vim that auto-configures certain settings when a .editorconfig file is present * [emmet-vim](https://github.com/mattn/emmet-vim): Support for expanding abbreviations. * [webapi-vim](https://github.com/mattn/webapi-vim): A web library used by emmet to provide support for custom snippets. diff --git a/vim/bundle/cosco.vim b/vim/bundle/cosco.vim new file mode 160000 index 0000000..4a2a080 --- /dev/null +++ b/vim/bundle/cosco.vim @@ -0,0 +1 @@ +Subproject commit 4a2a080415860196c936a32679d9032f41ba21e4 diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index a38cdbf..45228c5 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -217,6 +217,7 @@ " | (N) -> un-indent the current line " < | (V) -> un-indent all the lines currently selected " < | (N) -> un-indent the current line +" ;; | (N) -> (cosco.vim) add comma/semicolon to the eol " " (movement) " = | (N) -> go to the first char on the next line @@ -756,6 +757,9 @@ nnoremap v vnoremap < < v + + "add comma or semicolon to the end of the line + nmap ;; (cosco-commaOrSemiColon) "} "MOVEMENT:{