diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-05-18 19:38:29 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-05-18 19:38:29 +0200 |
commit | 4cb7a09fae90e2a5c3d8941866751015eb1e7cd0 (patch) | |
tree | 2a756b9d5eff22f1a355bc17d9498c993f8eae8b /_posts/2012-05-18-using-vim.md | |
parent | 786ac859bfbbf30d0d05b1b3f54d5706ef374029 (diff) |
color
Diffstat (limited to '_posts/2012-05-18-using-vim.md')
-rw-r--r-- | _posts/2012-05-18-using-vim.md | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/_posts/2012-05-18-using-vim.md b/_posts/2012-05-18-using-vim.md index b325080..aa1219b 100644 --- a/_posts/2012-05-18-using-vim.md +++ b/_posts/2012-05-18-using-vim.md @@ -78,6 +78,10 @@ Put this in your `~/.vimrc`: set indentexpr= filetype indent on + " Enable 256 colors + set t_Co=256 + + Your user experience should now be much better. @@ -101,11 +105,11 @@ Learn **Vim** with the [graphical cheat sheet](http://www.viemu.com/a_vi_vim_gra Using Vim as a pager -------------------- -The standard tool to display (not edit) text files is **Less**. However, **Vim** is a much more powerful pager. Add +The standard tool to display (not edit) text files is **Less**. However, you also may want to use **Vim** to display source files. Add alias vless='vim -u /usr/share/vim/vimcurrent/macros/less.vim' -to your `~/.bash_aliases`, and, after reading in the file, e.g. by a new login, you have the `vless` command, which includes now syntax highlighting. When viewing a file with `vless`, press `v` to switch to **Vim** in editing mode. +to your `~/.bash_aliases`, and, after reading in the file, e.g. by a new login, you have the `vless` command. When viewing a file with `vless`, press `v` to switch to the full **Vim**. Toggle auto-indenting for code paste |