diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-28 20:40:32 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-28 20:40:32 +0200 |
commit | e934e8f5c1c5c64411d98583ecbcf89e5ad01073 (patch) | |
tree | 898e64bb0cb8eb83d06dd1f5e8f0e916273d8c0d /runtime/macros | |
parent | 61264d99692803eec76a171916ab9720c75536b0 (diff) | |
download | vim-git-e934e8f5c1c5c64411d98583ecbcf89e5ad01073.tar.gz |
patch 7.4.1672v7.4.1672
Problem: The Dvorak support is a bit difficult to install.
Solution: Turn it into an optional package.
Diffstat (limited to 'runtime/macros')
-rw-r--r-- | runtime/macros/README.txt | 8 | ||||
-rw-r--r-- | runtime/macros/dvorak | 164 |
2 files changed, 5 insertions, 167 deletions
diff --git a/runtime/macros/README.txt b/runtime/macros/README.txt index f599c0a75..e74913483 100644 --- a/runtime/macros/README.txt +++ b/runtime/macros/README.txt @@ -11,8 +11,6 @@ urm Macros that simulate a simple computer: "Universal Register Machine" The other files contain some handy utilities. They also serve as examples for how to use Vi and Vim functionality. -dvorak for when you use a Dvorak keyboard - justify.vim user function for justifying text less.sh + less.vim make Vim work like less (or more) @@ -29,4 +27,8 @@ file_select.vim macros that make a handy file selector The matchit plugin has been moved to an optional package. To load it put this line in your vimrc file: - :packadd matchit + packadd! matchit + +The Dvorak supported has been moved to an optional package. To load it put +this line in your vimrc file: + packadd! dvorak diff --git a/runtime/macros/dvorak b/runtime/macros/dvorak deleted file mode 100644 index 0c7588870..000000000 --- a/runtime/macros/dvorak +++ /dev/null @@ -1,164 +0,0 @@ -When using a dvorak keyboard this file may be of help to you. -These mappings have been made by Lawrence Kesteloot <kesteloo@cs.unc.edu>. -What they do is that the most often used keys, like hjkl, are put in a more -easy to use position. -It may take some time to learn using this. - -Put these lines in your .vimrc: --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -" Key to go into dvorak mode: -map ,d :source ~/.dvorak -" Key to get out of dvorak mode: -map ,q :source ~/.qwerty --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - -write these lines into the file ~/.dvorak: --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -" Dvorak keyboard, only in insert mode and ex mode. -" You may want to add a list of map's too. -imap! a a -imap! b x -imap! c j -imap! d e -imap! e . -imap! f u -imap! g i -imap! h d -imap! i c -imap! j h -imap! k t -imap! l n -imap! m m -imap! n b -imap! o r -imap! p l -imap! q ' -imap! r p -imap! s o -imap! t y -imap! u g -imap! v k -imap! w , -imap! x q -imap! y f -imap! z ; -imap! ; s -imap! ' - -imap! " _ -imap! , w -imap! . v -imap! / z -imap! A A -imap! B X -imap! C J -imap! D E -imap! E > -imap! F U -imap! G I -imap! H D -imap! I C -imap! J H -imap! K T -imap! L N -imap! M M -imap! N B -imap! O R -imap! P L -imap! Q " -imap! R P -imap! S O -imap! T Y -imap! U G -imap! V K -imap! W < -imap! X Q -imap! Y F -imap! Z : -imap! < W -imap! > V -imap! ? Z -imap! : S -imap! [ / -imap! ] = -imap! { ? -imap! } + -imap! - [ -imap! _ { -imap! = ] -imap! + } --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - -write these lines into the file ~/.qwerty --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -" Qwerty keyboard -unmap! a -unmap! b -unmap! c -unmap! d -unmap! e -unmap! f -unmap! g -unmap! h -unmap! i -unmap! j -unmap! k -unmap! l -unmap! m -unmap! n -unmap! o -unmap! p -unmap! q -unmap! r -unmap! s -unmap! t -unmap! u -unmap! v -unmap! w -unmap! x -unmap! y -unmap! z -unmap! ; -unmap! ' -unmap! \" -unmap! , -unmap! . -unmap! / -unmap! A -unmap! B -unmap! C -unmap! D -unmap! E -unmap! F -unmap! G -unmap! H -unmap! I -unmap! J -unmap! K -unmap! L -unmap! M -unmap! N -unmap! O -unmap! P -unmap! Q -unmap! R -unmap! S -unmap! T -unmap! U -unmap! V -unmap! W -unmap! X -unmap! Y -unmap! Z -unmap! < -unmap! > -unmap! ? -unmap! : -unmap! [ -unmap! ] -unmap! { -unmap! } -unmap! - -unmap! _ -unmap! = -unmap! + --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |