Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map <cr> not working #10

Open
cecamp opened this issue Jan 25, 2012 · 5 comments
Open

map <cr> not working #10

cecamp opened this issue Jan 25, 2012 · 5 comments

Comments

@cecamp
Copy link

cecamp commented Jan 25, 2012

Netrw uses nnoremap ...
to select files and open directories. I've tested some maps; they do appear to work, but this one doesn't.

The ipad vim app does have netrw included (try :e . to see). Pressing the while atop a file or directory should open it, but isn't.

@Ecco
Copy link

Ecco commented Jan 28, 2012

I think you accidentally a word ;-)

@cecamp
Copy link
Author

cecamp commented Jan 28, 2012

Romain Goyet wrote:

I think you accidentally a word ;-)

You correct!
:)

Chip

(strictly speaking, it wasn't a word, for those who may be lurking: its
)

@javiertejero
Copy link

I had the same issue. And I realised that on this VIM version there is no keyboard equivalent for "Carriage return". Instead, they all map to "Line feed"... (even if you manage to type CTRL+V CTRL+M, it just issues a line feed).

The good news is that there seems to be an easy workaround. Just remap <LF> to <CR> as follows:

map <lf> <cr>

As a bonus: Since many Control+<key> will not work, you can also remap them using another key, e.g. to remap CTRL+W (to run afterwards multiple :wincmd related commands)

map cw <CTRL-W>

Please let me know if you find any problem related to using this simple workaround.

@cecamp
Copy link
Author

cecamp commented Apr 7, 2012

javiertejero wrote:

I had the same issue. And I realised that on this VIM version there is no keyboard equivalent for "Carriage return". Instead, they all map to "Line feed"... (even if you manage to type CTRL+V CTRL+M, it just issues a line feed).

The good news is that there seems to be an easy workaround. Just remap <LF> to <CR> as follows:

map<lf>  <cr>

As a bonus: Since many Control+<key> will not work, you can also remap them using another key, e.g. to remap CTRL+W (to run afterwards multiple :wincmd related commands)

map cw<CTRL-W>

Please let me know if you find any problem related to using this simple workaround.

Thank you -- I didn't think about mapping. It does seem to work!
Now I am interested again; I'll have to find some way to download my
.vimrc, .vim/*, and plugins and whatnot to my iPad.

Regards,
Chip Campbell

@javiertejero
Copy link

Using Vimball is the easier way I found for multiple file insertion into your VIM for IOS (iTunes "file sharing" does not allow uploading multiple files at once AFAIK, yet).

Vimball system works well in IOS, and it's really easy and very handy. You might know it already, don't you? (as per your name you do and quite well)

Using it I've been able to move several hundreds of files with minimal effort.

Thanks and regards,
Javier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants