mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-21 19:32:31 -05:00
Add cosco.vim to add semicolons or commas to the end of the line based on the lines around it, and hook it up to ;; as a shortcut
This commit is contained in:
parent
3b070a38d7
commit
384549b348
4 changed files with 9 additions and 0 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
1
vim/bundle/cosco.vim
Submodule
1
vim/bundle/cosco.vim
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 4a2a080415860196c936a32679d9032f41ba21e4
|
|
@ -217,6 +217,7 @@
|
|||
" <Shift-Tab> | (N) -> un-indent the current line
|
||||
" <Leader>< | (V) -> un-indent all the lines currently selected
|
||||
" <Leader>< | (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 <S-Tab> v<gv<Esc>
|
||||
vnoremap <Leader>< <gv
|
||||
nnoremap <Leader>< v<gv<Esc>
|
||||
|
||||
"add comma or semicolon to the end of the line
|
||||
nmap <silent> ;; <Plug>(cosco-commaOrSemiColon)
|
||||
"}
|
||||
|
||||
"MOVEMENT:{
|
||||
|
|
Loading…
Reference in a new issue