Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

.vimrc: mouse mode! scrolling! NERDtree :D

  • Loading branch information...
commit 24dd41a2e82419b39c43f58feb8e67c12084a713 1 parent 55a29af
chr0n1x authored
Showing with 20 additions and 25 deletions.
  1. +20 −25 .vimrc
45 .vimrc
View
@@ -3,6 +3,16 @@ set encoding=utf-8
set backspace=indent,eol,start
set t_Co=256
+" Nerdtree
+autocmd vimenter * NERDTree
+let NERDTreeShowBookmarks=1
+let NERDTreeChDirMode=0
+let NERDTreeMouseMode=2
+let NERDTreeShowHidden=1
+let NERDTreeIgnore=['\.pyc','\~$','\.swo$','\.swp$','\.git','\.hg','\.svn','\.bzr']
+let NERDTreeKeepTreeInNewTab=1
+let g:nerdtree_tabs_open_on_gui_startup=0
+
filetype off
set runtimepath+=~/.vim/bundle/vundle/
call vundle#rc()
@@ -17,7 +27,7 @@ Bundle 'gregsexton/MatchTag'
Bundle 'wincent/Command-T'
Bundle 'scrooloose/nerdtree'
Bundle 'sudo.vim'
-Bundle 'golden-ratio'
+" Bundle 'golden-ratio'
colorscheme railscasts
@@ -32,13 +42,12 @@ set shiftwidth=2
set softtabstop=2
set expandtab
set gdefault
+set number
" disable auto commenting
-" makes copy-paste a bit easier
-autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
+"autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
" Search options
-" set smartcase
set ignorecase
set incsearch
set hlsearch
@@ -51,13 +60,15 @@ set foldlevelstart=3
" Beeping
set visualbell t_vb=
+" set mouse=c
+set mouse=a
+
" UI enhancements
-set number
+set cursorline
set ttyfast
set ruler
set formatoptions=qrn1
set scrolloff=3
-" set autoindent
set showmode
set showcmd
set hidden
@@ -67,6 +78,9 @@ set wildmode=list:longest
" Status line
set laststatus=2
let g:Powerline_symbols = 'fancy'
+set statusline=%<\ %n:%f\ %m%r%y%=%-35.(line:\ %l\ of\ %L,\ col:\ %c%V\ (%P)%)
+filetype plugin indent on
+
" GVIM
if has('gui_running')
@@ -91,28 +105,11 @@ nnoremap <silent> <F6> :JSLintToggle<CR>
nnoremap <silent> <F7> :NERDTreeToggle<CR>
nnoremap <silent> <F8> :TlistToggle<CR>
-" Leader binds
-
" Search/replace word under cursor
nnoremap <Leader>s :%s/\<<C-r><C-w>\>//g<Left><Left>
-" SVN commit current file
-nnoremap <Leader>c :!svn commit % -m ""<Left>
-
nmap <Leader>\ :noh<CR>
-let s:sites = {'amo':'actionmethod', 'network':'network'}
-function! Upload(box)
- for entry in items(s:sites)
- if match(expand('%:p'), '/'.entry[0].'/') > -1
- let a:target=substitute(expand('%:p'), '.*/'.entry[0].'/', 'root@dev'.a:box.':/var/www/vhosts/'.entry[1].'/sandbox/',"")
- silent exe '!rsync -az -e ssh --exclude "*.swp" % '.a:target
- break
- endif
- endfor
-endfunction
-nnoremap <silent> <F10> :call Upload(10)<CR>
-
" Windows
if has('win32') || has('win64')
set lines=60 columns=120
@@ -124,5 +121,3 @@ if has('win32') || has('win64')
let g:PowerLine_symbols = 'compatible'
cd ~
endif
-
-" vim: set ft=vim :
Please sign in to comment.
Something went wrong with that request. Please try again.