As you probably already know, you can use the ci( motion to change the text within parentheses (().
With your cursor on or in the parentheses:
(^ represents the current cursor position.)
func foo(argument) { }
| let s:base00 = [ '#101218', 0 ] | |
| let s:base01 = [ '#1f222d', 18 ] | |
| let s:base02 = [ '#252936', 19 ] | |
| let s:base03 = [ '#7780a1', 8 ] | |
| let s:base04 = [ '#C0C5CE', 4 ] | |
| let s:base05 = [ '#d1d4e0', 5 ] | |
| let s:base06 = [ '#C9CCDB', 6 ] | |
| let s:base07 = [ '#ffffff', 15 ] | |
| let s:red = [ '#ee829f', 1 ] | |
| let s:orange = [ '#f99170', 17 ] |
Hi 👋! So, I have a small problem whereby if, within a JavaScript file, I write:
{
{
}
}
... And then delete the third bracket from the top:
| const { | |
| createStore | |
| } = Redux | |
| const counter = (state = 0, action) => { | |
| switch (action.type) { | |
| case 'increment': | |
| return state + 1 | |
| case 'decrement': | |
| return state - 2 |
| const TodoListComponent = ({todos}) => ( | |
| <ul> | |
| {todos.map((todo, i) => <li key={i}>{todo}</li>)} | |
| </ul> | |
| ) | |
| const AddTodoFormContainer = React.createClass({ | |
| getInitialState() { | |
| return { | |
| todo: '' |
| if (!isdirectory(expand("$HOME/.config/nvim/bundle/neobundle.vim"))) | |
| call system(expand("mkdir -p $HOME/.config/nvim/bundle")) | |
| call system(expand("git clone https://github.com/Shougo/neobundle.vim ~/.config/nvim/bundle/neobundle.vim")) | |
| endif | |
| if has('vim_starting') | |
| set runtimepath+=/home/booker/.config/nvim/bundle/neobundle.vim/ | |
| endif | |
| call neobundle#begin() |
| // npm i moment youtube-api youtube-url | |
| import {extractId} from 'youtube-url' | |
| import youtubeApiClient from 'youtube-api' | |
| import moment from 'moment' | |
| export default class YouTube { | |
| constructor(youtubeApiKey: string) { | |
| youtubeApiClient.authenticate({ | |
| type: 'key', |
| NeoBundleLazy 'mxw/vim-jsx', {'on_ft': 'javascript'} | |
| NeoBundleLazy 'othree/yajs.vim', {'on_ft': 'javascript'} | |
| NeoBundleLazy 'othree/es.next.syntax.vim', {'on_ft': 'javascript'} | |
| NeoBundleLazy 'gavocanov/vim-js-indent', {'on_ft': 'javascript'} |
I was just hacking away on a side project when I wrote this code:
const screencastMock = {
findOne: () => { }
};