Vim key bindings

I googled default key bindings of vim.
This is vi’s one but helpful.

I temporary use Ctrl + x + [some alphabet] to avoid conflict to default key bindings.

Example

"Open new tab
command Ta :tabnew 
"Open new tab
map ^Xt :Ta 

map ^S :w "Ctrl s to write"
map! ^S :w

<CAUTION> You have to Ctrl + v to express ^X or ^S in vim’s map statement.
Copy and paste of these code won’t work. Type Ctrl + v then Ctrl + [some key].

 

Reference site
https://hea-www.harvard.edu/~fine/Tech/vi.html

bind — band, bundle

Vim plugin, Neobundle introduction

“use git.

“make neobundle directory

 

In my case could not make neobundle.vim directory under ~/.vim/bundle/, instead ~/.config/nvi/.

That’s made

E117: Unknown function: neobundle#begin

Copy neobundle.vim directory to  ~/.vim/bundle/ resolved.

And

[neobundle] `NeoBundle` commands must be executed within a neobundle#begin/end block. Please check your usage.

this means Neobundle commands should be in the

call neobundle#begin(expand(‘~/.vim/bundle/’))

####HERE!!!!!!!!!!###########################

call neobundle#end()

 

So it should be like

" Required:
call neobundle#begin(expand('~/.vim/bundle/'))

" Let NeoBundle manage NeoBundle
" Required:
NeoBundleFetch 'Shougo/neobundle.vim'

" My Bundles here:
" Refer to |:NeoBundle-examples|.
" Note: You don't set neobundle setting in .gvimrc!

"call neobundle#end()

" Required:
filetype plugin indent on

" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
NeoBundleCheck

NeoBundle 'scrooloose/nerdtree'
call neobundle#end()

And I needed to restart Ubuntu to reflect changes ( was logout enough?).

Now can use :NeoBundle(Something) commands??? => Error occurred. 😬

E482: Can't create file /home/masa/.vim/bundle/.neobundle/install_info

My .vim directory was with locked icon in file browser. So

sudo chmod -R 777 .vim

 

made this error clear.

 

#vimproc #vim-themis