Added new textobjects - ruby symbol (va:), function args (vaa)
This commit is contained in:
parent
c95df62622
commit
ef1e1d7cee
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -172,3 +172,9 @@
|
||||
[submodule "vim/bundle/int3-vim-extradite"]
|
||||
path = vim/bundle/int3-vim-extradite
|
||||
url = https://github.com/int3/vim-extradite
|
||||
[submodule "vim/bundle/vim-scripts-argtextobj"]
|
||||
path = vim/bundle/vim-scripts-argtextobj
|
||||
url = https://github.com/vim-scripts/argtextobj.vim
|
||||
[submodule "vim/bundle/bootleq-vim-textobj-rubysymbol"]
|
||||
path = vim/bundle/bootleq-vim-textobj-rubysymbol
|
||||
url = https://github.com/bootleq/vim-textobj-rubysymbol
|
||||
|
17
README.md
17
README.md
@ -203,8 +203,8 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
|
||||
**Window Navigation**
|
||||
|
||||
* H L I M - to move left, right, up, down between windows
|
||||
* Q - Quit a window, keep buffer alive (Ctrl-w,c)
|
||||
* \Q - Quit window, kill buffer (:bw)
|
||||
* Q - Quit window, kill buffer (:bw)
|
||||
* \Q - Quit a window, keep buffer alive (Ctrl-w,c)
|
||||
|
||||
**Splits**
|
||||
|
||||
@ -268,8 +268,17 @@ Included vim plugins
|
||||
* ruby.vim - lots of general enhancements for ruby dev
|
||||
* necomplcache - intelligent and fast complete as you type, and added Command-Space to select a completion (same as Ctrl-N)
|
||||
* snipMate - offers textmate-like snippet expansion + scrooloose-snippets . try hitting TAB after typing a snippet
|
||||
* textobj-rubyblock - provides visual block selection specific to ruby. try var/vir to select a ruby block
|
||||
* vim-indentobject - manipulation of blocks by their indentation (great for yaml) use vai/vii to select around an indent block
|
||||
|
||||
**TextObjects**
|
||||
|
||||
The things in this section provide new "objects" to work with your standard verbs such as yank/delete/change/=(codeformat), etc
|
||||
|
||||
* textobj-rubyblock - ruby blocks become vim textobjects denoted with 'r'. try var/vir to select a ruby block, dar/dir for delete car/cir for change, =ar/=ir for formatting, etc
|
||||
* vim-indentobject - manipulate chunks of code by indentation level (great for yaml) use vai/vii to select around an indent block, same as above applies
|
||||
* argtextobj - manipulation of function arguments as an "a" object, so vaa/via, caa/cia, daa/dia, etc..
|
||||
* textobj-datetime - gives you 'da' (date), 'df' (date full) and so on text objects. useable with all standard verbs
|
||||
* vim-textobj-entire - gives you 'e' for entire document. so vae (visual around entire document), and etc
|
||||
* vim-textobj-rubysymbol - gives you ':' textobj. so va: to select a ruby symbol. da: to delete a symbol..etc
|
||||
|
||||
**Utils**
|
||||
|
||||
|
1
vim/bundle/bootleq-vim-textobj-rubysymbol
Submodule
1
vim/bundle/bootleq-vim-textobj-rubysymbol
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 7fd2a8bde1be3030dccddaa6e2be16bac4f2c881
|
1
vim/bundle/vim-scripts-argtextobj
Submodule
1
vim/bundle/vim-scripts-argtextobj
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit f3fbe427f7b4ec436416a5816d714dc917dc530b
|
@ -111,11 +111,11 @@ map <silent> <D-0> :tabn 0<cr>
|
||||
nnoremap <silent> vv <C-w>v
|
||||
nnoremap <silent> ss <C-w>s
|
||||
|
||||
" Remap Q to close a window
|
||||
nnoremap <silent> Q <C-w>c
|
||||
" Use Q to kill a buffer
|
||||
nnoremap <silent> Q :bw<CR>
|
||||
|
||||
" Use \Q to kill the buffer entirely
|
||||
nnoremap <silent> <Leader>Q :bw<CR>
|
||||
" Remap \Q to close a window (leave buffer open in memory)
|
||||
nnoremap <silent> <Leader>Q <C-w>c
|
||||
|
||||
"open the taglist (method browser) using ,t
|
||||
nnoremap <silent> ,T :TlistToggle<CR>
|
||||
|
Loading…
Reference in New Issue
Block a user