summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2012-08-08 16:04:32 +0200
committerChristoph Helma <helma@in-silico.ch>2012-08-08 16:04:32 +0200
commit656ed75baca852623941dccf766ff1641dd71d55 (patch)
treee4621367284056e7465497e3adb52cb9e8c9af71
parentc9e4c80e4476360cda2df896ccdb3cf0f072bf2b (diff)
parentb52ad0ea3b42a2317cdd3f72e5585214e0fb36b7 (diff)
Merge branch 'master' of github.com:opentox/opentox.github.com
-rw-r--r--_posts/2012-05-18-using-vim.md25
1 files changed, 23 insertions, 2 deletions
diff --git a/_posts/2012-05-18-using-vim.md b/_posts/2012-05-18-using-vim.md
index f759a78..fc32d52 100644
--- a/_posts/2012-05-18-using-vim.md
+++ b/_posts/2012-05-18-using-vim.md
@@ -76,8 +76,20 @@ Put this in your `~/.vimrc`:
set t_Co=256
-Your user experience should now be much better.
+ " Maps Alt-[h,j,k,l] to resizing a window split
+ map <silent> <A-h> <C-w><
+ map <silent> <A-j> <C-W>-
+ map <silent> <A-k> <C-W>+
+ map <silent> <A-l> <C-w>>
+ " Maps Alt-[s.v] to horizontal and vertical split respectively
+ map <silent> <A-s> :split<CR>
+ map <silent> <A-v> :vsplit<CR>
+ " Maps Alt-[n,p] for moving next and previous window respectively
+ map <silent> <A-n> <C-w><C-w>
+ map <silent> <A-p> <C-w><S-w>
+
+Your user experience should now be much better. You will have syntax highlighting, and can split the **Vim** window using `Alt+s` and `Alt+v`. See the comments above for more options.
<p></p>
---
@@ -288,7 +300,8 @@ Install LaTeX:
texlive-doc-de \
texlive-latex-extra \
texlive-lang-german \
- texlive-science
+ texlive-science \
+ texlive-fonts-extra
Install **Vim**, the Gnome version:
@@ -343,6 +356,14 @@ Now you can edit and compile `.tex` files from within **GVim**. Load a [template
In **Vim**, press `\ll` to compile to dvi format. Start xdvi (the dvi viewer) to view results. Change something, compile again and reload (`Ctrl+R`) the viewer.
+Note: Reduce colors and decrease font size in **Gvim** by setting
+
+ colorscheme morning
+ set guifont=Monospace\ 8
+ set guioptions-=m
+
+in your `.gvimrc`.
+
**GVim** can interact with xdvi
--------------------------