Permalink
Browse files

add mouse support

  • Loading branch information...
1 parent 0ef825a commit 96c8e8fa0630c479ade863c83a25e0a73eba4e8f pyw committed Jul 18, 2012
Showing with 26 additions and 3 deletions.
  1. +7 −0 README
  2. +19 −3 init.vim
View
7 README
@@ -0,0 +1,7 @@
+echo 'source ~/.vim/init.vim' >> ~/.vimrc
+
+hotkeys:
+F8: class browser
+,f:current path file browser
+,p:project path browser
+
View
@@ -1,6 +1,5 @@
set nocompatible " not compatible with vi
set guioptions=0 " no gui
-set number " linenumber
let mapleader = "," " map leader
set modeline " modelien mode
set modelines=5 " detect modelines in 5 lines at head and tail
@@ -15,7 +14,18 @@ set shiftwidth=4
set expandtab
set softtabstop=4
set showcmd
+set autoread " auto reload buffer if the file is changed outside Vim
set shell=/bin/bash " system() may be failed in fishfish
+set laststatus=2 " show statusline if one window
+set mouse=a "
+
+
+" line number tricks
+set number
+autocmd InsertEnter * :set number
+autocmd InsertLeave * :set relativenumber
+autocmd FocusLost * :set number " only for GUI
+autocmd FocusGained * :set relativenumber " only for GUI
syntax on
filetype plugin indent on
@@ -37,8 +47,14 @@ source ~/.vim/neocomplcache.vim
source ~/.vim/keys.vim
source ~/.vim/vam.vim
+" powerline settings
+" Make sure you have patched font:
+" https://github.com/Lokaltog/vim-powerline/
+let g:Powerline_symbols = 'fancy'
+
+" QuickRun
+noremap <C-c><C-c> :QuickRun<CR>
+
if filereadable(expand("~/.vim/custom.vim"))
source ~/.vim/custom.vim
endif
-
-let s:body=system('uname -a 2>&1')

0 comments on commit 96c8e8f

Please sign in to comment.